• Resolved cutu234

    (@cutu234)


    I’ve just wanted to switch from GA4 to GTM, but I cannot find the field for entering the GTM container ID. I checked “Do you want Complianz to add Google Tag Manager to your website”, but the input field is missing.

    Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support antoiub

    (@antoiub)

    Hello @cutu234 ,

    Thank you for reaching out. Usually this happens when you have Site Kit installed. Can you please provide me your site URL and screenshot of this section of the wizard?

    Thank you in advance.

    Thread Starter cutu234

    (@cutu234)

    I don’t even know what Site Kit is. ?? Which section exactly do you mean?

    Plugin Support antoiub

    (@antoiub)

    Hello,

    Thank you for the clarification. I am referring to the “Statistics” and “Statistics configuration” sections, which you can find by navigating to Wizard > Consent.
    Here’s an example of the statistics section:: https://prnt.sc/JKy5AmqFwAMR
    Here’s an example of statistics configuration section: https://prnt.sc/hGFvs0hyL7Xr. Here you should be able to insert/paste your gtag.

    Looking forward to hearing you.

    Thread Starter cutu234

    (@cutu234)

    No input field!

    What does “If you choose Complianz to handle your statistics implementation, please delete the current implementation.” mean? How can I delete the former implementation?

    Thank you!

    Plugin Support antoiub

    (@antoiub)

    Hello,

    Thank you for the infos, could you please provide me a list of all of your plugins? And also, the url of your site?

    Thanks

    • This reply was modified 4 months ago by antoiub.
    Thread Starter cutu234

    (@cutu234)

    Sure:

    https://walterluebeck.com/

    WPML Multilingual CMS
    Advanced CF7 DB
    WP Affiliate Manager
    BackWPup
    Conditional Fields for Contact Form 7
    Complianz | GDPR/CCPA Cookie Consent
    Contact Form 7
    Yoast Duplicate Post
    GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
    E-Mail Log
    GP Premium
    Rechtstexte-Schnittstelle der IT-Recht Kanzlei
    MainWP Child Reports
    MainWP Child
    Modern Events Calendar Lite
    Newsletter – Addons Manager and Support
    Newsletter – Import/Export
    Newsletter
    Mitglieder-Datenbank
    Participants Database Email Expansion Kit
    Participants Database Field Group Tabs
    Send PDF for Contact Form 7
    Rank Math SEO
    Sidebar Manager
    Advanced Editor Tools
    Portfolio Pro
    WP Rechnungen DACH
    Germanized für WooCommerce
    WooCommerce Multilingual & Multicurrency
    WooCommerce
    Wordfence Security
    WPML String Translation
    WPForms Multilingual
    xnau Plugin Updates

    Plugin Support antoiub

    (@antoiub)

    Hello,

    Thank you, please try to deactivate “GTM4WP – A Google Tag Manager (GTM) plugin for WordPress” and let me know what happens inside of Statistics configuration.

    Thread Starter cutu234

    (@cutu234)

    OK, that worked. However, now the script is included no matter whether the user has confirmed or not. I tried this approach in the functions.php:

    add_action('wp_footer', 'complianz_gtm');
    function complianz_gtm(){
    ?>
    <script type="text/plain" data-category="statistics">
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-xxxxxxx');</script>
    <?php
    }

    Now, the script is included twice:

    https://walterluebeck.com/

    It seems that the script is included in the category “functional”, which is not correct, of course:

    <!-- Statistics script Complianz GDPR/CCPA -->
    <script data-category="functional">
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    		new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    	j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    	'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-xxxxxx');
    						</script>
    • This reply was modified 4 months ago by cutu234.
    Plugin Support leonardoiub

    (@leonardotamion)

    Hello,

    thanks for your message.

    It’s correct the script of GTM is included even if the user didn’t accept the banner, the important thing is that the cookies aren’t released untile the user’s acceptance.

    Please:
    1) Disable the approach you tried
    2) Complete the section “Statistics configuration” putting your GTM id, activating the Consent Mode and our template
    3) Lastly you just have to complete the configuration in your GTM container following the steps you find here https://complianz.io/simplified-guide-to-google-consent-mode-v2/, section “Scenario 1: Using Google Tag Manager”.

    Once done everything we’ll be able to check if the Consent Mode is working

    Thread Starter cutu234

    (@cutu234)

    2) Complete the section “Statistics configuration” putting your GTM id, activating the Consent Mode and our template

    I wish I could, but Consent Mode is not available in the free version. Do I need the premium version for this wot work?

    Plugin Support leonardoiub

    (@leonardotamion)

    Hello,

    unfortunately I confirm you need a premium license to activate the Consent Mode.

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