Search code examples
javascriptjquerygoogle-analyticstrackingoutbound

How to create the ultimate jquery-script for tracking outbound links in Google Analytics?


I found some jquery scripts to deal with tracking outbound links in Google Analytics.

But they all seem to have some flaws:

So I am looking for the ultimate jQuery-Script to track outbound links in Google Analytics.


Solution

  • I found it here: https://github.com/christianhellsten/jquery-google-analytics

    • directly includes Google Analytics Code
    • Has good configuration options
    • not only tracks external links, but can also be used for other events like "mouseover"