Refuse cookies doesn’t work properly
-
Hi
I’m using “Refuse Cookies” enabled and the following snippet to refuse analytics
add_action( ‘wp_head’, ‘my_google_opt_out1’ );
function my_google_opt_out1() {
if ( ! cn_cookies_accepted() ) {
?>
<script>
window[‘ga-disable-UA-xxxxxxx-x’] = true;
</script>
<?php
}
}
and the short code [cookies_revoke] in the footerUsing the buttons in the cookie bar, cookies are blocked or enabled correctly.
If, after using the cookie bar, I use the button generated by the short code (Revoke Cookies), the cookie bar appears but the button Refuse Cookie doesn’t work and cookies are always fired.
thanks for your help
The page I need help with: [log in to see the link]
- The topic ‘Refuse cookies doesn’t work properly’ is closed to new replies.