I am using the tracking script in my head as followed:
var _paq = window._paq || ;
// require user consent before processing data
_paq.push([“setDocumentTitle”, document.domain + “/” + document.title]);
I ask users for consent and when they click on the button to refuse, I call the _paq.push([‘forgetConsentGiven’]); function in my footer.
This should work, because when I tested it, my visits were not being tracked in the dashboard.
My Problem is as followed: I use the opt-out iframe in my data privacy statement. But when I visit my site and refuse the tracking, the checkbox in the iframe is checked and it says there, that my visiting is being tracked. This should not be the case, since I refused the tracking in the first place.
Have I done something wrong?
Thank you for your help and have a great day!