Affiliate Link Cloaking

Status
Not open for further replies.

smlr23

New member
Mar 1, 2007
2
0
0
I have been reading all of the posts about affiliate link cloaking and how the best option for affiliates using PPC is php redirects, but I am an idiot when it comes to technical stuff.

Say I have an affiliate dating site through azoogle. The theme of the page would be 'meeting hot girls'. The page is www.mysite.com/hotgirls. So I have content and then my affiliate links where I have them set up like this

<a href="http://AzoogleTracking?sub=hotgirls&azauxurl=99999></a>

A lot of people seemed to like this code below for affiliates using PPC.

<?
$offer = $_GET['offer'];
$type = $_GET['type'];
if ($offer == "Dating")
($jumplink= "http://www.mysite.com";)
if ($offer == "Hot Girls")
($jumplink= http://www.mysite.com/hotgirl;)

header("Location: ".$jumplink."&sub=".type."");
?>

So I create a page link.php and put this code in there. What do you do to the affiliate links on www.mysite.com/hotgirls? Do I change anything with the links from link.php? Any and all help are greatly appreciated. Thanks a lot.
 


Ok, I just searched in google and found the script (cuz I dont remember code well) and here.
PHP:
  <?php
header("Location: http://www.example.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>
Put this in a new php file and link to it. There's more complex ones but this will cloak just fine.
</div></div>
 
Another alternative is to set up a single jump page (similar to above but you can place all of your affiliate links in it). Just create a new page called jump.php and set it up like so:

PHP:
<?php
if ($m == "") {$link = "http://www.yourpage.tld/";} // No referrer? Go home.

if ($m == "Widgets") {$link = "http://www.widgets.com/affid/";}
if ($m == "Wabbits") {$link = "http://www.wabbits.com/store/affid/";}
if ($m == "Wakbits") {$link = "http://www.wakbits.com/aff/affid/";}

header("Location: $link"); // Jump to the affiliate URL.
exit();
?>

Just change the "http://www.yourpage.tld" to your sites home page. Make the ($m == "some simple descriptive title for your link") and the {$link = "your affiliate link";}

Now you can call any of your above links like so:
HTML:
Buy our <a href="http://www.yourpage.tld/jump.php?m=Widgets">Widgets</a> today!
Don't forget our <a href="http://www.yourpage.tld/jump.php?m=Wakbits">Wakbits</a> too.
 
If your going to do that, then you may as well get a tracking script so you can monitor clicks and track conversions. I use adtrackz myself.
 
Status
Not open for further replies.