• Resolved fromb

    (@fromb)


    Hello,

    When the GTM integration is activated the noscript block is not being added after the <body> tag:

    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->

    Any particular reason? My client insists on having it in there.

    Thanks.

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

    (@aahulsebos)

    Hi @fromb,

    This is a fallback for when javascript is disabled in a browser. Which is a very rare occurrence.

    My reasoning is, that when javascript is disabled, having a fallback for GTM might be nice, but your website won’t function properly as javascript is not loaded, and any tracking data would be based on a poorly functioning website.

    Complianz will not work either, so adding the above won’t be possible.

    If your client insists, there’s no issue in adding this yourself. Hope this helps!

    regards Aert

    Thread Starter fromb

    (@fromb)

    Yes, I can add the GTM code myself but then it has to be defined twice, once in the plugin and once in the template. This is error prone.

    Besides that, Tag Assistant flags the implementation as incomplete. I don’t want to have to waste my time and other people’s time explaining this on each new project.

    I don’t want to offend you but I think it’s bad to make assumptions like this on behalf of the user.

    Adding the noscript code in the DOM should be fairly easy and as far as I know there is no downside for you.

    I hope you will reconsider.

    Thank you.

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @fromb,

    You can select Google Tag Manager in the wizard, and in the next step (Statistics – Configuration) not let Complianz add GTM, but do it yourself. Now you have full control over the implementation. Nothing has to be defined twice.

    We are not making any assumptions for our users, as they have the above option, just another approach that doesn’t include complying with Google’s own wishes, which is collecting as much data, as soon as possible, even when javascript is disabled.

    The latter is something I would defend, as personally, I won’t consider data useful when collected on a website without javascript, especially when goals or purchases are considered, as this pixel is not prepared for extensive parameters, just simple metrics.

    But like I said, the choice is yours! Regards Aert

    Thread Starter fromb

    (@fromb)

    Now you have full control over the implementation.

    Yes ?? But them I’m dealing with potential caching issues, development costs…

    Can the Complianz GTM code setting be made available in the templates somehow?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @fromb,

    For now you can opt to manually place the Google Tag Manager script as previously described, in order to obtain full control over the implementation of the script.

    We are of course open to contributions & suggestions from the open-source community for this free plugin, and would be more than happy to review pull requests for alternative solutions on the Complianz GitHub repository.

    Kind regards,
    Jarno

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘GTM integration missing noscript block’ is closed to new replies.