When I redesigned this blog earlier this year, I setup Google Analytics link tracking on many of my outbound links. Link tracking with Analytics has many uses, with the main one allowing you to see how many times a link to an outbound site, such as your RSS subscription link, has been clicked.
Unfortunately, the tracking didn’t work.
I never really took the time to figure out what the problem was. I assumed it was a WordPress plugin conflicting with the Google Analytics code. I left it at that, until this week when I redesigned my blog again.
The reason my link tracking wasn’t working, is because my Google Analytics code was at the bottom of the page.
Google state that if you are using the link tracking feature, your Google Analytics code must be above all the links that are being tracked. As soon as I moved the Analytics code to the top of my page body, the tracking began working.
If your tracking isn’t working, move the Google Analytics code to the top of your Web site body.
How Do I Track Outbound Clicks With Google Analytics?
Whether you need to track how many people click your RSS subscription link, find out how many people click your advertiser banners or track how many times a file has been downloaded, Analytics’ ability to track outbound link clicks can help.Add the onClick event to any link you wish to track. It’s good practice to use “/outgoing” at the start of the name. By doing so, you can easily track your outbound links.
Once you have added the code to your outbound links, how do you view the stats? Simple.
Click the photo to the right for screenshots of this process.
You can even track clicks of Flash items, such as Flash banners.
I hope that helps some of you. Have fun with Analytics!
If you enjoyed this post, feel free to subscribe to my RSS feed!
Del.icio.us - Technorati - Digg This! - StumbleUpon
Posted on 27 June, 2008 by Jamie Harrop
Filed Under Web Design |

Jamie kayaking the River Rothay in January 08
Did not realize this. Excellent! I was wondering why I couldn’t get any link tracking via analytics. Thanks!
B.Durant’s last blog post..Heller vs. DC 2nd Amendment upheld
I’m glad I could help, Brook.
Thanks for the comment and the add on Facebook.