Warning this is another Google Analytics loving post.
As some of you may know, one of my motivations for this blog is to try out cool new things before implementing them on a site where changing the source is a process. The things that are really cool I apply to the sites I maintain for my employer. This is one of those things.
Recently, I was looking for way to further spy on my users and I found it, again in Google Analytics. This is not a new feature but cool none-the-less.
Problem:
Say you have a page with a bunch of external pointing links, and you want to see where your users are going. Normally GA would not track those users because the landing page does not have your GA tag. Or here is another scenario, you have a page with multiple links pointing to the same page. GA would normally tell you, these are the same link.
Solution:
Add a this code to your link:
onClick="javascript: pageTracker._trackPageview('/outgoing/posts/post_title/example.com');"
After adding the code, you link will look like this:
<a href="http://www.example.com" onClick="javascript: pageTracker._trackPageview('/outgoing/posts/post_title/example.com');">
This will appear in your content reports as page views. The content will be labeled, in this case as "/outgoing/posts/post_title/example.com". I have created a syntax that I stick to, allowing me to easily understand where the link is and where its going. You could just put "example.com" but if you had that link in a few location it would be hard to tell which one was actually creating the traffic (outside of the navigation summary report).
You will also need to move you GA tag. Instead of the tag being right before the close body tag, it needs to be right after the open body tag.
Results:

Your results are reports that clearly tell you where your users are going and what they are clicking on.
I would say, this does involve touching every link you would like to track in this manor. So it can be very labor intensive. In my opinion, this should only be implemented selectively.
Back to the sandbox thing, if you look at the source of this blog (beyond this post) you will see that I have successfully implemented this technique here.


