Google Analytics: Outbound Click Tracking On In-Page Analytics

by David Whitehouse
Bronco - Digital Marketing Agency

Ok, this problem popped up today – we all know that outbound click tracking can be done using events or virtual page views, but my problem was that not only did we want outbound click tracking, but we also wanted to be able to see it in the In-Page Analytics report, which is a little similar to Crazy Egg, only without the heatmaps.

So first up – could I use events? A quick check on my own website (see below) where I had been using event tracking to track clicks on affiliate links showed me that that wouldn’t work – shame.

Ok, so next up I checked out The Old Deanery website, where they had a link to their booking page, which looked like this:

https://www.infotel.co.uk/onlinebookers/HotelBooking.aspx?est=e5ca1186-ba7b-46c6-b13c-d81c456a30c4&checkin=&checkout=

It was already using virtual page views to track outbound clicks, the virtual page it was giving was “/book-online”. I took a look at In-Page Analytics, but sadly it still wasn’t showing anything – but it didn’t make sense as there were page views in Google Analytics, so I switched the URL to a redirect with the same URL as the virtual page view.

So now /book-online existed and 301 redirected to https://www.infotel.co.uk/onlinebookers/HotelBooking.aspx?est=e5ca1186-ba7b-46c6-b13c-d81c456a30c4&checkin=&checkout=

I log back into Google Analytics and check the report, low and behold, it worked!

The great thing is, because the In Page report uses the website’s current view, all the data immediately worked once the URL matched that of the tracked page view.

Job’s a good ‘un! I hope this helps some of you out there, as I couldn’t find anything on this on the Internets all afternoon.

Bronco - Digital Marketing Agency
Making your inbox more interesting
Looking to keep up to date, or find out those things we can’t mention on the blog? Then sign up to our semi-regular newsletter. Don’t worry, we won’t spam you.

4 Comments

Get in Touch

Things are better when they’re made simpler. That’s why the David Naylor blog is now just that; a blog. No sales pages, no contact form - just interesting* info about SEO.

If you’d like to find out more about the Digital Marketing services we do provide then head over to Bronco (our main company website) to get in touch.

Get in Touch Today * Interestingness not guaranteed
Part of the Bronco family