简体   繁体   English

Google标记管理器:配置和发布正常,但无法在网站上显示标记

[英]Google tag manager : Configuration and publication ok but not able to display tag on website

I have configure all my GTM account and create container, tags etc... 我已经配置了所有GTM帐户并创建了容器,标签等...

I have create a version and publish my container. 我已经创建了一个版本并发布了我的容器。 And when I want to see the result on my website all my code was encapsulated in div tag with style display none and visibility hidden: 当我想在我的网站上看到结果时,我所有的代码都封装在div标签中,样式无显示,可见性也隐藏了:

 <div style="display: none; visibility: hidden;">
   <script>$(window).load(function(){alert("window is loaded")});</script>
   </div>

do you know how i can fix that? 你知道我该怎么解决吗?

GTM loads the tags that you need separately, not inside a certain div. GTM会单独加载您需要的标签,而不是在某个div内。 Check via the console if your tags are there. 通过控制台检查标签是否存在。 Besides, I'm not sure what this code about, are you sure it's related to GTM? 此外,我不确定这段代码是关于什么的,您确定它与GTM有关吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM