Search
Clear search
Close search
Google apps
Main menu

Google Tag Manager Errors

Data layer variable name in wrong case: "conversionID", "PageCategory", "pageSubcategory", "visitorId", etc.

<script> tag must not be included in a <flow:ifenabled>

<script> tag must not be included in a <ns:robots>

<script> tag must not be included in a <center>

<script> tag must not be included in a <dl>

<script> tag must not be included in a <footer>

<script> tag must not be included in a <form>

<script> tag must not be included in a <header>

<script> tag must not be included in a <i>

<script> tag must not be included in a <p>

<script> tag must not be included in a <section>

<script> tag must not be included in a <span>

Data layer needs to be above the container snippet

HTTP response code indicates tag failed to fire

Remove the "." from your dataLayer name dataLayer.2_variables. It may cause issues with tracking.

Remove the "." from your dataLayer name order.grand_total. It may cause issues with tracking.

Remove the "." from your dataLayer name order.order_id. It may cause issues with tracking.

Remove the "." from your dataLayer name order.shipping_charges. It may cause issues with tracking.

Remove the "." from your dataLayer name order.sub_total_eu. It may cause issues with tracking.

Remove the "." from your dataLayer name order.tax. It may cause issues with tracking.

Tag is included in an iframe

Non-standard implementation

Invalid or missing account ID

Data layer fields should be quoted

Consolidate your tags with Google Tag Manager.

Code found outside of <body> tag

<script> tag must not be included in a <td>

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

Data layer variable name in wrong case: "conversionID", "PageCategory", "pageSubcategory", "visitorId", etc.

The Data Layer variable name is case-sensitive. If you try to push a variable or event without the proper casing, the push will not work.

Examples:

  • datalayer.push({"pageTitle": "Home"}); // Won't work
  • datalayer.push({"PageTitle": "Home"}); // Better

This means that the data layer variable has not been correctly set up, and this will hamper the tags fired based on these data layers.

Correct the data layer to the correct case.


<script> tag must not be included in a <flow:ifenabled>

The Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <ns:robots>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <center>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <dl>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <footer>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <form>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <header>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <i>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <p>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <section>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


<script> tag must not be included in a <span>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


Data layer needs to be above the container snippet

Datalayer should be added above the container snippet. Variables pushed to the data layer after the container snippet will not be able to fire tags on page loads with a matching condition.

Variables pushed to the data layer after the container snippet will not be able to fire tags on page loads with a matching condition.

Move the datalayer to above the container snippet


HTTP response code indicates tag failed to fire

This error indicates that even though Google Tag Manager code snippet was detected in the page source, the script itself did not execute. Each time the Google Tag Manager script executes, we expect an HTTP Response carrying the container tag details.

This means that Google Tag Manager code is not correctly implemented, because of which any tags added via Google Tag Manager will not be fired.

Remove the current snippet. Get the snippet again from the Google Tag Manager interface and make sure to paste it immediately after the opening <body> tag.


Remove the "." from your dataLayer name dataLayer.2_variables. It may cause issues with tracking.

We discourage people from using a "." in dataLayer key names. Example: dataLayer.push({"one.two": 3}); Not recommended dataLayer.push({"onetwo": 3}); Recommended

This may cause issues with tag execution.

Don't use a "." in dataLayer key names.


Remove the "." from your dataLayer name order.grand_total. It may cause issues with tracking.

We discourage people from using a "." in dataLayer key names. Example: dataLayer.push({"one.two": 3}); Not recommended dataLayer.push({"onetwo": 3}); Recommended

This may cause issues with tag execution.

Don't use a "." in dataLayer key names.


Remove the "." from your dataLayer name order.order_id. It may cause issues with tracking.

We discourage people from using a "." in dataLayer key names. Example: dataLayer.push({"one.two": 3}); Not recommended dataLayer.push({"onetwo": 3}); Recommended

This may cause issues with tag execution.

Don't use a "." in dataLayer key names.


Remove the "." from your dataLayer name order.shipping_charges. It may cause issues with tracking.

We discourage people from using a "." in dataLayer key names. Example: dataLayer.push({"one.two": 3}); Not recommended dataLayer.push({"onetwo": 3}); Recommended

This may cause issues with tag execution.

Don't use a "." in dataLayer key names.


Remove the "." from your dataLayer name order.sub_total_eu. It may cause issues with tracking.

We discourage people from using a "." in dataLayer key names. Example: dataLayer.push({"one.two": 3}); Not recommended dataLayer.push({"onetwo": 3}); Recommended

This may cause issues with tag execution.

Don't use a "." in dataLayer key names.


Remove the "." from your dataLayer name order.tax. It may cause issues with tracking.

We discourage people from using a "." in dataLayer key names. Example: dataLayer.push({"one.two": 3}); Not recommended dataLayer.push({"onetwo": 3}); Recommended

This may cause issues with tag execution.

Don't use a "." in dataLayer key names.


Tag is included in an iframe

The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

This will prevent certain tags from accurately tracking the parent page because of which tags added via Tag Manager may not fire accurately.

The Google Tag Manager snippet must be placed directly in the page, immediately after the opening <body>tag, that you intend on tracking


Non-standard implementation

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.

Verify that your code snippet is working fine. You can make use of the preview and debug tool to ensure all tags added in Google Tag manager are being fired: https://support.google.com/tagmanager/answer/2695660


Invalid or missing account ID

NOTE: If your container ID (i.e. what’s referenced here as ‘account ID’) is of format GTM-XXXXXXX, where the portion after ‘GTM-’ is longer than 6 characters, you may see this error unnecessarily. This false error will be resolved in a future update. In the meantime, as long as your container ID follows the correct format as described below, you may ignore this error.

The account ID added in the Tag Manager snippet is wrong. An example snippet will look something like this:

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

The "GTM-XXXXX" should be replaced by your account ID. The best way to fix this is to re-install the entire container snippet using the latest guidance. You can find your account-specific snippet in your Tag Manager account:

  1. Log in to your Tag Manager account at https://tagmanager.google.com.
  2. Near the top of your workspace's home screen, you will see your Google Tag Manager container ID number (formatted as "GTM-XXXXX"). Click it to launch the Install Tag Manager box.
  3. Copy and paste the code snippets into your website as instructed. The <script> portion of the JavaScript snippet will be placed in the <head> of your web page's HTML output, and the <noscript> section should appear immediately after the opening <body> element. For best results, the <script> portion of the snippet should be placed as close to the opening <head> element as possible, but below any dataLayer declarations. See the Tag Manager developer site for further installation details.

Data layer fields should be quoted

While quotes are not strictly required for variable names that consist of only letters, numbers, and underscores, and which are not reserved words (e.g. function, export, native, etc.), to avoid issues, it"s recommended that all variable names be enclosed in quotes. Examples: dataLayer.push({new-variable: "value"}); // Won"t work dataLayer.push({"new-variable": "value"}); // Better


Consolidate your tags with Google Tag Manager.

Google Tag Manager allows you to conveniently manage tags (such as tracking and marketing optimization tags) on your site. You can add and update AdWords, Google Analytics, Floodlight, and non-Google tags from the Google Tag Manager user interface instead of editing site code. This reduces errors, frees you from having to involve a webmaster, and allows you to quickly deploy tags on your site.

To manage your tags using Google Tag Manager, you’ll need to: go to google.com/tagmanager to create a Google Tag Manager account (or to access an existing account). create a container for your site in the account, add the container snippet to your site, while removing any existing tags on your site. You’ll then be ready to add tags to your site via the Google Tag Manager user interface. For more information, read Setup and Workflow.


Code found outside of <body> tag

NOTE: Please ignore this error. The recommendations for how to implement the Google Tag Manager container code have changed. While implementations with the container code entirely in the <body> will continue to work as is, it’s now recommended that the container code be split, with the <script> portion in the <head> and the <noscript> portion in the <body>. Further context may be found in this blog post. This false error will be resolved in a future update. In the meantime, you may ignore this error.

<script> tag must not be included in a <td>

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.


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

Google Tag Manager Tag should be placed immediately after the opening <body> tag and not inside any other HTML element. The Google Tag Manager snippet must be placed directly in the page that you intend on tracking. Placing it in a hidden iframe or deploying it within another tag management system will prevent certain tags from accurately tracking the parent page.

Tags added via Google Tag Manager may not fire.

Please make sure to place the Tag Manager snippet immediately after the opening <body> tag.