Hey Everyone,
I'm not a php specialist so I hope someone can help me out here or has already done something similar.
For those of you that used P202, you've probably seen how to do an offer rotation with it:
http://prosper.tracking202.com/scripts/rotate-offers/
The great thing about doing it this way is that you can dynamically call out the offers on your LP.
So for example, let's say I have a couple of targets related to football. Now there are different NFL offers, some are quizzes, others are free t-shirts, others are gift-cards etc. I'd like to insert these offers dynamically into my LP so I don't have to make an LP for every single offer, like this:
"Congratulations, you've won a [offer]. Click here to claim your prize [offer-picture]."
I've done this in the past with P202 successfully but since I'm using Cpvlab now I have no idea how to implement it.
Can anybody help?
Hmmmmm not really a easy way to do this......I personaly think its easier to keep stuff separate anyways.....just makes tracking that much easier IMO.....plus the more scripts you have running on a lp...the longer to load.....
with ppv simple is good.....
You cant implement this on CPVLab cause the offer the user is directed to only is decided after the click.
Now you can make a variant.
Use a CPVLab Multiple Options campaign.
Then put some PHP code infront of the lander that decides (randomly) which option to show
Customize your text accordingly
And change the link to:
....base2.php?id=xxx
replacing xxx with the selected option.
This way you can have options for:
a) iphone
b) ipod
c) imac
d) ipad
e) tv
etc
etc
And still rotate several offers in each option.
Thanks guys, since yesterday was friday and I wanted that campaign to get approved at LI I just built out all 8 landers (for 8 offers) in one go, lol. But next time I'll give your suggestion a try, tijn, much appreciated.
For this:
yeah. but here is the weighted rotator script i use for everything that needs something similar
[php]
$url[] = array(
'url'=>'http://site1.com',
'perc'=>40
);
$url[] = array(
'url'=>'http://site2.com',
'perc'=>60
);
echo chooseUrl($url);
function chooseUrl($url) {
$r = mt_rand(1, 100);
foreach ($url as $i => $u) {
$weight = $u['perc'];
$item = $u['url'];
if ($weight >= $r) {
return $item;
}
$r -= $weight;
}
}
[/php]