Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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.
General chit-chat
Help Users
  • No one is chatting at the moment.
      Helmuts @ HelmutsHelmuts is verified member.: Good morning all
      Top Bottom