Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

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.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom