Home > General > Affiliate Marketing Forum

Need Help with very simple coding (direct link vs. landing page) (4)


09-10-2011 03:49 AM #1 constantin (Member)
Need Help with very simple coding (direct link vs. landing page)

So I have a very nice setup provided by someone here that rotates between two LP's evenly. I want to test between direct linked and an LP though so on the page I rotate to, what code do I need there?


would it be a simple PHP page with the direct linked prosper link inside it?

<?php

header( 'Location: http://t202generateddirectlinkhere.com' ) ;

?>

or is my thinkning completely wrong? I want it to show up properly in T202 Landing pages.


09-10-2011 04:58 AM #2 gts6 (Member)

why dont you just send the traffic to the p202 link, and in the p202 campaign have it rotate between direct link and your landing page?


09-10-2011 08:51 AM #3 constantin (Member)

uhhh would that screw anything up in the tracking? it would make it so I cant test out other offers at the smae time but it could work. It might get messy with the c1 c2 c3 variables though.


09-10-2011 12:57 PM #4 Hannah (Member)

While what you suggest in the first post definitely would work, I think you're doing one redirect more than you need to.

I don't have any code that rotates evenly (since I don't care about it being exactly even) but your rotator code probably looks similar to mine, and this is how I would do it:

Code:
<?php
$links = array('http://t202generatedlandingpage1.com/', 'http://t202generateddirectlinkhere.com/');
$link = $links[array_rand($links)];
echo "<meta http-equiv='refresh' content='0;url=$link'/>";
?>
This way you're putting the code for direct linking in with your landing pages, and your visitors have one less redirect to go through.


Home > General > Affiliate Marketing Forum