|
Sponsored Links |
Use your affiliate program to increase search engine rankingsDo you sell a product on the web and have an affiliate program for it? If so, you may not be getting the most out of your affiliate program. How do affiliate programs work?Your affiliates drive traffic to their sites. They put a review of your product and then link to your site using a special affiliate link. Examples would be: www.yourdomain.com/?affiliate_id=12 or www.affiliateprogramprovider.com/ ?product_id=43&affiliate_id=12451 When a visitor clicks that link, a script at your site or your affiliate program provider places a cookie on the visitor's computer and if that visitor buys now or later, your affiliate gets a commission. It works great but what if your affiliates could simply put a plain link to your site and still get a commission for any resulting sales? It works like this. Instead of using long affiliate URLs, your affiliates put a plain link to your site. When someone clicks that link and comes to your site, a script at your site finds out that the visitor comes from an affiliate site. That script places a cookie on the visitor's computer and saves its IP address. The IP address is saved because some surfers erase their cookies. Later the script can identify that user by both a cookie or the IP address. If later that visitor decides to buy, the script at your order page or the page leading to your order page puts the affiliate ID in the final order URL. Your affiliates get their commission. This technique has a huge advantage!
There are two drawbacks:
In this article, I will show you a very simple way to do it in php and mysql. If you have basic php/mysql knowledge, you will be able to modify it to your needs, or you can hire a developer to do that for you. The filesaffsetup.php - that file contains the database connection information and the cookie parameters. It will be included on the pages that include the affiliate tracking script.
Each row in the aff table will contain a pair of affiliate ID and the affiliate domain name. Some affiliates may promote your product on more than one site and each of their sites will be added in a separate row. The affiliate url will be kept without the www. and won't be a specific page but a whole domain. Example: if you put affdomain.com, the script will later recognize links from all pages placed on www.affdomain.com as affiliated (example: www.affdomain.com/page1.htm , affdomain.com/page2.htm etc). If that affdomain has subdomains, you'll need to place every subdomain in the database (example: subdomain.affdomain.com) When an affiliate signs up with your affiliate program, he/she will be assigned an affiliate ID. Then that affiliate will need to email you all of his/her sites and you will add them to the aff table. Example: an affiliate signs up and has an affiliate ID of 11032. Later he emails you his two sites: www.affsite1.com and www.affsite2.com You will need to add 2 rows to the aff table. Both rows with aff_id of 11032 and the aff_url will be affsite1.com and affsite2.com (without the www. and also lower cased) Next you'll need to place the affiliate recognition script on your landing pages. Because you will send out cookies, the script will be placed at the top of the files before sending out any HTML (cookies are sent with the HTML headers before any HTML!). If your landing pages have a .htm or .html extension, you will have to tell Apache to run them as php scripts. To allow .htm files to be run as php scripts put this line in your .htaccess file: Here's the php snippet I use to identify visitors coming from affiliate sites. Put that on top of your HTML landing files.
Finally, on the page that leads to your order URL, you will need to identify the visitors coming from affiliate sites (cookie and IP address) and add the affiliate ID to the final order URL. My assumption is that you have an order page on your website that will link to the final order page that's on your credit card provider. Put that code at the top of the order page that will lead to the final secure order page:
This example script is very simple and you'll need to modify it to suit your needs. I do database administration (adding affiliates) through the phpmyadmin (provided by most hosting companies). Other variants: Additional tips:
A final tip. An affiliate can earn commission without having a website! It can be done through forum signatures. Example: you have a webmaster related product. An affiliate signs up. That affiliate posts on webmaster forums using a plain link to your product. Whenever someone clicks his signature link and later buys, the affiliate collects the commission. Good luck with your affiliate program. If you need help with the script, ask me on the forums. Latest SEO Blog EntriesShareware Marketing 101 - 28 August 2006Google Webmaster Central To Solve Canonical Issues - 16 August 2006 Forum Upgraded With Signatures and Avatars - 13 July 2006 Climbing the Keyword Ladder - 17 June 2006 PayPal Is Not Enough - 12 June 2006 SEO Guide Gets a New White-Grey-Black Hat Skin - 06 June 2006 Matt Cutts On BigDaddy, PageRank and The SandBox - 17 May 2006 Google Patents On PageRank Variants - 11 April 2006 Microsoft Paper Gives Clues Into The Future of SEO - 10 April 2006 Focus On The User And Get More Traffic And Revenue - 09 March 2006 |
RSS 2.0 Atom 1.0 |