Tag Manager 的 snippet 应该正式输入 head 还是 body?
Should Tag Manager's snippet be officially entered into the head or body?
Google Analytics' https://support.google.com/analytics/answer/1008080 状态:
Paste your snippet (unaltered, in its entirety) into every web page you want to track. Paste it immediately before the closing tag.
但是跟踪代码管理器呢?是否有 更新的官方 文档说明它应该在头部还是 body(以及在 head/body 中的确切位置)?
这里是... https://developers.google.com/tag-manager/quickstart
body 开场后。
该代码段需要紧跟在开始标记之后,而不是在 div 等任何其他标记内,以便它与所有浏览器类型和版本最兼容。
谢谢@Pechou,原来还有https://support.google.com/tagmanager/answer/6103696
Adding the Container Snippet
Paste this code so that it appears immediately after the opening <body> tag on every page on your site.
Google Analytics' https://support.google.com/analytics/answer/1008080 状态:
Paste your snippet (unaltered, in its entirety) into every web page you want to track. Paste it immediately before the closing tag.
但是跟踪代码管理器呢?是否有 更新的官方 文档说明它应该在头部还是 body(以及在 head/body 中的确切位置)?
这里是... https://developers.google.com/tag-manager/quickstart body 开场后。
该代码段需要紧跟在开始标记之后,而不是在 div 等任何其他标记内,以便它与所有浏览器类型和版本最兼容。
谢谢@Pechou,原来还有https://support.google.com/tagmanager/answer/6103696
Adding the Container Snippet
Paste this code so that it appears immediately after the opening <body> tag on every page on your site.