Tracking Outgoing Links and Ads

Tracking Outgoing Links and Ads

Urchin provides an easy way to track clicks on banner ads or other outgoing links. Because these links do not lead to a page on your site containing the UTM JavaScript, you will need to tag the link itself with the urchinTracker JavaScript if you would like to track these clicks. This piece of JavaScript assigns a pageview to any click on a link - the pageview is attributed to the filename you specify.

For an animated GIF or other type of static banner ad, add the urchinTracker JavaScript to your banner's <a> tag:

    <a href="http://www.example.com/ads/banner1.gif" onClick="javascript:urchinTracker ('/ads/adv_name/bannername');">