thedorf
Elite Member
- Oct 1, 2008
- 2,558
- 1,819
Just a quick how to for you all. Many users will hover over a link, look at the bottom of the browser, and see if it is an affiliate link. If it is most who do this will open a new window and manually type in the website address without the affiliate code attached.
The following will mask the affiliate link, but, it only masks the link on your website. Once the link is clicked the affiliate code is added to the link and visible in the address bar on the website the end-user is forwarded to - but most will not notice this and in any case your cookie has already been set.
THIS IS NOT COOKIE STUFFING.
Read: "On the World Wide Web, cookie stuffing (also cookie dropping) is an affiliate marketing technique in which, as a result of visiting a website, a user receives a third-party cookie from a website unrelated to that visited by the user, usually without the user being aware of it." Source: https://en.wikipedia.org/wiki/Cookie_stuffing
Using my technique the cookie is being set by the website the cookie is valid for, a small but major difference.
You can see this in action on my website but the website is only one day old and is still ugly as hell: http://www.100prowebsitetips.com
A non-affiliate link to the company I am promoting is: http://www.a2hosting.com
Here is the HTML:
Here is the Javascript that does the magic:
The callback function resets the link on my webpage to be the link without the affiliate code - but if clicked it will again forward with the affiliate id attached.
Cheers,
Phillip aka thedorf
P.S. Always notify your affiliate manager if you do this to be on the safe side - I've yet to find an affiliate manager that had a problem with this.
P.S.S. Mods if there is a problem with this post just delete it - whatever.
The following will mask the affiliate link, but, it only masks the link on your website. Once the link is clicked the affiliate code is added to the link and visible in the address bar on the website the end-user is forwarded to - but most will not notice this and in any case your cookie has already been set.
THIS IS NOT COOKIE STUFFING.
Read: "On the World Wide Web, cookie stuffing (also cookie dropping) is an affiliate marketing technique in which, as a result of visiting a website, a user receives a third-party cookie from a website unrelated to that visited by the user, usually without the user being aware of it." Source: https://en.wikipedia.org/wiki/Cookie_stuffing
Using my technique the cookie is being set by the website the cookie is valid for, a small but major difference.
You can see this in action on my website but the website is only one day old and is still ugly as hell: http://www.100prowebsitetips.com
A non-affiliate link to the company I am promoting is: http://www.a2hosting.com
Here is the HTML:
Code:
<a href=''http://www.a2hosting.com" rel="nofollow" id="a2">http://www.a2hosting.com</a>
Here is the Javascript that does the magic:
Code:
function loadlink(url, callback){
var link = document.getElementById( 'a2' );
link.addEventListener( 'click', function() {
link.setAttribute("href",url);
callback();
});
}
loadlink("http://www.a2hosting.com?aid=YourAffiliateId", function(){
setTimeout(function() { document.getElementById( 'a2' ).setAttribute("href","http://www.a2hosting.com"); }, 1000);
});
The callback function resets the link on my webpage to be the link without the affiliate code - but if clicked it will again forward with the affiliate id attached.
Cheers,
Phillip aka thedorf
P.S. Always notify your affiliate manager if you do this to be on the safe side - I've yet to find an affiliate manager that had a problem with this.
P.S.S. Mods if there is a problem with this post just delete it - whatever.
Last edited: