Is it OK (in google analytics) o have some pages with the GTM and others with analytics.js?

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:46:21

问题


Per my answer here I have some pages using Google Tag Manager to report Google Analytics and some that report them directly using Analytics.js.

It seems to be working OK but I wanted to see if there were any issues I should be aware of.


回答1:


You would need to make sure that whatever you are tracking with on-page code on those pages that don't have GTM are not already being tracked through GTM.

Generally speaking, it's not advisable to mix both GA and GTM on the same site (unless you are in the middle of migrating one to the other). So either go all GA, or all GTM (I usually always recommend going GTM). Otherwise there could be conflicts. It goes without saying that you should always test everything, too.



来源:https://stackoverflow.com/questions/33289851/is-it-ok-in-google-analytics-o-have-some-pages-with-the-gtm-and-others-with-an

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!