2

全部,

我有一个名为 xyz.com 的网站。为了跟踪这个网站上的活动,我使用了谷歌分析。要访问 xyz.com,用户必须登录。我的问题是我们如何跟踪登录帐户的用户名。ii.如何跟踪网站上点击的所有链接。(谷歌分析会在点击时列出所有链接名称。如果是,请告诉我代码。如果不是,我们可以通过什么其他方式跟踪所有链接在网站上点击。)

谢谢......

4

2 回答 2

3

Tracking outbound links: http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55527

Custom variables would allow you to log whether a user is authenticated, and you could log their username itself ('though that could get clunky if you have lots of users): http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html

于 2010-01-09T22:49:43.447 回答
0

您可以通过在所需链接的点击事件中使用以下函数来跟踪点击了哪个链接:

_gaq.push(['_trackEvent','Category','Action','可选标签']);

于 2014-08-04T11:14:26.880 回答