• Resolved marketingsog

    (@marketingsog)


    Hi, I am trying to make the GTM work with Google but we cannot find/edit the script tag. GTM does not track the Google Ads conversions and Tag Assistant Legacy shows following errors for GTM (Ads Tag is working properly):

    <script> tag must not be included in a <div>?

    and the following but Google says it is mainly the div-tag
    GTM JavaScript code not found as a direct child of the <head> tag
    GTM no-script code not found: either missing or not in <body>

    Can you help please?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @marketingsog,

    All these ‘warnings’ are not the cause of ads conversions not tracking. GTM is loading correctly, could you tell me when the ads conversion should trigger and if you have an exception or trigger event with a Complianz variable?

    Regarding the warnings;

    I see the warning “<script> tag must not be included in a <div>”, but there’s no evidence in the source that this is the case as it injected without any HTML elements.

    The script element itself is not editable. You can however, in the wizard under Consent – Statistics Configuration – answer NO to the question if Complianz should add the script, and add it yourself as you wish. This would resolve the other issues, which I don’t consider a problem;

    Setting GTM as a direct child of <head> means you will load GTM before your website is even interactive or sometimes visible. There’s no benefit if your tags are waiting for consent settings or interaction; it will only start a request that can wait.

    The <noscript> tag is a fallback when javascript is not available. This means everything related to javascript, including your ads, Complianz and other plugins and theme features, will fail, but GTM will still fire. As this is a very rare occurrence, and when it happens, it will collect skewed data that doesn’t represent your website there’s no real reason to add a fallback. Both of the above recommendations benefit Google more than it benefits you.

    But you can add this yourself as shown above. Let me know if I can help with the conversion tag. regards Aert

Viewing 1 replies (of 1 total)
  • The topic ‘Google Tag Manager’ is closed to new replies.