How to set up a split tester? need PHP help
I'm trying to follow this website:
http://www.richardbonner.net/how-to-spli...ing-pages/
I'm completely clueless in php, but it seems really simple to do.
Lets say I just had a folder for testing purposes and wanted to direct 50% of my traffic to google, and 50% to yahoo
would i just make a index.html and put the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script src="jquery.js"></script> <script src="jquery1.js"></script> <script src="roundabout2.js"></script> <script src="jqjs.js"></script> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <?php if(rand(0,1) == 0) { header("Location: http://google.com/'); } else { header("Location: http://yahoo.com/'); } ?> </body> </html> |
-
Christopherson -
Thanks
{{ DiscussionBoard.errors[7928031].message }} -
-
trafficmasters -
Thanks
SignatureOver 35 Million Targeted Visitors Sent To Warriors{{ DiscussionBoard.errors[7928875].message }} -
-
Brandon Tanner -
Thanks
Signature{{ DiscussionBoard.errors[7930387].message }} -
-
Sumit Menon -
Thanks
{{ DiscussionBoard.errors[7930603].message }} -