About cookies on this site

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. Learn more

Cookie settings

About cookies on this site

Cookies used on the site are categorized and below you can read about each category and allow or deny some or all of them. Learn more

Necessary

Some cookies are required to provide core functionality. The website won't function properly without these cookies and they are enabled by default and cannot be disabled.

Preferences

Preference cookies enables the web site to remember information to customize how the web site looks or behaves for each user. This may include storing selected currency, region, language or color theme.

Analytical cookies

Analytical cookies help us improve our website by collecting and reporting information on its usage.

Marketing cookies

Marketing cookies are used to track visitors across websites to allow publishers to display relevant and engaging advertisements. By enabling marketing cookies, you grant permission for personalized advertising across various platforms.

  • Courses
    • Paid courses
    • Course bundles
    • Free courses
  • Blog
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • Services
  • About
    • About
    • Contact
  • Login
  • Courses
    • Paid courses
    • Course bundles
    • Free courses
  • Blog
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • Services
  • About
    • About
    • Contact
  • Login

http response code indicates tag failed to fire: status 404. this could be due to an empty or un-published container

[Solved] http response code indicates tag failed to fire: status 404. this could be due to an empty or un-published container

So you’ve added a Google Tag Manager snippet to a website (by carefully following the instructions), then open Google Tag Assistant, click on your GTM container ID and see the following error:

http response code indicates tag failed to fire: status 404. this could be due to an empty or un-published container

What is it and how to fix it? I’ll show you in this quick guide.

 

The solution to this problem

The problem lies within Google Tag Manager itself. Your browser is requesting container data from Google’s servers although that container is still not published yet, thus no data will be returned. The solution here is to publish a Google Tag Manager container once you create it.

So go back to your Google Tag Manager interface, click Submit in the top right corner and publish the container (just keep in mind that all those changes/tracking codes will become active on a page and they will start tracking your visitors).

Important! Creating a version of the container is not enough. You need to actually publish the container.

 

How to avoid this issue in the future

In the future, always complete the following actions when you plan tracking a new website with GTM:

  • Create a new container in Google Tag Manager.
  • Publish it (with default settings).
  • Install Google Tag Manager on your website according to instructions (or ask a developer to do it).
  • Open your website in a browser and check Javascript Console (if you’re not familiar with it, here are short Chrome and Firefox instructions).
  • If there’s no error in Tag Assistant – go ahead and start setting up your marketing tags.

Related resources:

  • Google Tag Assistant tutorial
  • Google Tag Manager tutorial (+ FREE e-book)
Google Tag Manager Ebook Bundle
Hi, I'm Julius Fedorovicius and I'm here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey.Read more
Analytics Mania
  • Google Tag Manager Courses
  • Google Tag Manager Recipes
  • Google Tag Manager Resources
  • Google Tag Manager Community
  • Login to courses
Follow Analytics Mania
  • Subscribe to newsletter
Recent Posts
  • Content Groups in Google Analytics 4
  • 3 Ways to Pull Data from Data Layer with Google Tag Manager
  • 13 Reasons Why a Tag in Google Tag Manager is Not Firing (or Fires When it Shouldn’t)
Analytics Mania - Google Tag Manager and Google Analytics Blog | Privacy Policy
Manage Cookie Settings