get - Google 跟踪代码管理器出现 404 错误

标签 get google-tag-manager

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:

  1. 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.
  2. Select Publish and Create Version if it is not already selected.
  3. Review the Workspace Changes section to see if your configuration appears as you expect.
  4. Enter a Version Name and Version Description.
  5. 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.
  6. Click Publish.

关于get - Google 跟踪代码管理器出现 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29243170/

相关文章:

ios - 如何禁用 Google 跟踪代码管理器控制台日志记录

javascript - 在php中,使用GET方法时,如果实际数据包含ambersand(&)符号,如何处理

php - 使用 PHP 和 $_GET ['' 在 <a href> 中传递多个变量]

java - 将http post请求转为http get

javascript - 如果 wordpress postid 为偶数且 GTM,则显示脚本

javascript - 有没有办法在 GTM 的循环内使用查找列表?

php - HTML 表单 POST 与 GET 超时

mysql - 检查isset变量_GET并检查数据库中是否存在

javascript - Google Analytics - 如何使用 DataLayer 设置自定义变量

google-analytics - 当我无权访问跟踪代码管理器网站时,在 Google 跟踪代码管理器中实现自定义事件