Google 标签管理器的 404 错误 [英] 404 error for Google Tag Manager

查看:26
本文介绍了Google 标签管理器的 404 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 标签管理器告诉我把它放在开始的 body 标签下面.

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 -->

现在我在 GET 中找不到这个 404:

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?

推荐答案

您需要发布容器的一个版本.如果未发布,请求将返回 404 错误.

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:

  1. 点击屏幕右上角的提交.将出现提交更改屏幕,其中包含发布容器和保存容器版本的选项.
  2. 如果尚未选择发布并创建版本,请选择它.
  3. 查看工作区更改部分,看看您的配置是否如您所愿.
  4. 输入版本名称版本说明.
  5. 如果您将跟踪代码管理器配置为使用多个环境,请使用发布到环境部分来选择您要发布到的环境.
  6. 点击发布.
  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.

这篇关于Google 标签管理器的 404 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆