Split testing script (recommend me one)

amanda11

Hustle hard
Nov 25, 2007
2,459
58
0
Need to split test two opt-in pages. So say they visit my website.com, I want Page1 and Page2 to randomly appear (50/50) as the home page.

What kind of (free) script can I use for this?

(And yes, I Google'd)
 


a really really simple one.works though.


<?


$lps = array(

'http://yoursite.com/landingpage1/index.php',

'http://someothersite.com/landingpage2/index.php',

);

header('Location: ' . $lps[array_rand($lps)]);


?>
 
gerMAN, so I just save that as index.php in the root directory?

Hmm I'm going to try this. Brb.
 
exactly.

the good thing is,you can have your lp on whatever domain you want.

I found this one here (no dickroll)
 
I'm getting an error with your original code. It says "Warning: Cannot modify header information - headers already sent ____"
 
I'm not that great at coding, but this should be really simple


<?

$random = rand(0, 50);

if ($random < 25){ ?>
meta redirect code here
<? } else { ?>
other meta redirect code here
<? } ?>
 
I'm getting an error with your original code. It says "Warning: Cannot modify header information - headers already sent ____"


uhm,i remember i had that error too when i first tested it but i can't remember what i changed to make it work.

just tested it again and it works for me. so i'm not quite sure ... (i'm not that great at coding either )

there are some other scripts on that url i gave you.
but this is the only one that allowed you to have your lp in different directories/domains.
 
I'll send you a PM in just a minute - give you a copy of Magic Link Cloaker. It will do what you want and do all your tracking and stats. Then when you want to throw in a third, fourth, or however many it will keep testing and let you take out the ones that aren't performing for you.