Home > Questions and Answers > General Questions

Split Testing Code on 1 Campaign Set-up (2)


08-09-2012 06:22 AM #1 afilia320 (Member)
Split Testing Code on 1 Campaign Set-up

Hi everyone:

Until now I have only set up a campaign that directs the user to a single LP. Campaing=>LP. Now I want to rotate LPs and split test to optimize my existing and new campaigns.

SO:

I want to know what is the best way to set the following up:

Traffic source ad=> (2 rotating LPs) => Offer

How does the (2 rotating LPs) thing work? Does your "destination url"(index.php, htm etc) on the "traffic source ad" contain a code to keep rotating the displayed LP?

Thanks!


08-09-2012 06:50 AM #2 afilia320 (Member)

I got my answer on : http://stmforum.com/forum/showthread...=rotating+code

Quote Originally Posted by zeno View Post
Why not just have your creatives link to an initial PHP file that then passes the variables and splits the traffic between a DL and your prosper202 landing page?

e.g. creative URL = http://yoursite.com/pof/campaign/redirect.php?c1={age:}&c2={state:}&t202kw=Offer-Country-Sex-age

And then create that redirect.php file and have it's contents as:

Code:
<?php
   $c1= $_GET['c1'];   //Age
   $c2 = $_GET['c2'];    //State
   $t202kw = $_GET['t202kw'];   //t202kw

//simple redirect split

$redirect[0] = "http://example.com/tracking202/redirect/dl.php?t202id=xxx&c1=".$c1."&c2=".$c2."&subid=".$t202kw."&t202kw=".t202kw;   //DL generated by prosper202
$redirect[1] = "http://example.com/landers/lander.php?t202id=xxx&c1=".$c1."&c2=".$c2."subid=".$t202kw."&t202kw=".t202kw;   //Landing page link generated by prosper202

$number = mt_rand(0,1);
header("Location:$redirect[$number]");
exit;

?>
From there you'd want your lander.php to be your landing page, including the landing page javascript that tracking202 gives you. From that point on I can't help ya much as I don't really use prosper202, but I imagine you can link out to a php file containing the redirect script prosper gives you in the Get LP code section. Provided you have added something like "affiliateurl.com/in.php?subid1=[[c1]]&subid2=[[c2]]&subid3=[[subid]]" it should carry your variables through alright. But don't quote me on that.
Promise Ill use the search more. I wonder if using this redirect can get ads declined in PoF. I'll ask Ben.


Home > Questions and Answers > General Questions