• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Wanted: Service Tracking outbound clicks in Google Analytics

Status
Not open for further replies.
Joined
Feb 20, 2009
Posts
221
Reaction score
14
'tis the season so I've gone ahead and redesigned DeliverMeThis.co.uk.

However, since the redesign, I've been struggling to track outbound clicks as goals.

For example. on a product page:
https://delivermethis.co.uk/product/1317/santa-toilet-seat-cover-rug/

The outbound link is:
https://delivermethis.co.uk/get/uk/santa-toilet-cover

So I am trying to track all /get/uk/* links as goals in Google Analytics.

I've tried a number of Wordpress plugins, but none of them seem to be adding code to the links.

What am I missing here, any ideas? I've tried Yoast and the Google Analytics plugin.

Thanks :)
 
You can do it using event tracking - stick this in your link code:

onClick="_gaq.push(['_trackEvent', 'Category', 'Action']);"

eg:

onClick="_gaq.push(['_trackEvent', 'ProductID2789', 'Click']);"

The 'Category' and 'Action' parameters are required for it to work, but you can also add extra info for 'Label', 'Value' etc..

Full guide here: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
 
Note that if you don't open the link in a new window, the Analytics tracking can be unpredictable.

Better to use server side tracking if you can.
 
You can do it using event tracking - stick this in your link code:

onClick="_gaq.push(['_trackEvent', 'Category', 'Action']);"

eg:

onClick="_gaq.push(['_trackEvent', 'ProductID2789', 'Click']);"

The 'Category' and 'Action' parameters are required for it to work, but you can also add extra info for 'Label', 'Value' etc..

Full guide here: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

Thanks for this.

It's frustrating as the plugins I am using SHOULD work, but there seems to be some kind of problem with them.
 
Status
Not open for further replies.
Top Bottom