如何创造的最终jquery-脚本用于跟踪站链接在谷歌的分析?
-
27-09-2019 - |
题
我发现了一些jquery脚本,交易跟踪站链接在谷歌的分析。
但他们似乎都有一些缺陷:
http://iso-100.com/blog/post/updated-script-for-tracking-outbound-links-in-google-analytics-with-jquery/
缺点: 使用trackPageView并不包含"目"功能的建议,通过谷歌: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/
缺点: 不包含一个"目"的功能并不是非常有效,因为它结合的点击事件的所有链接在文件。
所以我在寻找终极jQuery-脚本轨道站的链接在谷歌的分析。
解决方案
我找到了这里:https://github.com/christianhellsten/jquery-google-analytics
- 直接包括谷歌分析代码
- 具有良好结构的选择
- 不仅跟踪外部的链接,但也可用于其他活动,如"鼠标"
不隶属于 StackOverflow