Easy Mode Redirect Split Tester
Posted on November 27th, 2007 in Uncategorized
So you have an ad running through a header redirect, and you want to test different landing pages, different offers, whatever. Just throw this code in the index.php for your redirect url, put in the pages you want to test, set it, and forget it. This works great for facebook ads, as they’re hard enough to get approved, which makes it difficult to set up an identical ad to test a different landing page since the manual review process seems to be run by a band of retarded monkeys. It will, however, work perfectly fine for any other redirect. Enjoy:
<?php
//just add urls to this array and they will be thrown into the mix
$urls = array (
"http://nbjmp.com/click/?s=12413&c=50881", //beach bum
"http://nbjmp.com/click/?s=12413&c=47156", //SEO Supervisor
"http://www.nickycakes.com/links/neverblue" //neverblue
);
$redirect = $urls[rand(0,count($urls)-1)];
Header( "Location: " . $redirect );
?>
Published by nickycakes






November 29th, 2007 at 2:58 pm
Can that code be modified to be run in html? I already have an ad running but it is on a .html page with a meta refresh.
November 30th, 2007 at 1:28 am
Yes, you can do it two ways. Either put it in something like splittest.php and change your meta refresh to go to the splittest.php which will then do the split testing, or do it with url rewriting in .htaccess. If you need the second option, you can pm me for more info (use the contact link at the top of the page).