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

Tracking affiliate clicks Question

Discussion in 'SEO Search Engine Optimisation' started by Marcoose, Jul 23, 2011.

Thread Status:
Not open for further replies.
  1. Marcoose

    Marcoose Well-Known Member

    Joined:
    Aug 2010
    Posts:
    1,763
    Likes Received:
    33
    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.
     
  2. wb

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,121
    Likes Received:
    46
    Bump as I'm interested to know the answer to this too. :)
     
  3. Marcoose

    Marcoose Well-Known Member

    Joined:
    Aug 2010
    Posts:
    1,763
    Likes Received:
    33
    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!
     
  4. nick-harper

    nick-harper Active Member

    Joined:
    Jun 2011
    Posts:
    400
    Likes Received:
    7
    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 :)
     
  5. dotNetFreak United Kingdom

    dotNetFreak Well-Known Member

    Joined:
    Jul 2009
    Posts:
    1,410
    Likes Received:
    25
    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:
     
    • Like Like x 1
  6. dotNetFreak United Kingdom

    dotNetFreak Well-Known Member

    Joined:
    Jul 2009
    Posts:
    1,410
    Likes Received:
    25
    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>
     
    • Like Like x 1
  7. wb

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,121
    Likes Received:
    46
    Thanks DNF, looks like the first one will work perfectly! :)
     
  8. Marcoose

    Marcoose Well-Known Member

    Joined:
    Aug 2010
    Posts:
    1,763
    Likes Received:
    33
    Yes guys - thanks for your help - going to have a play now!

    M
     
  9. Marcoose

    Marcoose Well-Known Member

    Joined:
    Aug 2010
    Posts:
    1,763
    Likes Received:
    33
    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.
     
  10. wb

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,121
    Likes Received:
    46
    You could add it like the example below.

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

     
  11. Marcoose

    Marcoose Well-Known Member

    Joined:
    Aug 2010
    Posts:
    1,763
    Likes Received:
    33
    Thanks - trying this out now!
     
Thread Status:
Not open for further replies.