This guide describes how to track outgoing links using Google Universal Analytics or commonly known as Analytics.js - the new tracking that Google provides webmasters since 2013.
Automatically track outbound links
- Tracks all outgoing links as events in Google Analytics, including outbound link & referring page
- Uses callbacks to first track and then redirect when outbound link opens in current window
- Detects and works with Ctrl/Shift/Meta & middle-mouse clicks
mousedownevents rather than
click(except for touchscreen devices)