Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookie_flags and relax google analytics domain #1538

Merged
merged 2 commits into from
Jul 19, 2022
Merged

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Jul 19, 2022

CSP: Relaxed connect-src directive for google analytics due to regional subdomains:
https://support.google.com/analytics/answer/11598602?hl=en

Firefox warned that GA cookies were missing the sameSite attribute:

Cookie “_ga” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

https://stackoverflow.com/questions/62569419/how-to-set-secure-attribute-of-the-cookies-used-by-google-analytics-global-sit/62569420#62569420

@Gnito Gnito merged commit 1f8faa8 into master Jul 19, 2022
@Gnito Gnito deleted the ga4-improvements branch July 19, 2022 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant