Google Outbound Link Tracking Code Google Analytics | Google Web Analytics Consultant - Webanalytics Expert

Thursday, May 8, 2008

Outbound Link Tracking Code Google Analytics

Google analytics can track links that that point to another domain or sub domain. By tagging the out going link the clicks for the link can be tracked easily. Javascript code takes the responsibiliy of tracking the link by assigning a pageview for every click.

Refer to the following example.

To track the click on following link to www.advertisingaxis.com create an arbitrary url like this /outgoing/advertisingaxis_com. The following piece of javascript code is enough.

onClick="javascript:
pageTracker._trackPageview('/outgoing/advertisingaxis_com');">

2 comments:

  1. Thanks for giving such good knowledge. I got some helpful information from this post. Keep Posting such types of posts. OEE Software

    ReplyDelete
  2. All things considered, which isolates a decent consultant from a terrible one are enthusiasm, information and drive for greatness. An individual who has top to bottom information about the subject must have the option to give understanding into a specific cycle. https://www.sandeepmehta.co.in/affordable-seo-services-delhi/

    ReplyDelete