404 error for Google Tag Manager

J82 picture J82 · Mar 24, 2015 · Viewed 80.9k times · Source

Google Tag Manager told me to put this underneath the opening body tag.

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<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=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->

Now I'm getting this 404 not found for GET:

GET http://www.googletagmanager.com/gtm.js?id=GTM-XXXXXX

I implemented the code last night. Does this just take time or is this something that needs to be fixed? If the latter, how would I fix it?

Answer

Thorkil Holm-Jacobsen picture Thorkil Holm-Jacobsen · Apr 16, 2015

You need to publish a version of your container. If it is not published, the request will return a 404 error.

To publish your current workspace:

  1. Click Submit at the top right hand side of the screen. The Submit Changes screen will appear, with options to publish the container and save a version of your container.
  2. Select Publish and Create Version if it is not already selected.
  3. Review the Workspace Changes section to see if your configuration appears as you expect.
  4. Enter a Version Name and Version Description.
  5. If you have Tag Manager configured to use multiple environments, use the Publish to Environment section to select which environment you'd like to publish to.
  6. Click Publish.