Open eldIsher opened 1 year ago
Hi @eldIsher,
Thanks for reporting this.
Removing the Google Analytics cookies will mess with the analytics data if the user decides to accept them again after the reset. However, I guess we should indeed remove the cookies set by Google Analytics in this scenario.
There doesn't seem to be a straightforward official way to do so. Google Analytics has a tendency to change their cookie names every now and then (sometimes during a major version's lifetime if I recall correctly), I'd rather have an official JS method to remove all used cookies at once rather than having to make wild guesses in the package's backend...
What's your take on this?
hi @toonvandenbos
thanks for your response. I do not know it will mess with googleAnalytics when is removed. Is there official statement from google?
Remember to update App/Http/Middleware/EncryptCookies.php if you change cookie from JS because cookie is encrypted. It is empty if changed from browser, backend cannot read it. Make it unencrypted to make it work.
If cookie name changes this package needs update anyhow, right?
@cookieconsentbutton('reset') opens modal, but clicking 'Only essentials' does not clear Google Analytics cookies. It only (re)sets the consent settings
README.md says this one
it is not now resetting cookies. Google Analytics cookies still in browser