Best way to block cookies

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer