Problem/Motivation

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

Steps to reproduce

1. Install the module.
2. Configure settings.
3. Visit a page using Firefox.

Proposed resolution

Here's a Stack Overflow answer describing one possible solution.

Command icon Show commands

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

ptmkenny created an issue. See original summary.

sd123’s picture

On my site I only get this error when the tracking code is stored locally.

Christopher Riley’s picture

I 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.

Denist3r made their first commit to this issue’s fork.

denist3r’s picture

Status: Active » Needs review

Created MR.
Works fine for me.