Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Tracking affiliate clicks Question

Status
Not open for further replies.
Joined
Aug 18, 2010
Posts
1,763
Reaction score
47
Does anyone know how to track what keywords are leading to affiliate text link/banner clicks in Analytics? It would be good for me to know what keywords are creating value for my sites.
 
Bump as I'm interested to know the answer to this too. :)
 
Bump as I'm interested to know the answer to this too. :)

I was told about wrapping each link in Javascript and doing something way over my head. Is there any way to do this for the technically incept like moi!
 
Do you use redirects to mask your links? I have done it in the past so when it gets redirected it adds some stuff to a db like google keyword they used, referring page, ip address and link clicked!

Then you can block ips that click a lot that could be bots :)
 
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... :cool:
 
If you want to just track clicks on a couple of banners, you could do this:

Code:
onclick="javascript:_gaq.push(['_trackEvent', 'Banner Clickthroughs', 'Banner Name', 'Url']);">

e.g.

Code:
<a href="http://www.affiliatelink.co.uk/" onclick="javascript:_gaq.push(['_trackEvent', 'Banner Clickthroughs', 'Header Banner', '/specialoffers.html']);"><img src="headerbanner.jpg" /></a>
 
Thanks DNF, looks like the first one will work perfectly! :)
 
Yes guys - thanks for your help - going to have a play now!

M
 
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... :cool:

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.
 
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.

You could add it like the example below.

I have tested this on a few websites and it's working perfectly for me. :)

<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. :)

Thanks - trying this out now!
 
Status
Not open for further replies.

The Rule #1

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

Featured Services

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Be a Squirrel
Acorn Domains Merch
MariaBuy Marketplace

New Threads

Domain Forum Friends

Other domain-related communities we can recommend.

Our Mods' Businesses

Perfect
Service
Laskos
*the exceptional businesses of our esteemed moderators
Top Bottom