404 error for Google Tag Manager
Solution 1:
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:
- 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.
- Select Publish and Create Version if it is not already selected.
- Review the Workspace Changes section to see if your configuration appears as you expect.
- Enter a Version Name and Version Description.
- 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.
- Click Publish.
Solution 2:
I had the same issue even after publishing and got it fixed by simply deleting the subdomain "www" from the tag manager domain "https://googletagmanager.com" instead of "https://www.googletagmanager.com"
Seems the problem is that the DNS is blocking www. or the subdomain doesn't reroute properly to our region!
Solution 3:
My issue was that had AdBlock enabled.
Solution 4:
In my case it helped when I leave Preview and lunch it again. As I figured out my preview "outdated" somehow...