有哪些好的库/平台可以捕获、记录和运行对Javascript事件的分析?最好是开源的。
发布于 2011-07-07 01:36:46
我认为Google Analytics会使用自定义变量来完成这项工作。以下是用于记录自定义variable...with注释的代码片段:
_gaq.push(['_setCustomVar',
1, // This custom var is set to slot #1. Required parameter.
'Section', // The top-level name for your online content categories. Required parameter.
'Life & Style', // Sets the value of "Section" to "Life & Style" for this particular aricle. Required parameter.
3 // Sets the scope to page-level. Optional parameter.
]);...without评论:
_gaq.push(['_setCustomVar', 1, 'Section', 'Life & Style', 3]);上面的图片来自谷歌网站http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html的一个页面--绝对值得一看。
最好的部分是,自定义变量可以用与页面访问者等相同的方式来查看,实际上是在同一张图上。看一下:http://techpad.co.uk/custom/images/medium/4debdf844cf3b.jpg
我希望这能帮到你。
https://stackoverflow.com/questions/3227209
复制相似问题