是否可以使用Google Analytics来跟踪单个用户帐户? [英] Is it possible to use Google Analytics to track single user account?

查看:207
本文介绍了是否可以使用Google Analytics来跟踪单个用户帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要用户登录才能使用的网站,我想跟踪每个用户的行为。是否有可能做到这一点?有什么建议?非常感谢!

解决方案

是的,这是可能的。

最简单的方法可能是为访问者定义一个自定义变量作用域,并将其绑定到等于(模糊处理)用户ID(您在注册时指定的ID):

  pageTracker._setCustomVar(1,Registered TempID,345X34RT ,1)

传入自定义变量的四个参数是: / em>(在这种情况下不会改变的任何整数1到5;'TempID'是一个变量名称,我为此变量选择了'TempID',,该变量映射到(但不能不是个人识别或违反Google的隐私政策)注册用户;最后一个参数'1'是范围 >,在这种情况下我是'1',因为这个变量的范围是访问者)。



这个新变量通过调用 _trackPageview(),所以确保y您可以在调用trackPageview()之前设置自定义变量。



有很多优秀的资源,包括关于GA自定义变量的分步教程,其中包括<被ROI Analytics认为是最好的选择之一。 blog post / p>

完成在Google Analytics网络客户端中查看此自定义变量后,请转到左侧面板并点击访问者标题;这个标题下的最后一项(并且在下一个主要标题 Traffic Sources 之前),您将看到自定义变量子标题

这是您可以查看您设置的自定义变量的数据的位置。例如,该面板将如下所示:


I've got a website that needs user logged in before they can use, I want to track the behavior of each single user. Is it possible to do this? Any advice? Thanks very much!

解决方案

Yes this is possible.

The simplest way might be to define a Custom Variable scoped to the visitor, and bind it to the value equal to the (obfuscated) user's ID (the one you assigned them when they registered):

pageTracker._setCustomVar(1, "Registered TempID", "345X34RT", 1)

The four arguments that you pass into a Custom Variable are: slot number (any integer 1 through 5, which won't change in this case; 'TempID' which is a variable name i chose for this variable; 'TempID', the value for that variable that maps to (but must not not personally identify or it will violate Google's Privacy Policy) a registered user; the final argument '1' is the scope, which i is '1' in this case because this variable is scoped to the visitor).

This new variable is sent to the GA server via a call to _trackPageview() so make sure you the custom variable is set before trackPageview() is called.

There are a several excellent resources, including step-by-step tutorials on GA Custom Variables, including a blog post by ROI Analytics, which is think is one of the best.

Once you've done to view this Custom Variable in the Google Analytics Web Client, go to the left-hand panel and click on the Visitor heading; the last item under this heading (and just before the next major heading which is Traffic Sources) you will see the Custom Variables subheading.

This is where you can view the data for the custom variables you set. For instance, the panel will look something like this:

这篇关于是否可以使用Google Analytics来跟踪单个用户帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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