Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #972990

    Hi guys!

    Do I have to set anything additional to disable Google Analytics Tracking (especially if it’s done via GTM)?

    I still see the GTM Analytics tags firing on the Google Tag Assistant. (Not that I don’t like that) ;)

    Thank you!!!

    Havi

    #973208

    Hey havi,

    You need to remove the tracking codes if you don’t want to use it anymore.

    Best regards,
    Victoria

    #973381

    Hi Victoria,

    I think I didn’t explain myself correctly.

    When a visitor chooses to Disable Google Analytics (an option now offered via the modal window and shortcode), I can see the GA code still fires and tracks.

    The website property has Analytics code implemented via Google Tag Manager.

    Do I need to add some code to make your feature work? Maybe a Tag on GTM that picks up on a variable or trigger sent by Enfold?

    Please, let me know if I was clear enough.

    Sending you the site on the private content.

    Best regards,

    Havi

    #973782

    Hi,

    Our popup works only if you have used the code of google analytics and you use it from there.
    If you are using Tag Manager you need to custom code that solution.

    Best regards,
    Basilis

    #973788

    Hi Basilis!

    I thought so… Quick question (as I can write a little tag on GTM) what would be the variable I should be looking for and the two values (on/off) so I can craft it?

    Once I do, I’ll be happy to share so others can use it.

    Warmly,

    Havi

    #973840

    Hey!

    I’d recommend to study articles like: https://blog.marketing-factory.de/datenschutz/google-analytics-opt-out/ as a starting point. I’ll leave this thread open in case another user can provide more details.

    Cheers!
    Peter

    #1121538

    Hi,
    I’m having the same problem “havi” described. I guess the easiest solution would be to use both the “native” Google Analytics support of Enfold and the GTM:
    The native Enfold support to track simple pageviews and the Opt-Out functionality With the GTM you can then add additional tags that should be fired. You only have to make sure NOT to track the pageview via GTM a second time. With the same UA-XXXXXX-X used, the Opt-Out Cookie should apply for GTM Tags, too.

    Of course that solution means you have to load two different javascripts. The more elegant way is to use only the GTM (insert it via header.php or functions.php of child) and let the enfold shortcode set the cookie.
    As Enfold does not name the cookie individually, you can then just ask, if the cookie aviaPrivacyGoogleTrackingDisabled is there, and if so use the window[‘ga-disable-GA_MEASUREMENT_ID’] = true; command to disable tracking.

    All you have to do manually is to change the UA-XXXXXXXX-X in the following snippet and place it BEFORE the GTM code in the head:

    <script>
    if(document.cookie.match(/aviaPrivacyGoogleTrackingDisabled/)){ window[‘ga-disable-UA-XXXXXXXX-X‘] = true; }
    </script>

    #1122332

    Hi marximo.lider,

    Thank you for your input, it will help other users with a similar issue :)

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.