Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 AMP 分析(amp-analytics)添加到我的 AMP 页面中,这些点击已正确记录在 Google Analytics 中。唯一的问题是它把我所有的开发工作都算作命中。这真的会歪曲我的阅读,因为很多人都在开发开发版本。
有没有类似于这个答案的方法,我可以让这个脚本只在生产域中运行?
您可以在分析视图设置中使用过滤器来从开发环境中排除命中(即通过主机名或页面路径)。