Here’s is a nifty trick that I learnt just recently - you can actually track clicks on outbound links on your website using Google Analytics. This is useful to track the number of clicks on an ad, website links in your articles and even those blogroll links in your sidebar. All you have to do is add the following to the HTML: So if I wanted to know how much traffic I’m sending to Bates Singapore from my advertising agency list, this is how the link would look like: Then in my Analytics report, I’ll just… And this is what I’ll see… So there you go - I sent 132 visitors to the ad agencies listed on my website the last one week, the top 3 being Ogilvy, Bates and Batey (another proof of how SEO is really, really important). Should probably charge them advertising fees eh?![]()
onClick=”javascript:urchinTracker(’/category/item’);”
<a href=”http://www.batesasia.com/” onClick=”javascript:urchinTracker(’/agencies/bates’);”>
1) Click “Content” on the left menu.
2) Select “Content Drilldown” from the drop-down list.
3) Search for “agencies” using the Find URL search box at the bottom.
(i.e. notice that I’ve used “agencies” as my category in the link above)
4) Click on the “/agencies” link in the search results.




This is great information. I use Google Analytics but was not aware of this trick. I have a php website and Do you know if there’s a way to have it so it works in php 4.x?
For Example: The .$row4. is a result from a DB query for the item. In this situation I’m replacing /item with .$row4.
Comment by Warren on August 16, 2008 at 5:22 am
I forgot to include the code [
Comment by Warren on August 16, 2008 at 5:23 am
The code is getting passed to the comments. In any case, I replaced /item with .$row4.
Comment by Warren on August 16, 2008 at 5:25 am
Hi Larry,
Do you think inserting JavaScript in to the code would effect the flow of page rank from that link? I doubt it considering its a google product, but I guess im just always suspicious about using Javascript around links as it may effect the way google crawls / or values it.
Comment by Thailand SEO on August 26, 2008 at 7:19 pm