Amazon Affiliate Link Code

4 replies
Bit of a newbie question this but just wanted to double check...

I'm sure you're aware of the tracking image included in Amazon's text links for affiliate e.g.
Code:
<img src="http://ir-uk.amazon-adsystem.com/e/ir?t=mytrackingid-21&l=as2&o=2&a=theASIN" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
What's missed if I leave this out?

Including it is generating a minor error, but if it's important I'll find a fix. If it's not important I'll leave it out.

I'll still get the commission, correct? But I may miss out on some tracking details perhaps?
#affiliate #amazon #code #link
  • Profile picture of the author wtatlas
    Removing that part of the code makes no difference to the text link which will still contain your affiliate ID, giving you your commission if anyone buys.

    Personally I just copy the part of the code which has my affiliate ID and the product page details and I use my own text. For example the full code for a weight training bench is as follows:

    <a href="http://www.amazon.com/gp/product/B000XEAUDK/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&cre ativeASIN=B000XEAUDK&linkCode=as2&tag=AFFILIATE CODE HERE &linkId=SIY2VV3RXF4WT36T">PowerBlock Travel Bench (Silver)</a><img src="http://ir-na.amazon-adsystem.com/e/ir?t= AFFILIATE CODE HERE &l=as2&o=1&a=B000XEAUDK" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

    I just use the following part: (I had to put spaces in the address so it would as html).

    http:// www. amazon.com /gp/product/B000XEAUDK/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&cre ativeASIN=B000XEAUDK&linkCode=as2&tag= AFFILIATE CODEHERE &linkId=SIY2VV3RXF4WT36T.

    This part is then used as the "address" for a text link where I use my own text to describe the product.

    You would still be advised to put a link in an image of the product. You can use the "image only" link that amazon provides but I like to copy the image and host it myself so that I can be creative with it - put borders around or re-size it for instance. For the link you simply use the same one that you use for the text.

    The whole thing then looks like this:

    <a href="http://www.amazon.com/gp/product/B000XEAUDK/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&cre ativeASIN=B000XEAUDK&linkCode=as2&tag= AFFILIATE CODE HERE&linkId=SIY2VV3RXF4WT36T"><img src="http://www.YOURWEBSITE.com/images/IMAGENAME.jpg" /></a>

    Hope the above makes sense.
    Signature

    {{ DiscussionBoard.errors[10165978].message }}
  • Profile picture of the author agmccall
    Originally Posted by Redspan View Post

    Bit of a newbie question this but just wanted to double check...

    I'm sure you're aware of the tracking image included in Amazon's text links for affiliate e.g.
    Code:
    <img src="http://ir-uk.amazon-adsystem.com/e/ir?t=mytrackingid-21&l=as2&o=2&a=theASIN" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
    What's missed if I leave this out?

    Including it is generating a minor error, but if it's important I'll find a fix. If it's not important I'll leave it out.

    I'll still get the commission, correct? But I may miss out on some tracking details perhaps?
    Is there a reason that you did not ask amazon this question or use their forums.

    al
    Signature

    "Opportunity is missed by most people because it is dressed in overalls and looks like work." Thomas Edison

    {{ DiscussionBoard.errors[10165986].message }}
    • Profile picture of the author Redspan
      Originally Posted by agmccall View Post

      Is there a reason that you did not ask amazon this question or use their forums.

      al
      No, no particular reason.
      {{ DiscussionBoard.errors[10167279].message }}

Trending Topics