简体   繁体   English

我是否需要包括这一行:<!-- Global site tag (gtag.js) - Google Analytics -->

[英]Do I need to include this line: <!-- Global site tag (gtag.js) - Google Analytics -->

Do I need this line for google analytics?谷歌分析需要这条线吗? I'm minifying my html and it's removing the line.我正在缩小我的 html,它正在删除该行。 I can't find much on google about this.我在谷歌上找不到太多关于这个的信息。

<!-- Global site tag (gtag.js) - Google Analytics -->

The rest of the code is still there.其余的代码仍然存在。

No, that is a comment and won't affect functionality!不,这是评论,不会影响功能!

Comments in HTML begin with <!-- and end with --> Anything between those, won't run or render. HTML 中的注释以<!--开头并以-->结尾,它们之间的任何内容都不会运行或呈现。

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

相关问题 浏览器如何阅读全局站点标签JavaScript(gtag.js) - How is the browser reading Global site tag JavaScript (gtag.js) 结合Google Analytics(gtag.js)和Google跟踪代码管理器(gtm.js) - Combining Google Analytics (gtag.js) and Google Tag Manager (gtm.js) 我可以为多个子域使用相同的Google Analytics(gtag.js)跟踪ID吗? - Can I use the same Google Analytics (gtag.js) tracking ID for multiple subdomains? Google Analytics(分析)(gtag.js):产品列表名称未显示,但其他字段显示 - Google Analytics (gtag.js): Product List Name doesn't appear but other fields do 如何在javascript中动态加载gtag.js(谷歌分析) - How to load gtag.js (Google analytics) dynamically in javascript Google Analytics 内容分组无法使用 gtag.js - Google Analytics content grouping not working using gtag.js 使用gtag.js安装Google跟踪代码管理器 - Use gtag.js to install Google Tag Manager Google Analytics 脚本片段 analytics.js 和 gtag.js 之间的区别 - Difference between Google Analytics script snippets analytics.js and gtag.js 如何在Google Analytics(分析)(gtag.js,analytics.js)过滤器中设置“用户定义”字段? - How to set User Defined field in Google Analytics (gtag.js, analytics.js) filter? GA4 谷歌分析。 gtag.js 发送请求有几秒钟的延迟,而不是立即 - GA4 Google Analytics. gtag.js sends a request with a delay of a few seconds, not instantly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM