Issues with Google Tag manager

Hi Themeco Team,

I recently installed Google Tag Manager using the steps outlined in this support article: Google Tag Manager in Head on every page. However, when I run the Google Tag Assistant extension in Chrome to test the tag, I’m getting a warning for “non-standard implementation”.

Can you suggest a way to resolve this?

Thank you.

Hi @bartenderonduty,

Thank you for writing in, please follow the guide provided here instead.

Please do note that since this is a customization and outside of the support that we can offer, it would ultimately be your responsibility to take it from here.

Cheers!

Thank you for the quick response. I followed the instructions in the link you provided and moved the code to the _header.php in the child theme and unfortunately, I’m still getting errors. Google indicates “We have detected Google Tag Manager web requests, but were not able to find the code snippet on the page. Using non-standard code implementation on a page may prevent tags from being fired.” so this is somewhat of an issue.

Can you please take another look and perhaps provide another recommendation?

Thank you.

Hello @bartenderonduty,

I have inspected your page and I am seeing these codes:

<script>(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-N72DSJ4');</script>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N72DSJ4"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

Based from the Google’s Quick Start Guide, the placement is correct. You can confirm it here:

I would recommend that you double check whether the Gtag account was created properly.
Please check this out:

If nothing is helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Best Regards.

I set up Google Tag Manager again and am still getting the notices. I also did a bit more research as well and from what I’m seeing these notices don’t affect the performance, so I am just going to leave as is. I appreciate your willingness to help.

Thank you!

Great News and you are most welcome.
If you need anything else we can help you with, don’t hesitate to open another thread.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.