Track localhost on Analytics in Google Tag Manager

纵饮孤独 提交于 2019-11-29 18:54:36

问题


I have a problem with tracking Google Analytics on localhost with Google Tag Manager. I can see on the API for Analytics ( https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#localhost), all i need to do is to set cookieDomain to none. I do not find this option in Google Tag Manager. Does anyone know how to do this?


回答1:


The documentation referenced it is about the Universal Analytics (new GA API version).

To solve this problem, you have two options:

1) Using the traditional tag "Google Analytics", in 'More settings' > 'Domains and Directories' > 'Domain Name':

none

2) Or switch to the "Universal Analytics" tag in Tag Google Manager, configure the required fields and in 'More settings' > 'Cookie Configuration' > 'Cookie Domain':

none

In both cases, this option should be turned off before the launch of the site.



来源:https://stackoverflow.com/questions/17232276/track-localhost-on-analytics-in-google-tag-manager

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