Google Analytics: How to track all your outgoing links the easy way

  • 0
  • June 20, 2007
Patrick Altoft

Patrick Altoft

Director of Strategy

One of the common questions asked following my posts about Google Analytics was “How can I track the traffic to external links without adding the onClick code to each and every link?”

With a bit of searching I found a script that you can place in the header file at the top of each of your pages (you might need to edit the templates if you run WordPress). The script tracks clicks to external links and reports them in Google Analytics. You need to filter the results in the “Top Content” tab to show page views for “outgoinglink” to get the pages to show.

You can find the script here.

Let me know how it works out for you.

Free of charge. Unsubscribe anytime.