If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!

google analyticsAs you know it is pretty nice to be able to track what happens on your site with Google Analytics. I use Google Analytics almost daily to glance at traffic stats. I also check to see where my traffic is coming from. Is it organic from Google or direct traffic, or is it coming from a link on another site.

These are important things to know about your traffic, but you also need to know how long they are staying on your site, and what link they clicked on to exit the site. This is a feature analytics doesn’t track out of the box, but it can with a small tweak.

By adding a snippet of code to the outgoing link, Google analytics will report when that link gets clicked. Just keep in mind since Google analytics has been updated, the code for the most recent tracking software is different than the legacy software.

If you are running the legacy urchin code, then you can make your link look like this.

<a href="http://www.example.com" onClick="javascript:urchinTracker('/outgoing/example.com');">

The outgoing/example.com is your place to put a reference to what link is being tracked. If you are tracking more than one link on your website, you will want to make each one unique so you tell which link was clicked. The new code is a little more advanced, and requires more instruction, which can be found here .