• Resolved zissis

    (@zissis)


    Hello i’ve used your function:

    add_action( 'wp_head', 'my_google_opt_out' );
    function my_google_opt_out() {
      if ( ! is_allowed_cookie( '_ga' ) ) {
        ?>
        <script>
           window['ga-disable-UA-xxxxxxx-x'] = true;
        </script>
        <?php
      }
    }

    But it disable’s Google analytics Cookies even if i allow the “_ga, _gid, _gat” Cookie section.

    • This topic was modified 6 years, 10 months ago by zissis.
    • This topic was modified 6 years, 10 months ago by zissis.
Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘Disable Google Analytics’ is closed to new replies.