The Affiliate Link Encoder (ALE) is a tool that uses javascript to automatically change direct merchant links that appear in your website html into AvantLink.com Affiliate tracking links. The ALE javascript will detect and change direct links only for merchants that are in the AvantLink network.

This is a powerful tool for Bloggers, Forum Admins, and other community sites. It allows you or your community contributors to post direct links to any of the merchants you are associated with in the AvantLink Affiliate network and still earn a commission when a site visitor clicks on one of those links and buys from the merchant.

In this quick tutorial we are going to show you how to install the ALE javascript on a WordPress blog.

Get the Affiliate Link Encoder (ALE) code:

  1. First, log into your Affiliate account, click on ‘Tools’ and then under ‘Ad/Link Tools’ click on ‘Affiliate Link Encoder’.
  2. Choose the website you will be using the ALE code on, add a custom tracking code if you want, and click the ‘Get Html’ button.
  3. Cut and paste the source code into a text editor or just leave it there and open another tab in your browser.

Install the code in your WordPress template:

  1. Log into your WordPress admin interface.
  2. Click on ‘Presentation’ and then ‘Theme Editor’.
  3. On the right side of the page you’ll see a list of theme files. Click on the ‘Footer’ link.
  4. In the source code form field, look for the closing </body> html tag.
  5. Cut and paste your ALE javascript code in right before the closing </body> tag.
  6. Save the changes and you’re done.

Now you can try creating a blog post and adding a direct link to one of your AvantLink merchants. You’ll notice that when you view the published article and rollover those links that they are Affiliate tracking encoded.

Scott & AvantLink


10 Responses to “Installing the Affiliate Link Encoder on a WordPress Blog”

  1. You mean I can put a direct link to ANY page on the affiliate site, and this magic will happen automatically?
    Myrtha

  2. Hi Myrtha, Yes as long as you are active in an Affiliate program the ALE will convert your direct links to Affiliate tracking links (with your id appended).

    More info…
    http://www.avantlink.com/tools/affiliate_link_encoder.php

  3. Can this apply to other blogs and websites? For instance; can I use it on Blogger? I have all my blogs on Blogger, and I know nothing of Wordpress. Will it still work?


  4. The ALE Is a line of Javascript that needs to be placed in the site wide template of any website. So if you can access the code to add the ALE to your blog or forum template, yes it would work just fine.

  5. Gary do you think this will work with my site which uses pligg?

  6. Kevin, I am not familiar with pligg but if you can post a line of javascript to your site-wide template it will work fine. See my comment above yours.

  7. Ok thanks Gary Java script works fine on plgg.

    Cheers for another superb avantlink tool.

  8. Added the line of js, not seeing any ads though… Does it take a little while to parse the code?

  9. Jake, The ALE doesn’t serve ads. It converts existing direct links to merchants, or keywords on the page to Affiliate tracking links.

  10. @Gary M: Sorry poor word choice, I am not seeing any new links…

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>