How to enable/disable functionality based on consent
-
Hi,
I installed the plugin, added the cookies and now I’m stuck on how to enable/disable functionality based on consent. I read the article where it says ‘Every functionality that is not essential should be disabled on the first landing.’ I have the Endurance caching plugin (from Bluehost) enabled. Visitors cannot register or login to my site. I only have a handful of cookies, but don’t know how to disable them prior consent. Can you please help?
For GA for example… I used
if ( is_allowed_cookie( '_ga' ) {
before the GA code and ended with}
But the code gets printed at the tip of my page on the front end. Plus the cookie is still loaded prior consent.Thanks,
Laura
- The topic ‘How to enable/disable functionality based on consent’ is closed to new replies.