Notification

Urchin WebAnalytics Software is discontinued and is no longer supported. All Urchin documentation applies only to the Urchin product as it was at the time of discontinuation, and does not apply to any Google Analytics products or services.

How do I track clicks on outbound links?

How do I track clicks on outbound links?

If you have outbound links on your site, there is an easy way for you to track which links visitors click on to leave your site.

To track outbound clicks, add the following code within the <a> tag:

    <a href="http://www.site.com" onClick="javascript:urchinTracker('/outboundlinks/sitename/pagename');">

This code causes each click on the outbound link to be logged as though it were a pageview named /outboundlinks/sitename/pagename. It is a good idea to log all of your outbound links into a logi

Search
Clear search
Close search
Main menu
15994086239338171965
true
Search Help Center
true
true
true
false
false