• Resolved wanderndeluxe

    (@wanderndeluxe)


    Hi!
    Somehow, the following code is inserted on my website by Complianz:
    <script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-2xxxxxxxxx&l=dataLayer&cx=c"></script>
    However I didn’t configure Complianz to use Google Tag Manager (GTM) at all! Instead I only configured Complianz to insert the Google Analytics code in my website (depending on consent).
    Is there a bug? I even don’t know where the Tag Manger ID G-2xxxxxxxxx is coming from because I don’t have an GTM account. It is really weird, because Complianz was meant to make my website more compliant with GDPR. Instead it is worse.
    What I did to “prove” that bug:

    • deactivating the plugin Complianz: no more GTM script on my website
    • activating Complianz again, be not accepting statistic cookies: Google Analytics Script is gone, GTM-Script still there.
    • Could you please check if you can reproduce this behaviour?
      Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @wanderndeluxe,

    This part in the script; https://www.googletagmanager.com/gtag/js?id=G-2xxxxxxxxx& refers to a Google Analytics 4 account, not GTM.

    If you entered a GA4 code in our wizard, we will use GTAG.js, for example;

    <script type="text/plain" async class="cmplz-script cmplz-stats" src="https://www.googletagmanager.com/gtag/js?id=G-*****"></script>
    <!-- Statistics script Complianz GDPR/CCPA -->
    <script type="text/plain" class="cmplz-stats">window['gtag_enable_tcf_support'] = false;
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'G-******', {
    cookie_flags:'secure;samesite=none',	
    });
    </script>

    You will see there are significant parts to this script to let u know it’s from us, and not somewhere else. We do not use: async="" but solely async, and we always add classes to handle consent: cmplz-script cmplz-stats

    Could you post your URL with Complianz enabled so I can have a closer look?

    regards Aert

    • This reply was modified 3 years, 4 months ago by Aert Hulsebos.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wanderndeluxe,

    Any updates about this? Just let us know if you’d need us to investigate the behavior on the site in question.

    Kind regards,
    Jarno

    Thread Starter wanderndeluxe

    (@wanderndeluxe)

    Hi Guys,
    sorry for the delay. Yes, you are right, G-2xxxxxxxxx corresponds to my GoogleAnalytics4-Account (GA4).
    However, I don’t know how this was inserted in my website. I must have to do something with Complianz, but I can’t find a setting within Complianz with my GA4-Code.
    My assumption is supported by the following behavior:

    • Complianz deactivated: GA4-coding is NOT there.
    • Complianz activated & Setting “Let Complianz insert GA-script” = Yes: GA4-coding is there.
    • Complianz activated & Setting “Let Complianz insert GA-script” = No: GA4-coding is NOT there.

    Looking into my GA4-Account, I can see that visits are tracked since 5th of october this year. Since I didn’t change anything around that date, maybe it has to do something to do with an update of Complianz? I remember that I was trying to integrate GA4 earlier this year with Complianz but I was not successfull. Maybe I had some settings that have been erased with an update or something like this…

    P.S.: At least I can confirm, that Complianz works correctly concerning user’s choice: If only functional cookies are accepted, the GA4-script is visible in the source code but set to type=”text/plain” (instead of text/javascript). It was my fault not to see this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot get rid of Google Tag Manager Script’ is closed to new replies.