Google 跟踪代码管理器告诉我将其放在开始 body
标记下方。
<!-- 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 -->
现在我收到了 404 not found for GET:
GET http://www.googletagmanager.com/gtm.js?id=GTM-XXXXXX
我昨晚实现了代码。这只是需要时间还是需要解决?如果是后者,我该如何解决?
最佳答案
您需要publish您的容器的一个版本。如果不发布,请求将返回404错误。
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.
关于get - Google 跟踪代码管理器出现 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29243170/