I have been using Google Analytics for years, but have never attempted to extend its functionality to track outbound clicks. Lately I decided to add that functionality, and here is how I did it.
_gaq. If yours is named differently, adjust the following code accordingly.
First, you need to define the following
Then in the links that you would like to track, set the
onClick attribute as follows:
<a href="example.com" onClick="return trackOutboundLink(this, 'Outbound Links')">Link</a>
You will then begin to see data accumulating in Google Analytics under Content->Events->Outbound Links.
Of course, you can change the
"Outbound Links" in the
onClick attribute to whatever you wish, and it will be put under the corresponding event in Google Analytics.