track outbound links with google analytics

You can manually track clicks on outbound links.

Step 1: Add this js-code to the page with outbound link:

function recordOutboundLink(link, category, action) {
	_gat._getTrackerByName()._trackEvent(category, action);
	setTimeout('document.location = "' + link.href + '"', 100);

Step 2: Add onclick event to your outbound link:

<a href="http://www.site.com/" onClick="recordOutboundLink(this, 'outbound-Link-sitecom', 'http://www.site.com/');return false;">

Step 3: You may find stats about outbound clicks in Google Analytics => Content => Events => Top Events.

More info on Google analytics topic about outbound links.

Leave a Reply

Your email address will not be published. Required fields are marked *