Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Add cookie_flags and relax google analytics domain#1538

Merged
Gnito merged 2 commits intomasterfrom
ga4-improvements
Jul 19, 2022
Merged

Add cookie_flags and relax google analytics domain#1538
Gnito merged 2 commits intomasterfrom
ga4-improvements

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant