-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Tracking Cookie gets set if "DNT=1" #10162
Comments
The cookie should be set with a date in the past and be deleted immediately. This "delete" cookie is basically set to delete any existing cookies. We could make it a bit smarter and set the delete cookie only if one is actually set currently which is likely the case unless Solution would be to send along the tracking request whether cookies are disabled and then consider this server side as well. |
That's what I thought it's for (-:
In Firefox that's true, in Chrome however the expired cookie is stored.
Another idea would be to make |
A workaround so far would be maybe to call |
To clarify, the cookie is not set in Chrome but it is displayed in the cookie list with a 2015 expiration date. There certainly is a valid use case for the pk_uid=deleted cookie, namely to delete a cookie that was previously set. We will try you workaround suggestion and get back here. |
Can confirm that this prevents storage of the cookie as a workaround. |
Alternatively, my collegue also added this to the virtual host of the piwik server (Apache) before I set <VirtualHost […]>
ServerName piwik.[…]
[…]
SetEnvIf Request_URI "^/piwik\.php" is_tracker
Header unset Set-Cookie env=is_tracker
</VirtualHost> |
We use Piwik with the cookies disabled:
use_third_party_id_cookie = 0
and_paq.push(['disableCookies']);
(trying not to have to display those stupid EU-warnings about Cookies).Unfortunately it seems the case that there is some mixup. If "do not track" is disabled in the browser everything is fine, if it is enabled a Cookie is set.
I think the idea of this cookie is to "delete" cookies that might have been set before, as the expiration is before the cookie is actually set. If this is the case, the correspoding page in the FAQ should probably be updated to include this.
Piwik version is 2.16.1.
The text was updated successfully, but these errors were encountered: