Hi @chanfin,
What do you need to setup? Consent types? Cookies? Actually blocking Google Analytics from firing?
This is the initial documentation I’ve set up. I’m still working on it and some text will change but it should help you get started. http://gdpr-wp.com/knowledge-base/
Hi @fclaussen
Thanks for the speedy reply.
We have no login so I’m only concerned with visitors. I can set the cookie notice and direct people to the privacy policy but I need cookies to not fire up until they have consented to do so. I need people to be able to decline some cookies so these don’t work.
Hello
I’ve got the same question than Chanfin
On my website I just have visitors and no subscriber
I have read the KB but I don’t understand where the following code must be set
if ( ! has_consent( ‘analytics’ ) || ! is_allowed_cookie( ‘_ga’ ) ) {
<script>
window[‘ga-disable-UA-XXXXXXXX-X’] = true;
</script>
}
Is it on the functions.php file of the theme ?
Best regards
Hi @stitch06,
Thanks for your input. I clarified the KB a little bit based on your feedback.
If you read that bit again it should be easier to understand.
Basically, you want to open your Theme’s functions.php file and add this
add_action( 'wp_head', 'my_google_opt_out' );
function my_google_opt_out() {
if ( ! has_consent( 'analytics' ) || ! is_allowed_cookie( '_ga' ) ) {
<script>
window['ga-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
</script>
}
}
OR you can do it via javascript
if ( ! has_consent( 'analytics' ) || ! is_allowed_cookie( '_ga' ) ) {
window['ga-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
}
Thanks a lot Fernando
I going to try this 🙂
Hope your plugin will be translate in French
On front office is enough…
Just for visitors
For that to become a reality I need French-speaking people to collaborate and translate it here: https://translate.ww.wp.xz.cn/projects/wp-plugins/gdpr
After translations are submitted, the WordPress French translation team can review and approve/reject translations. As soon as the translations are 95% complete, it will be available for anyone to use when activating the plugin.