• Resolved Zougou

    (@zougou)


    Hi,

    Some months ago, I have setup Complianz to add Google Analytics tracking code.
    Here’s the global site tag code generated by Complianz :

    <script type="text/plain" async class="cmplz-script cmplz-stats" src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
    <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', 'GA_TRACKING_ID', {
    	cookie_flags:'secure;samesite=none',
    	'anonymizeIp': true
      });
    </script>

    Now, I need to add Google Ads conversion tracking code on specific pages.
    As far as I understand, I only need to add ‘gtag( ‘config’, ‘AW-CONVERSION_ID’);’ right above the </script> end tag on my specific pages.

    I’m not sure how to handle this with Complianz.
    In complianz->cookies->statistics configuration : Should I select “No” for “Would you like Complianz to add Google Analytics to your website ?”
    And add manually code for both Google Analytics and Google Ads directly in header.php ?

    Can you advise me please ?

    Thanks in advance for your help

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @zougou,

    You have a few options to do this, probably the easiest would be to let Complianz place both the Analytics and Google Ads tags.

    If you navigate to Complianz > Wizard > Statistics and select “Yes, with Google Analytics”, on the next page (Statistics – configuration), you will be able to enter your Analytics ID and Google Ads ID separately:

    But you could also place the Gtag.js snippet manually, and adjust it to fire your tags on the desired consent levels. This method is explained in greater detail here: https://complianz.io/adding-global-site-tag-gtag-js-with-granular-consent/

    Hope it helps,
    Kind regards.
    Jarno

    Thread Starter Zougou

    (@zougou)

    Thanks Jarnovos for your quick answer 🙂

    On Statictics configuration page, I’m able to see TRACKING-ID for Google Analytics, but I do not have CONVERSION ID field.
    I’m using Complianz 5.5.1.
    Maybe this is a new feature, and I should update plugin ?
    I looked at changelog but I didn’t find anything about that

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @zougou,

    Yes, you would indeed have to update your plugin to a more recent version.

    Hope this clarifies!
    Kind regards,
    Jarno

    Thread Starter Zougou

    (@zougou)

    Ohh ok thanks ! that’s why I couldn’t see this option 🙂
    I’ll update plugin then.

    Can you tell me if this is really important to add conversion ID tracking code only on specific pages, and not all pages ?
    I suppose that I won’t be able to specify pages where to include code with Complianz

    Plugin Author Aert

    (@aahulsebos)

    Hi @zougou,

    Correct, this won’t specifically target pages. If you want to do this you can, but outside of Complianz and between these script tags for consent:

    <script type="text/plain" data-category="marketing" </script>

    regards Aert

    • This reply was modified 4 years, 2 months ago by Aert.
    Thread Starter Zougou

    (@zougou)

    Ok, Thanks Aert 🙂
    Have a nice day

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Google Ads conversion tracking code’ is closed to new replies.