Google跟踪代码管理器出现404错误 [英] 404 error for Google Tag Manager
本文介绍了Google跟踪代码管理器出现404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Google跟踪代码管理器告诉我将它放在开头的 body
标记下。
<! - Google跟踪代码管理器 - >
< noscript>< iframe src =// www.googletagmanager.com/ns.html?id=GTM-XXXXXX
height =0width =0style =display :无;能见度:隐藏>< / 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='+ (window,document,'script','dataLayer','GTM-XXXXXX');< / script>
<! - 结束Google跟踪代码管理器 - >
现在我收到了404找不到的GET:
GET http://www.googletagmanager.com/gtm.js?id=GTM-XXXXXX
昨晚我执行了代码。这只是需要时间,或者这是需要解决的问题吗?如果是后者,我该如何解决它? 您需要发布您的容器版本。如果未发布,请求将返回404错误。
发布您的当前工作区:
- 点击屏幕右上角的提交按钮。 提交更改屏幕将出现,并提供发布容器和保存容器版本的选项。跟踪代码管理器360客户将看到请求批准的附加选项。如果尚未选中,请选择发布并创建版本。
检查工作区更改部分以查看是否所有内容都符合预期。
- 如果您有跟踪代码管理器配置为使用多个环境,请在发布到环境部分中选择要发布到的环境。 >发布。
Google Tag Manager told me to put this underneath the opening body
tag.
<!-- 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 -->
Now I'm getting this 404 not found for GET:
GET http://www.googletagmanager.com/gtm.js?id=GTM-XXXXXX
I implemented the code last night. Does this just take time or is this something that needs to be fixed? If the latter, how would I fix it?
解决方案
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 on the Submit button 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. Tag Manager 360 customers will see an additional option to Request Approval. Select Publish and Create Version if it is not already selected.
- Review the Workspace Changes section to see if everything looks as expected.
- Enter a Version Name and Version Description.
- If you have Tag Manager configured to use multiple environments, select which environment you'd like to publish to in the Publish to Environment section.
- Click Publish.
这篇关于Google跟踪代码管理器出现404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文