The Privacy Suite for WordPress

Google Tag Manager 404 GTM.JS Error

Get compliant today in the European Union, United States, Canada, United Kingdom, Australia, Brazil & South Africa with the only Privacy Suite for WordPress that offers a fully-featured plugin for Worldwide Compliance.

You’ve added GTM to the Complianz Wizard, and still, you’re receiving a 404 GTM.JS Error in Google Tag Manager. We know the issue, and we have a solution for this.

Still, figuring out how to implement Complianz with Tag Manager? Refer to our Definitive Guide to Tag Manager and Complianz for detailed instructions.

The solution to GTM.JS 404 Error

The solution is one of GTM itself. What is happening is that your browser is requesting data from GTM. However, the container hasn’t been published yet. This means no data is being returned. There is a straightforward solution to this: Publish the GTM container once you create it.

How to do this?

Always follow these steps when you plan to track a new website for GTM:

  • Create new container
  • Publish it!
  • Put the GTM embed code in your website code
  • Open the JavaScript Console when browsing on your website
  • No gtm.js 404 error? Then there’s no error, and you’re good to go.

Master tip: Always publish your containers, even when they’re empty. By doing this, developers won’t receive a 404 error.

Recent articles

The Privacy Suite for WordPress
Get compliant today with the only Privacy Suite made for WordPress

Categories

Popular articles

TTDSG, the New Cookie Law for Germany

As of December 1st, 2021 the Telecommunications-Telemedia Data Protection Act (Telekommunikation-Telemedien-Datenschutz-Gesetz) regulates the handling of cookies, local storage, cookieless tracking,  and other tracking technologies in

Read More

Cookieless Tracking and GDPR

In this article, we will have a closer look at cookieless and server-side tracking and how this affects your website’s configuration regarding privacy laws. The

Read More

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!