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 actually 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 one simple solution to this: Publish the GTM container once you create it.
How to do this?
Always follow these steps when you plan tracking a new website for GTM:
- Create new container
- Publish it!
- Put the GTM embed code in your website code
- 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.