So, I’ve been using different cookie compliance plugins… Most of them do a decent job and I found two that I like. Now I notice that some cookies (like GA) get set before a user Accepts cookies. Other plugins don’t block cookies even if the user Denies them.
Is there a way to programmatically unset these cookies? Most cookie banner plugins set cookies themselves when users accepts/denies. I was thinking about using this data to unset other cookies. I could write some code, attach it to a hook and eg. unset the Google Analytics cookie when the users didn’t accept or denied analytical cookies. What would be the way to do this?
[ad_2]