@WouterFlorijn opened this Issue on June 11th 2018

I'm working on a website that allows visitors to toggle cookies on or off. Currently, with Matomo I can turn them off using

window._paq.push(['disableCookies'])

I searched for a way to turn them back on, and tried

window._paq.push(['enableCookies'])

but that did not work.

Is there a way to turn cookies back on? If not, it would be great if it could be added.

@sgiehl commented on June 20th 2018 Member

If the page is reloaded and disableCookies isn't pushed the cookies should be automatically used "again".
But for singe page apps it would make sense to have a method to turn the cookies back on.

@WouterFlorijn commented on June 21st 2018

@sgiehl That would be great. Not only for SPAs, but any website where the user can change their cookie consent settings on the fly, which is relevant with the GDPR.

Powered by GitHub Issue Mirror