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
Custom consent form behaviour change? #16693
Comments
Hi @wlabarron The method should
It should do this no matter if
It is possible that in this case the cookies are disabled and therefore the call to set the |
Hey @tsteur, thank you for your response. I've just been testing it on my browser, calling the two methods in the console, and that's the behaviour I've noticed. Cookies are enabled, as far as I know -- I've got |
|
Ah, I see. I've just updated to Matomo 4.0.0-rc2, and can confirm that this issue is fixed. Thank you for your help! |
Great, thanks for confirming @wlabarron |
Summary
I've previously implemented a custom consent form which I use on my Matomo-enabled websites.
If a user opts-in to tracking, it calls
_paq.push(['rememberConsentGiven']);
. If a user opts-out, it calls_paq.push(['forgetConsentGiven']);
. Matomo then set themtm_consent
andmtm_consent_removed
cookies respectively. If either of those cookies were set, I knew the user had made a consent decision, so the opt-in message wasn't shown to the user again.At some point recently, it seems the behaviour of
_paq.push(['forgetConsentGiven']);
has changed.Previous behaviour
_paq.push(['forgetConsentGiven']);
sets themtm_consent_removed
cookie and unsets themtm_consent
cookie.Currently-observed behaviour
mtm_consent
is not set,_paq.push(['forgetConsentGiven']);
has no effect.mtm_consent
is set,_paq.push(['forgetConsentGiven']);
unsets it and setsmtm_consent_removed
.Question
Is this an intentional Matomo API change? I can't find it in any changelogs or documentation.
Thank you!
The text was updated successfully, but these errors were encountered: