Home > Paid Traffic Sources > Mobile

Best script/method to split test? (7)


12-15-2011 12:37 PM #1 invisible777 (Member)
Best script/method to split test?

I avoid p202 and cpvlab with my mobile campaigns, and was just wondering if anyone out there had a script or recommendation for a mobile-friendly split testing script?

Thx


12-15-2011 10:13 PM #2 sm1810 (Member)

Visual Website optimizer, unbounce, google website optimizer, conversion202 all offer A/B or multivariant testing... I don't think you need anything special for "mobile-friendly" traffic unless I'm missing something


12-15-2011 10:33 PM #3 invisible777 (Member)

Some mobile browsers don't support even basic Javascript, so I was more interested in light-weight solutions that some of you guys may have found leak as little traffic as possible. Have you had good luck using google website optimizer on mobile traffic?


12-15-2011 10:53 PM #4 shanktank (Member)

How about doing it with some basic php?

Do something like:
$ver=rand(1,2)
if $ver=="1", show page a
if $ver=="2", show page b


12-15-2011 10:57 PM #5 invisible777 (Member)

php was what i was thinking... do you think php less likely to leak visitors than js?


12-16-2011 12:03 AM #6 zeno (Administrator)

Absolutely. PHP is server side so it doesn't depend on the client, javascript does, so you've already eliminated the biggest variable: the visitor.

With split testing I just used PHP as shanktank demonstrated to split traffic between two destinations. I change the subid's in each link to suit to make it easy to track EPCs network side.

E.g.

Code:
<?php

   $subid = $_GET['subid'];

$redirect[0] = 'URL1'.$subid;
$redirect[1] = 'URL2'.$subid;
$redirect[2] = 'URL3'.$subid;

$number = mt_rand(0,2);

header("Location:$redirect[$number]");

?>
More recently i've been doing redirects based on the subids passed through to the redirect page, so more something like:

Code:
<?php

   $subid1 = $_GET['subid1']; //Country code
   $subid2 = $_GET['subid2']; //Gender
   $subid3 = $_GET['subid3']; //Age group
   $subid4 = $_GET['subid4']; //Advert ID
   
   $country = getenv(GEOIP_COUNTRY_NAME);
   $country_code = getenv(GEOIP_COUNTRY_CODE);

//redirect split based on subids
switch($country_code) {
case 'XX':
if ($subid2=="M")
	{
$redirect[0] = 'http://affiliateurl.com/something&s1=.$subid1."&s2=".$subid2."&s3=".$subid3."&s4=".$subid4;
$redirect[1] = 'http://affiliateurl.com/something&s1=.$subid1."&s2=".$subid2."&s3=".$subid3."&s4=".$subid4;

$number = mt_rand(0,1);
header("Location:$redirect[$number]");
exit;
	}
if ($subid2=="F")
	{
$redirect[0] = 'http://affiliateurl.com/something&s1=.$subid1."&s2=".$subid2."&s3=".$subid3."&s4=".$subid4;
$redirect[1] = 'http://affiliateurl.com/something&s1=.$subid1."&s2=".$subid2."&s3=".$subid3."&s4=".$subid4;

$number = mt_rand(0,1);
header("Location:$redirect[$number]");
exit;
	}
}
?>
Every time I want to do something it turns out knowing more PHP could have saved me time and money. Thus I have been building up a repository of different PHP files for different things and getting a better grasp of it. Embrace PHP, it stands for Profit, Hotdaaaayum Profit. ;D


12-16-2011 01:29 AM #7 invisible777 (Member)

Thanks zeno!


Home > Paid Traffic Sources > Mobile