• Resolved chanfin

    (@chanfin)


    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

    (@fclaussen)

    Hi @chanfin,
    What do you need to setup? Consent types? Cookies? Actually blocking Google Analytics from firing?

    Plugin Author Fernando Claussen

    (@fclaussen)

    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. https://gdpr-wp.com/knowledge-base/

    Thread Starter chanfin

    (@chanfin)

    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.

    Plugin Author Fernando Claussen

    (@fclaussen)

    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

    (@fclaussen)

    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

    Plugin Author Fernando Claussen

    (@fclaussen)

    For that to become a reality I need French-speaking people to collaborate and translate it here: https://translate.www.ads-software.com/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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Setup Help’ is closed to new replies.