Sep
7
2007

Increase Affiliate Income – Blindfolding Your Links

Share
Email

Making money online with affiliate links? Here’s a quick and dirty way to cover your tracks and push more visitors to your affiliate pages which will ultimately result in a few extra sales. I’m going to show you how this is possible using a simple PHP script.

Create a file called products.php (you can name it something else but if you do make sure you change it where applicable in the parts below). Now put something like this in it and change the URL’s to be whatever you want. You may need to create more elseif statements if you have a lot of affiliate links. Also make sure you put this code before ANY html for it to work, otherwise you’ll get a “headers already sent” error.

  1. <?php
  2. if ($go == product1) { //you can name "product1" anything, again make adjustments in your code later.
  3. $thislink = "http://affiliatesitelink.com/cars.php";
  4. }
  5. elseif ($go == product2) {
  6. $thislink = "http://affiliatesitelink.com/moneonline/";
  7. }
  8. elseif ($go == product3) { //just add more "elseif" statements for more products
  9. $thislink = "http://affiliatesitelink.com/loans.html";
  10. }
  11. else ($go == product4) { //note I end with a plain "else"
  12. $thislink = "http://affiliatesitelink.com/ebook.asp";
  13. }
  14. //Now the redirect
  15. header('Location: ' . $thislink);
  16. ?>

Mod Rewrite & .htaccess

Technically you could call links up now by doing http://domain.com/products.php?go=product1 or http://domain.com/products.php?go=product2 ect. Why stop there? If your server has mod_rewrite enabled (very likely it does these days) you can put something like this in a .htaccess file and upload it to your root directory:

  1. Options +FollowSymLinks
  2. RewriteEngine on
  3. RewriteRule products/(.*)/?$ /products.php?go=$1

Note there is a space after the ‘$’. After this is in place you should be able to call up the affiliate redirect with a link like this:
http://domain.com/products/product2/ (with or without the slash)

Affiliates Links VIA ClickBank

If you promote something like ClickBank products on your site there’s a similar way to cover your tracks. This ones even quicker as we already know what to expect from each URL. Its consistent every time except for one thing. (two if you use their built in sales tracker)

  1. <?php
  2. $cbid = "yourcbid"; //put your clickbank ID here
  3. $affiliate = "http://" . $cbid . "." . $affiliateid . ".hop.clickbank.net/?tid=" . $tid;
  4. header('Location: ' . $affiliate);
  5. ?>

Three lines…not too bad. Again make sure its the first thing at the top of the page. Your content in the page will not matter at all (after the header redirect is ent it doesn’t read anything else). Your resulting link would look like this:
http://domain.com/products.php?go=affiliateid&tid=3

Your .htaccess rewrite rule will look something like this:
RewriteRule products/(.*)/(.*)/?$ /products.php?go=$1&tid=$2
Then you can call the link up using this:
http://domain.com/products/affiliateid/3/
You can do this with any affiliate link service that has a standardized way of linking to the products in their database.

The Logic Behind “Blind Folding” Affiliate Links

The way I see it is the visitor eventually will realize the link has directed them to another site. However, they are more likely and willing to check out that offer if you have provided them a link that appears to go to another page on your own site. Half the battle is getting them through the door so they can truly determine if that product interests them. If they didn’t click on the link they would have never known what they were missing if that visitor turns into a sale. Using something like TinyURL.com appears as a dodgy link to your visitors as I mentioned in Wrong Turn TLA – TinyURL Covering your Affiliate Links. If for nothing else it is a great way to log your visitors and track who clicks on what if you implement that with an SQL DB. Which brings me to the topic.

If you’re really clever you’ll use some mySQL and can generate usage reports by including a simple ADD query in your products.php code. This could give you insight into the behavior of your users since ClickBank doesn’t tell you how many times a person clicked through each link. Then its just a matter of creating a simple form and/or query page to show the usage for each. But that’s another day. If this is something you’re interested in seeing then comment on this page and I’ll make sure I write up a post on it sometime.

Respond: Leave A Comment | Trackback URL

Entrupeners, Subscribe for the lastest tools, tips, and tutorials.


7 Responses to Increase Affiliate Income – Blindfolding Your Links

  1. Pingback: Web 2.0 - The Ten Critical Affiliate Strategies | www.bestdocsite.org

  2. Pingback: Sweet Gain » Blog Archive » Link Storm -V-

  3. Excellent simple script, I especially like how you use htaccess to use it. nice

  4. This is a great post but if you don’t want to write or modify php code or htaccess rules every time you want to add or change an affiliate link and you’re using wordpress you might want to look into my new plugin that will let you manage all those links from a nice web interface inside wordpress admin:
    Here is where you can find out more about this free plugin:
    http://patchlog.com/wordpress/hidden-affiliate-links/

  5. That plug-in looks great, but this tutorial is also for use on sites that don’t run wordpress :)

  6. Pingback: » Plugins and tools to help with SEO and affiliate sales > FiddyP

  7. I personally use the Ninja Affiliate plugin to do the work for me, I know a simillar code for this as well. :) nice tips for newbies anyway.

Leave a Reply

Custom Theme by Rob Malon | Content & Design © 2010 - RobMalon.Com - Chicago, Illinois