Bump as I'm interested to know the answer to this too.![]()
onclick="javascript:_gaq.push(['_trackEvent', 'Merchant Clickthroughs', 'Merchant Name', 'Extra Data e.g. Product Name/Url']);">
<a href="http://www.affiliatelink.co.uk/" onclick="javascript:_gaq.push(['_trackEvent', 'Merchant Clickthroughs', 'Comet', 'LG 42" LED TV']);">LG 42" LED TV</a>
onclick="javascript:_gaq.push(['_trackEvent', 'Banner Clickthroughs', 'Banner Name', 'Url']);">
<a href="http://www.affiliatelink.co.uk/" onclick="javascript:_gaq.push(['_trackEvent', 'Banner Clickthroughs', 'Header Banner', '/specialoffers.html']);"><img src="headerbanner.jpg" /></a>
Add the following to a link:
Code:onclick="javascript:_gaq.push(['_trackEvent', 'Merchant Clickthroughs', 'Merchant Name', 'Extra Data e.g. Product Name/Url']);">
e.g.
Code:<a href="http://www.affiliatelink.co.uk/" onclick="javascript:_gaq.push(['_trackEvent', 'Merchant Clickthroughs', 'Comet', 'LG 42" LED TV']);">LG 42" LED TV</a>
Then in Google Analytics, go to:
Content -> Event Tracking -> Categories
When someone has clicked on a link, you will see a new category called "Merchant Clickthroughs".
Click on it.
Now you should see the merchants listed, e.g. Comet and the total number of clicks.
Click on one of them.
Now you will see the product names or Urls (depending on what you specified above).
In the dropdown that currently has "None" selected in the top of the second column select "Keyword".
This now shows you the keywords someone used to come to the site and that ultimately led to them clicking on a specific product/link.
You can also perform the same at the previous stage (merchant selection). This shows you what keywords lead to people clicking on products belonging to a specific merchant.
Enjoy...![]()
Just been playing around with this and having problems - I know very little about HTML code which doesn't help.
How would this work if I wanted to add the tracker to an anchor text link ie:
<a href="http://clkuk.tradedoubler.com/click?p(11554)a(1496231)g(17183700)" title="Betdaq" target="_blank">Betdaq<a/>
Is there anywhere in particular where this code needs to be added. Obviously I want everything to track AOK.
<a href="http://clkuk.tradedoubler.com/click?p(11554)a(1496231)g(17183700)" title="Betdaq" target="_blank" onclick="javascript:_gaq.push(['_trackEvent', 'Merchant Clickthroughs', 'Merchant Name', 'Extra Data e.g. Product Name']);">Betdaq</a>
You could add it like the example below.
I have tested this on a few websites and it's working perfectly for me.![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.