-
-
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
_pk_testcookies set while using "disableCookies" #15000
Comments
In theory Matomo only creates testcookies when you don't have set Lines 3878 to 3887 in 1091c61
Is it possible that the cookies were created before you changed the Tracking code and are just left on your browser? |
Looking at the code this seems indeed the case that they are likely from some previous test cause disableCookies is right the second method that is being executed. I'll close this issue for now as it seems like a user issue but please comment if that's not the case. If you can reproduce an issue there after clearing please comment and we reopen. Be great to have your exact tracking code to reproduce this issue then (without your idsite and matomo URL.) |
Seems right! I've tested it today with two other computers, no cookies were set. On my local machine it might be just a local config issue. Because if im deleting all cookies and the whole website data in my browser cookies are still set. Thats why I was wondering. tl;dr: |
I could not solve the testcookie problem... Can someone help me please? Frontend JS Code (Loading Matomo after the page is loaded) `<script type="text/javascript"> function embedTrackingCode() { var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; if (window.addEventListener) { |
We can confirm: Since update to 3.12.0 we get the _pk_testcookie..undefined on all installations when setting "disableCookies". Can this be confirmed and fixed? :)
|
I also can confirm this. "disableCookies" is enabled but "_pk_testcookie..undefined" gets set. |
Same here. _pk_testcookie..undefined is set and I also have _paq.push(["disableCookies"]); |
It seems The only thing I can image is to revert https://github.com/matomo-org/matomo/pull/14495/files @mattab @Findus23 any thoughts? I looked into calling detectBrowserFeatures at a later point but it seems to be used by various methods. It might still possible though with a small refactor to make it maybe work for both. Eg https://github.com/matomo-org/matomo/blob/3.12.0/js/piwik.js#L6671 would need to be removed etc. |
This issue still exists in 3.13.0. We use
So #15107 does not fix it for us. |
This will be fixed in #15225 |
I'm usign Matomo 3.12.0-b5 and several "_pk_testcookie" set by the hasCookie() function despite I am using "_paq.push(['disableCookies']);".
Now I'm wondern if it is a bug? Feature? Or am I missing something? Because setting cookies without the users consent could be a potential GDPR issue.
Tracking code example:
Cookies:
The text was updated successfully, but these errors were encountered: