A quick tip - how to track clicks off-site with Google Analytics
No lengthy post this week, because I’m travelling - just a quick tip. There seem to be loads of times when you want to be able to track how many people LEAVE your site - whether it’s to a Feedburner RSS feed, an email list, or an affiliate product. So how do you track clicks off-site with Analytics?
It’s actually surprisingly easy. Assuming you’re using the latest tracking code (see Google’s guide to how to tell which version you’re using), you just need to add a bit of code to any link you want to check.
After the “a” in your link, add the following code:
You can replace “/goal/feed/about/” with anything you like - it’s a fake website path that Google will record, so use whatever’s easy to remember. I tend to be using this functionality to track conversions of some kind on a page, so I use “goal” followed by the goal, followed by where it came from.
So, the end code should look like this:
And your fake URL will just start showing up in Analytics - after about 2 hours, in my experience.
So now you can track which of your posts get you the most subscribers, or where an affiliate link is best placed to make you money, or any number of other uses. Enjoy!