Needs review
Project:
Google Analytics
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2022 at 04:41 UTC
Updated:
10 May 2024 at 14:07 UTC
Jump to comment: Most recent
After installing the module and visiting a page on Firefox:
Cookie “_ga_W9HMTY9G88” 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
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
1. Install the module.
2. Configure settings.
3. Visit a page using Firefox.
Here's a Stack Overflow answer describing one possible solution.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ptmkenny commentedComment #3
sd123 commentedOn my site I only get this error when the tracking code is stored locally.
Comment #4
Christopher Riley commentedI get this regardless of which setting I try. It would be nice if this was addressed. It appears that this value can only be set when the cookie is being created as documented in the above link. I monkeyed around for a bit trying to get it working but ran out of time. I will hopefully get back to it later.
Comment #7
denist3r commentedCreated MR.
Works fine for me.