如何创建终极 jquery 脚本来跟踪 Google Analytics 中的出站链接?
我发现了一些 jquery 脚本来处理跟踪 Google Analytics 中的出站链接。
但它们似乎都有一些缺陷:
http://iso-100.com/blog/post/updated-script-for-tracking-outbound-links-in-google-analytics-with-jquery/
缺点:使用 trackPageView 并且不包含 Google 建议的“setTimeOut”函数: http://www.google.com/support /analytics/bin/answer.py?hl=en&answer=55527http://blog.rebeccamurphey.com/2008/12/04/update-tracking-outbound-clicks-with-google-analytics-and -jquery/
缺点:不包含“setTimeOut”函数,效率不高,因为它将点击事件绑定到文档中的所有链接。
所以我正在寻找终极的 jQuery 脚本来跟踪 Google Analytics 中的出站链接。
I found some jquery scripts to deal with tracking outbound links in Google Analytics.
But they all seem to have some flaws:
http://iso-100.com/blog/post/updated-script-for-tracking-outbound-links-in-google-analytics-with-jquery/
Disadvantages: Uses trackPageView and does not contain a "setTimeOut"-function as suggested by Google:
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55527http://blog.rebeccamurphey.com/2008/12/04/update-tracking-outbound-clicks-with-google-analytics-and-jquery/
Disadvantages: does not contain a "setTimeOut"-function and is not very efficient, because it binds the click-event to all links in the document.
So I am looking for the ultimate jQuery-Script to track outbound links in Google Analytics.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到了它:
https://github.com/christianhellsten/jquery-google-analytics
I found it here:
https://github.com/christianhellsten/jquery-google-analytics