Do you cloak your affiliate links? If not, then you may be giving dishonest people easy access to steal your affiliate commissions.
You must understand that link cloaking is much like locking your door - it only keeps the honest people honest. If someone is determined to use their own affiliate link instead of yours, you can’t really stop them… but link cloaking can make it much harder for them.
When you get an affiliate link (whether from Clickbank, Commission Junction, or some other affiliate program), your link looks something like this:
http://mquarles.coolsoftware.hop.clickbank.net
or this:
http://www.coolsoftwareforsale.com/?id=1234
Anyone who knows about the affiliate program you’re using can simply replace your identifier (in this case, mquarles or 1234) with their own:
http://hijacker.coolsoftware.hop.clickbank.net
or
http://www.coolsoftwareforsale.com/?id=6666
and take your commission.
There are two main cloaking methods, plus a neat little method for “preloading” your affiliate cookie into your visitor’s browser.
Javascript Link Cloaking
By replacing your link with a small bit of javascript, you can obfuscate your link, and make it much harder for someone to steal your commissions.
Instead of this in your HTML code:
<a href="http://mquarles.coolsoftware.hop.clickbank.net">Click Here For Cool Software</a>
you’ll have something like this:
<script type='text/javascript'> ahstr='x3Cx61x20x68x72x65x66x3Dx22x68x74x74x70x3Ax2Fx2Fx6Dx71x75x61x72x6Cx65
x73x2Ex63x6Fx6Fx6Cx73x6Fx66x74x77x61x72x65x2Ex68x6Fx70x2Ex63x6Cx69x63x6Bx62
x61x6Ex6Bx2Ex6Ex65x74x22x20x6Fx6Ex4Dx6Fx75x73x65x6Fx76x65x72x3Dx22x77x69
x6Ex64x6Fx77x2Ex73x74x61x74x75x73x3Dx27x43x6Fx6Fx6Cx20x53x6Fx66x74x77x61x72
x65x27x3Bx20x72x65x74x75x72x6Ex20x74x72x75x65x3Bx22x20x6Fx6Ex4Dx6Fx75x73x65
x6Fx75x74x3Dx22x77x69x6Ex64x6Fx77x2Ex73x74x61x74x75x73x3Dx27x20x27x3Bx20x72
x65x74x75x72x6Ex20x74x72x75x65x3Bx22x20x74x61x72x67x65x74x3Dx22x5Fx6Ex65x77
x22x3Ex43x6Cx69x63x6Bx20x48x65x72x65x20x66x6Fx72x20x43x6Fx6Fx6Cx20x53x6Fx66
x74x77x61x72x65x3Cx2Fx61x3E';
document.write(unescape(ahstr.replace(/x/g,'%')));
</script>
With this obfuscated code, you can modify the status bar so that it does not reveal your affiliate link either, using the onMouseOver event.
The benefit of using javascript cloaking is that if you have tool to do the conversion for you (such as my Affiliate Link Cloaking tool), it is extremely easy to implement and does not take a lot of advanced knowledge. Instead of using your regular link, you simply substitute the javascript.
The downside is that the code can only be used on a web page, or in a compiled ebook. You can’t use this code in an email message or in an article that you have written.
Redirect Link Cloaking
Redirect Link Cloaking is more powerful than Javascript link cloaking, but it can be a bit harder to implement. To accomplish redirect cloaking, you need to set up a page on your own website that automatically redirects to your affiliate link. You can do this with javascript, a meta refresh, or server-side code (such as Perl or PHP).
Here’s an example:
Let’s say I wanted to promote http://mquarles.coolsoftware.hop.clickbank.net, but I don’t want people replacing my affiliate id with their own. I can set up a page on my website (say, http://marcquarles.com/cool_software). That page would contain a redirect to my actual affiliate URL. Here’s an example using PHP:
<?PHP
header("Location:http://mquarles.coolsoftware.hop.clickbank.net");
?>
Once I have this in place, anytime someone goes to http://marcquarles.com/cool_software, they will be automatically redirected to my affiliate link. Now I can safely promote http://marcquarles.com/cool_software in articles, ebooks, via email, or however I want.
I prefer this affiliate link cloaking method because it can be used not only on web pages and ebooks, but also in emails and even in articles that you have written and are syndicating.
The downside is that you must have a website of your own to host the redirect.. and you must understand how to implement the redirect. What’s more, if the domain name you are hosting the redirect page on ever expires or you lose control of it, you’ve lost that income source as well.
Cookie Preloading
Let’s say JimBob finds himself on your website, and you’re doing a really nice presell of coolsoftwareforsale.com. JimBob is excited, and is really interested, so he opens a new browser window and types in www.coolsoftwareforsale.com, reads the sales letter, and buys it. Uh-oh - you just lost a commission. Because JimBob didn’t actually click your link, you don’t get credit for the sale, even though you’re responsible for it.
Even worse, what if your presell gets him ready to buy, but he just doesn’t have time to read the sales letter, so he writes down www.coolsoftwareforsale.com on his handy-dandy post-it note and sticks it to his monitor for later. The next day, he types coolsoftwareforsale.com into his browser, and buys. Once again, because he did not click your link, you don’t get credit for the sale.
What if JimBob doesn’t buy now, and doesn’t write the URL onto a post-it? Instead he just remembers “cool software for sale”, and types that into Google a few days later. Google gives him the site, and he goes and buys, based on your presell… but you don’t get credit because he didn’t click your affiliate link.
Cookie preloading is the process where you cookie his browser while he is on your site, so in any of the three situations above, you still receive credit for the sale.
Cookie preloading is accomplished by opening an invisible frame or iframe into the visitor’s browser and loading your affiliate link into that frame. Thus, the visitor gets cookied, and if he buys the product later, you’ll still get the credit for the sale (as well you should, since you presold him in the first place.)
Cookie preloading only works with affiliate programs that use cookies, and some affiliate programs prohibit certain types of cookie preloading, so you should get familiar with the rules of the affiliate program you are promoting.
Here’s an example of cookie preloading in action:
<iframe src="http://mquarles.coolsoftware.hop.clickbank.net" height="1" width="1" frameborder="0"></iframe>
I can place this code anywhere on my page, it will be practically invisible (1 pixel by 1 pixel in size), and will load my affiliate cookie on just about every browser that visits that page. If JimBob, for whatever reason, does not click my affiliate link during this session, I’ll still get the affiliate commission if he buys later on.
If you’re doing affiliate marketing, you simply must use some form of link cloaking and cookie preloading in order to maximize your profits. If you’re not, you’re leaving money on the table every single month.
Members of my list got a free copy of my Affiliate Link Cloaking Tool - including Master Resale Rights… if you’re not a member of my list yet, sign up right now:
http://marcquarles.com/email-updates
12 Responses
Charles
August 23rd, 2006 at 12:17 am
1Marc, so you can preload fine with clickbank?
Matt
August 23rd, 2006 at 4:14 am
2Great information and tool. Thanks Marc. I have one question. Does ezinearticles accept affiliate redirect links in article boxes? I know that they don’t accept blatent affiliate links for sure, but didn’t know if they accepted redirects or if they even paid any attention to them.
Damien
August 23rd, 2006 at 5:16 am
3Great tool indeed. Thanks Marc
Charles, I ran some tests and was able to preload a ClickBank affiliate cookie for a specific merchant site with no problem. It will only preload your hoplink for whichever merchant site you are targetting though. You won’t be able to get credit on other merchant sites just because they also use ClickBank (I checked this). Also, the Cookie Preloader doesn’t work at all for PayDotCom affiliate links.
The real neat thing the Preloader has over the JavaScript cloaked link is that it doesn’t display the telltale hoplink that some ClickBank merchant urls show after an affiliate click-through (e.g. http://www.domain.com/?hop=ddupont). It will just display http://www.domain.com/ after a user navigates there, yet will still credit you as the affiliate at the point of sale.
The Preloader feature could be open to abuse by unscrupulous ClickBank merchants actually, if they added the code to one of their own pages (or their homepage) with either an alternative hoplink they own or a friend’s hoplink. They could effectively steal traffic sent to them by affiliates that way.
Damien
Brandon Hopkins
August 24th, 2006 at 10:44 am
4Marc - Thanks for the preloading tip, I’ve never done that. Do you know if it works with Azoogle?
Andrew
August 24th, 2006 at 11:07 am
5Is it against the TOS to preload cookies for clickbank?
I believe I read before that a lot of affiliate networks actually ban affiliates for cookie stuffing…
Andrew
Marc
August 24th, 2006 at 1:52 pm
6Hi Andrew,
Here’s Clickbank’s legal page: http://clickbank.com/legal
Section 6 discusses affiliate behavior, and nothing there seems to indicate that preloading a single cookie for a product you are preselling is prohibited.
You should verify for yourself that you are in compliance with any affiliate programs’ TOS.
Marc
Marc
August 24th, 2006 at 1:53 pm
7Brandon,
Preloading will work with almost any affiliate program that uses cookies to track commissions. I’m not familiar with Azoogle, so I can’t give you a definitive answer.
Also, as I mentioned to Andrew, make sure you comply with the affiliate program’s TOS.
Marc
Roger Loh
March 11th, 2007 at 8:36 am
8Thanks Marc for that wonderful tip on cookie preloading…
And also Damien and others’ comments which are so helpful to people starting out in affiliate marketing.
Roger
Mike
May 25th, 2007 at 8:09 pm
9Hi Marc,
Thanks for the great info you are freely sharing on your blog!
I found it while searching for more details about Orwellpro and here I am spending the last two hours browsing through… (I almost forgot why I came for in the first place)
BTW – Could you post a thread comparing Orwellpro with PortalFeeder, as I am not sure which one is more appropriate to start with?
Your ALC tool rocks and is so easy to use, even for non techies!
Q - Is there any updated link for the HELP button in ALC? Presently the link to ‘profitstudios’ gives a 404 Not Found error.
My hat goes up for the other contributors as well.
)
Mike D.H.
Matt
August 24th, 2007 at 3:23 pm
10Hey!
I was tracking referrers to my site and found ‘www.reviewbusters.com’. The specific html page on their site contained a document.write unescape command that looks like itlinked to my site. The page looked entirely like mine…only the paypal button didn’t work (fortunately at least it doesn’t look like they are totally stealing from me that way).
It’s like they created a copy of my site…and if I login with a legitimate login/pwd, it does access the content side (but always has their URL in the URL bar).
What is going on here? My site is a part of an affiliate program (clickbank), and I do have some clickbank referrals to other sites within my content pages.
Frank Eckdall
September 8th, 2007 at 10:31 pm
11Hi Marc,
Nice article about affiliate link cloaking. The only section that I didn’t understand, or wrap my mind around, was the php redirect.
When you mention http://marcquarles.com/cool_software do you mean a directory called cool_sofware with a index.php inside it. This I understand.
If cool_software is a directory then your link would be http://marcquarles.com/cool_software/ if your link is http://marcquarles.com/cool_softwarea that might be a .htaccess redirect.
Either way once the potential customer gets to the designated site your hop link will show up, revealing that you are a hapless affiliate. That is to say when they click on the link they will not see your hop link until they get to the destination site. Your cookie may be dropped but now they know you are an affiliate.
Also, I see no reason that javascript will not work in email etc. Just make a javascript encoded page put a link to that page in your email.
Thanks for explaining iframe and preloading.
PowerLink Generator uses iframe encrption yet, as you mention, PayDotCom.com, can’t deal with this and your cookie is not dropped. It seems strange to me that Mike Filsaime recommends his software and his own affiliate system doesn’t support the software he recommends.
I have used frame forwarding which is dynamite but the cookie is rarely dropped. Looks great but don’t use it.
Excellent topic for anyone serious about affiliate marketing. Affiliate Link Cloaking, preloading cookies etc.
Kind regards,
Frank Eckdall
Desmond
February 13th, 2008 at 11:58 am
12Marc - thanks a ton for this.
A Ques:
On the cookie preloading in iframe - is there any way I can stop the status message being shown from the site being preloaded?
RSS feed for comments on this post· TrackBack URI
Leave a reply
Categories
Archives
Links
Meta
Calendar