How to block cookies ? Other than _ga
-
First of all, congratulations to the creator for this fabulous plugin. I have a problem I do not understand how I should block a cookie until the user has given his consent.
I can block or unblock the Google Analytics cookie. No problem, it works for me. I got the code here: https://gdpr-wp.com/knowledge-base/enabling-or-disabling-functionality-based-on-consent-and-cookies/
But what about the other cookies ?? I use the following code but it doesn’t work. I got a mistake 500. I insert the code in the functions.php :
add_action( 'wp_head', 'preferences' ); function preferences() { if ( ! has_consent( 'Préférences' ) || ! is_allowed_cookie( '_AVESTA_ENVIRONMENT' ) ) }
Please help me! Please!
Thank you
- The topic ‘How to block cookies ? Other than _ga’ is closed to new replies.