我找到了一些jquery脚本来处理Google Analytics中的出站链接跟踪 .
但他们似乎都有一些缺陷:
-
http://iso-100.com/blog/post/updated-script-for-tracking-outbound-links-in-google-analytics-with-jquery/
Disadvantages: 使用trackPageView并且不包含Google建议的"setTimeOut" -function:http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55527 -
http://blog.rebeccamurphey.com/2008/12/04/update-tracking-outbound-clicks-with-google-analytics-and-jquery/
Disadvantages: 不包含"setTimeOut" -function并且效率不高,因为它将click-event绑定到文档中的所有链接 .
所以我正在寻找最终的jQuery-Script来跟踪Google Analytics中的出站链接 .
1 回答
我在这里找到了:https://github.com/christianhellsten/jquery-google-analytics
直接包含Google Analytics代码
具有良好的配置选项
不仅可以跟踪外部链接,还可以用于其他事件,如"mouseover"