Hi,
Quick technique that I've found useful for product review sites. WARNING: Requires PHP and some technical faff. (And it only works for cookie-based affiliate tracking).
Here's the situation:
1. I say product is good
2. I want to back this up by showing that another site thinks the same as me
3. BUT I don't want to link to that other site and have the user click their affiliate link
Here's what I do:
1. If you're linking from a page for a single product, just stuff a cookie for the product there and then. You don't even need to be sneaky: just make a 400x400 iframe with the product site and call it a 'site preview window'.
2. Link to the external site via a PHP Proxy you host. I use phpproxy which is on source forge
3. Have that link open in a JS 'lightbox' style window. I use greybox. Part of your stays visible behind the window.
So when the user browses the external site, the cookies will be saved by the Proxy and not on their machine. So even if they browse to the merchant site through an affiliate link the cookie you pre-stuffed will be the only one they have.
Finally, you should hack the Proxy slightly to stip out frames and iframes in case the site you are linking to is cloaking their affiliate links via a frame. In phpproxy I just added this to the process_images function:
The user will then just see a blank page, hopefully think WTF, close the JS window and be back on your page. Not ideal but better than nothing.
If you don't want to cookie-stuff you could also add code to this part of the proxy to search for affiliate links and replace in your id.
Hope this helps someone.
Cheers,
Leon
Quick technique that I've found useful for product review sites. WARNING: Requires PHP and some technical faff. (And it only works for cookie-based affiliate tracking).
Here's the situation:
1. I say product is good
2. I want to back this up by showing that another site thinks the same as me
3. BUT I don't want to link to that other site and have the user click their affiliate link
Here's what I do:
1. If you're linking from a page for a single product, just stuff a cookie for the product there and then. You don't even need to be sneaky: just make a 400x400 iframe with the product site and call it a 'site preview window'.
2. Link to the external site via a PHP Proxy you host. I use phpproxy which is on source forge
3. Have that link open in a JS 'lightbox' style window. I use greybox. Part of your stays visible behind the window.
So when the user browses the external site, the cookies will be saved by the Proxy and not on their machine. So even if they browse to the merchant site through an affiliate link the cookie you pre-stuffed will be the only one they have.
Finally, you should hack the Proxy slightly to stip out frames and iframes in case the site you are linking to is cloaking their affiliate links via a frame. In phpproxy I just added this to the process_images function:
Code:
$parse->html = preg_replace("!<frame[^>]+>!is",
'', $parse->html);
$parse->html = preg_replace("!<iframe[^>]+>.*?</iframe>!is",
'', $parse->html);
If you don't want to cookie-stuff you could also add code to this part of the proxy to search for affiliate links and replace in your id.
Hope this helps someone.
Cheers,
Leon