Main menu

Outbound links in Google analytics

Google with "Google analytics" the web site statistics service offers a very important service to webmasters for free. The service is undoubtedly perfect for its price. There is a missing feature though that many webmasters wish they had; where do visitors go when leaving the website. Google has addressed this partially and you can add an onclick event in your outbound links (inside your anchor tag)

onclick="javascript:urchinTracker('/outgoing/example_com');"

I am saying that this is a partial solution because it would be tedious for people with websites that have more than say 100 pages to do this manually. Therefore I created this simple javascript solution that goes on each and every outbound link on you page and adds this click event. Here it is

it would be great if you could know were the visitor went after leaving your website, but you're right making it manually is time consuming, I'll try your code to see if it make that process better, thanks!.

Try crazyegg. It has pretty heatmaps showing where people are clicking on the page and has "confetti" which shows you the users clicks as dots, looking like confetti. Like analytics just throw the javascript at the end and it'll collect it all.

But it has a price. And there is much competition for these things

clickdensity has a free package on offer I think but it'll only track one page at a time.

If you can host your own analytics then go for perhaps php link tracking, clickheat or piwik. There are plenty of option and you could even run a link trading script but have it do no trading or traffic skimming (redirecting them elsewhere) and simply use it's link tracking.

There are a ton more I havn't even touched on, Google analytics isn'et the only source of analytic data :)