在Google跟踪代码管理器中跟踪Google Analytics的本地主机 [英] Track localhost on Analytics in Google Tag Manager

查看:257
本文介绍了在Google跟踪代码管理器中跟踪Google Analytics的本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Google跟踪代码管理器跟踪本地主机上的Google Analytics时遇到问题。我可以在API for Analytics上看到( https://developers.google。 com / analytics / devguides / collection / analyticsjs / advanced#localhost ),我需要做的就是将cookieDomain设置为none。我在Google跟踪代码管理器中找不到此选项。有人知道如何做到这一点吗?

/ p>

为了解决这个问题,您有两个选择:

1)传统标记Google Analytics,在更多设置>域和目录>域名中: b $ b

2)或在标签Google管理器中切换到Universal Analytics标签,在更多设置>Cookie配置>Cookie域中配置必填字段:

  none 

在这两种情况下,在启动网站前,此选项应关闭

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?

解决方案

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.

这篇关于在Google跟踪代码管理器中跟踪Google Analytics的本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆