gtag出现在wordpress页面中
我正在对 Wordpress 页面进行一些更改,我可以访问 CPanel。直到第二天我才意识到该文本出现在网站标题上方:“gtag('config', 'AW-XXXXXXXXX');”
根据我的研究,它是 Google Ads 中用于转化跟踪的全局网站代码,但我不知道如何隐藏它或为什么会出现它。
有谁知道如何隐藏它以及它位于哪里?请
I was making some changes to a Wordpress page, I have access to the CPanel. I didn't realize until the next day that this text appeared above the site header: "gtag('config', 'AW-XXXXXXXXX'); "
From what I've researched, it's the global site tag for conversion tracking in Google Ads, but I don't know how to hide it or why it appeared.
Does anyone know how to hide it and where it is located? Please
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 Google 跟踪代码管理器脚本的一部分,应位于脚本标记
。也许您不小心删除了其中的一部分。您可以参考此资源 https://developers.google.com/tag-platform/ gtagjs/install 查看标签管理器应如何包含在网站的头部。
这个脚本可以包含在任何地方,但它很可能位于主题的 header.php 中,或者如果您安装了一个名为 header 和 footer 的插件(或类似的插件,可以让您将 js 添加到头部),则可以找到它在管理页面中。
This is part of the Google Tag Manager script and should be within script tags
<script> gtag function goes here </script>
. Perhaps you have accidentally deleted part of this. You can refer to this resource https://developers.google.com/tag-platform/gtagjs/install to see how tag manager should be included in the head of the website.This script could be included anywhere, but it's likely to be in the header.php in your theme, or if you have a plugin installed called header and footer (or similar plugin that enables you to add js to the head) it could be found in the admin page for that.