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

Make cookies more configurable, to appease stricter browser policies #22411

Open
atom-box opened this issue Jul 18, 2024 · 1 comment
Open

Make cookies more configurable, to appease stricter browser policies #22411

atom-box opened this issue Jul 18, 2024 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged

Comments

@atom-box
Copy link
Contributor

atom-box commented Jul 18, 2024

For quite a while there have been warnings in the browsers about the end of 3rd party cookies.
Now, Google will phase out any 3rd party cookies with the beginning of 2025
https://developers.google.com/privacy-sandbox/3pcd

Since our Matomo installations are running on a sub domain of example.com (like "analytics.example.com" or "matomo.example.com") we will have some 3rd party cookie issues with our other domains like "foo.com" or "bar.com" etc.

There is a solution for such kind of issues, when using the "CHIP" method.
https://developers.google.com/privacy-sandbox/3pcd/chips
https://developer.mozilla.org/en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies

Currently, Matomo cookies look like this:
image

We propose that it would be great if Matomo will add settings so that the cookie can have

  • Set the "SameSite" to "none"
  • Set the "Partitioned" flag
  • Set the "Secure" flag
  • Example: Set-Cookie: __Host-example=34d8g; SameSite=None; Secure; Path=/; Partitioned;

Or will be a way inside Matomo to define the cookie(s) flags/attributes, that Matomo send to the browser?

@atom-box atom-box added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. To Triage An issue awaiting triage by a Matomo core team member labels Jul 18, 2024
@randy-innocraft randy-innocraft added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Jul 18, 2024
@randy-innocraft
Copy link

Hi @atom-box . Thank you for creating the issue and bringing this to our attention, that's very appreciated. We have reviewed and triaged the problem internally, and we have confirmed it is an issue. Our team will prioritise this, and we will update you on the progress here when we have an update to share. If you have any further information or questions, please feel free to add them here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged
Projects
None yet
Development

No branches or pull requests

2 participants