有哪些优秀的库/平台可用于捕获、记录和运行 Javascript 事件分析?最好开源...
最佳答案
我认为 Google Analytics(分析)可以使用自定义变量来完成这项工作。 这是用于记录自定义变量的代码片段...带有注释:
_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.
]);
...没有评论:
_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
希望对您有所帮助。
关于javascript - 捕获、记录和运行 Javascript 事件分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3227209/