Doing SEO for ecommerce? Our upcoming webinar is just for you! Register now.

Dealing with Internal issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free
Low This Hint is of the lowest significance, and should only be addressed if there are not more serious issues which have not been handled. Potential Issue This Hint is unlikely to be affecting the site at the moment, but should be investigated as it could cause issues in the future.

URL contains more than one Google Tag Manager code

This means that the URL in question contains more than one Google Tag Manager snippet.

Why is this important?

Google Tag Manager (GTM) is user-friendly solution to managing tracking and analytics tags, for example Adwords Conversion Tracking and Google Analytics.

This Hint highlights that more than one GTM snippet was found.

Whilst this is supported by Google, it is not recommended - so this Hint exists to highlight the issue for further investigation.

What does the Hint check?

This Hint will trigger for any internal URL that contains more than one GTM code within scripts on the page.

Examples that trigger this Hint

The Hint would trigger for any URL which contains a script in the <head> that contains a GTM code (e.g. GTM-XXXX);

<!-- Google Tag Manager -->
<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-XXXX');</script>
<!-- End Google Tag Manager -->

and contains at least one more script in the <head> that contains a GTM code (e.g. GTM-YYYY);

<!-- Google Tag Manager -->
<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-YYYY');</script>
<!-- End Google Tag Manager -->

Why is this Hint marked 'Potential Issue'?

This Hint is a 'Potential Issue', which means that it is unlikely to be affecting the site at the moment, but should be investigated as it could cause issues in the future.

It is entirely possible that you might run into a situation where multiple Google Tag Manager containers are required on the same page. Whilst it is valid, Google advise to keep the number of Google Tag Manager containers on the page minimal, for best performance.

Further Reading

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.