Title: Setup Help
Last modified: April 24, 2018

---

# Setup Help

 *  Resolved [chanfin](https://wordpress.org/support/users/chanfin/)
 * (@chanfin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/)
 * Hello,
 * I understand what this plugin is trying to achieve and I’m trying to set it up.
   at the moment we have a different plugin that is similar but doesn’t offer as
   many features.
 * I have the code that we’d need to add for the 3rd parties (we only use Google
   Analytics) but I can’t figure out where in the settings this all needs to go 
   so it works correctly.
 * Thanks
 * Sam

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10213810)
 * Hi [@chanfin](https://wordpress.org/support/users/chanfin/),
    What do you need
   to setup? Consent types? Cookies? Actually blocking Google Analytics from firing?
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10213823)
 * 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/](http://gdpr-wp.com/knowledge-base/)
 *  Thread Starter [chanfin](https://wordpress.org/support/users/chanfin/)
 * (@chanfin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10213919)
 * Hi [@fclaussen](https://wordpress.org/support/users/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.
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10213989)
 * You can find the answer to your problem here: [http://gdpr-wp.com/knowledge-base/enabling-or-disabling-functionality-based-on-consent-and-cookies/](http://gdpr-wp.com/knowledge-base/enabling-or-disabling-functionality-based-on-consent-and-cookies/)
 *  [stitch06](https://wordpress.org/support/users/stitch06/)
 * (@stitch06)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10214093)
 * 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
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10214161)
 * Hi [@stitch06](https://wordpress.org/support/users/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.
       }
       ```
   
    -  This reply was modified 8 years, 1 month ago by [Fernando Claussen](https://wordpress.org/support/users/fclaussen/).
 *  [stitch06](https://wordpress.org/support/users/stitch06/)
 * (@stitch06)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10214208)
 * 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
 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10214240)
 * For that to become a reality I need French-speaking people to collaborate and
   translate it here: [https://translate.wordpress.org/projects/wp-plugins/gdpr](https://translate.wordpress.org/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.
    -  This reply was modified 8 years, 1 month ago by [Fernando Claussen](https://wordpress.org/support/users/fclaussen/).

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Setup Help’ is closed to new replies.

 * ![](https://ps.w.org/gdpr/assets/icon.svg?rev=1837142)
 * [GDPR](https://wordpress.org/plugins/gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/setup-help-8/#post-10214240)
 * Status: resolved