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
Cookies default off, enabling by Opt-In #15702
Comments
refs #15507 |
Is there a problem with calling disableCookies maybe? |
Yes I can set disableCookies, but how can I enable them again, when user Opt-In? disableCookies will only work correctly when it is set at the very begin of an page load. When I set disableCookies after user opt-out, I have already a cookie set. And as I understand the law in Europa right, on cookie at all should be set until a user allow it. |
Do you manage opt in and opt out yourself? Once you know you have the opt in, you could basically initialise a new tracker instance where you don't have cookies disabled. Although in that case you could also not add any tracker initially unless you know the user has opted in.
How exactly do you do this? Is that with the most recent version of Matomo? Only looked quickly at the code but this should not happen AFAIK |
So you think, normal there should not be an I use the newest matomo version, but in combination with the nuxt-matomo module on my website. |
@jb-alvarado I haven't tested it, only looked quickly at the code and would say it shouldn't set it. It would only be set if you give consent, and later remove consent (or opt out). I recommend you delete all cookies and test it maybe again? |
I have test it so many times with deleting all cookies and so on, there is no chance. I can only try to integrate matomo by my self, without any module, maybe this works. But even here they use a hacky way to realize opt-in: https://www.vektorkneter.de/matomo-tracking-cookie-opt-in/ |
I just quickly tried it with How does the user opt in on your site? |
Ah that is interesting, then I have to look to the code from the nuxt module.
You can see it here: |
Ok I have the issue, it was my fault... On initial load I have checked if a "useAnalystics" cookie are set, and when not I setted Sorry for getting your time, but thank you for the helpful commands! |
Hello, is it possible to deactivate all cookies by default and activate (and set them) by users Opt-In?
My closed workaround is setting consentRequired to true, but this will create an initial cookie (mtm_consent_removed). And when user Opt-In and revisit the page, the other matomo cookies are set.
I need a way, that at the initial load no cookie at all will be set. When user Opt-out only the mtm_consent_removed should be set and when user Opt-In all cookies should be created.
The text was updated successfully, but these errors were encountered: