24
Landing Page Rotation Script
Posted by Ad Hustler | Posted in Affiliate Marketing, Tracking | Posted on 24-03-2010
There are a lot of situations where you need to rotate landing pages (or links) to see which are performing best. I was searching around for a script better than the one I was using and found one provided by Xentech on Wickedfire. This script also works if you need to rotate prosper202 landing pages. I thought this could help some people so i’m posting it here.
PHP Code For The Rotator
<?php
$k = $_GET['sub'];
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
srand ((double) microtime() * 1000000);
$random_number = rand(0,count($aff)-1);
$lol = ($aff[$random_number]);
$lal = $lol.$k;
header("Location: $lal");
Add or Remove These Lines To Add or Remove Links From Rotator
$aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
Append ?sub=test to your final link to pass subid values to the links within the rotator



Awesome. I’ve been looking for a better script for a while. I like that this one doesn’t require an external .txt file. I will definitely try this out.
Its actually a really solid script.
Hey! That’s the one he gave me! This script is boss.
Here is the script I use, something like this one but you can use with unlimited campaigns and rotate the ones you want.
Pretty simple. Please format if not showing ok.
Um, you can use the one AdHustler posted with as many campaigns as you want. And if you want to weight one heavier than the other, just put in more of the same link. For example, to run one campaign 80% of the time and another 20% of the time, put in 4 links of Campaign A and 1 link of Campaign B.
This script is almost identical to the one they had on AffPortal.com, and that one works flawless for me. Thanks for sharing.
Not sure why you need to seed the random number generator … does almost-true randomness matter for this use-case? array_rand() should be good enough. Regardless of my personal issues with it, thanks for sharing.
Thanks for posting the script but is there any issue with having to get each LP approved 1st before rotating them.
It shouldn’t matter if you just do a few simple color tweaks but I could see Adwords and other PPC engines being dicks about not getting each LP cleared. Have you ever run into trouble with this.
I know Trafficvance wants you to list all LPS you are rotating with them.
This is awesome!
@Tom
Yeh that would be fine.. I just ripped this and modified it from a script used to generate random banners or something ages ago.
I actually have mine up on my screen right now so I thought I would share too, its very short:
basically just like yours, with the k variable as the keyword. One thing I would point out for these is you can vary the percent of traffic sent to each link by including a link more than once (so if you want 90% of traffic to go to the first link, put it in 9 times and then the second link once)
Sorry about that, the comment field couldn’t handle the php tags –
for those curious http://www.mediafire.com/file/qzk3dygdyam/rotator.txt
Nice Simple Script will test out on couple sites I have not running wordpress thanks ad hustler.
Hi, a simple online solution to this problem that doesn’t require any programming can be found at http://linkshiftr.com/. Link customization, redirection, and rotation take seconds to create and change… check it out
Sometimes I love Google.
Now I just need this to work with Geo redirect.
How can I add dynamic {sub} or {keyword} into the url?
[...] Pages And The Urgency Of Time Mad lib form style testing results Photoshop Guide For Affiliates Landing Page Rotation Script 6 Seductive CTR Tips Tuesday Tips – Improving Landing Page CTR The 1 Penny Tip Top 100 [...]
where do I actually place this script – on a server, on one of the landing pages??
[...] Pages And The Urgency Of Time Mad lib form style testing results Photoshop Guide For Affiliates Landing Page Rotation Script 6 Seductive CTR Tips Tuesday Tips – Improving Landing Page CTR The 1 Penny Tip Top 100 [...]
What about the closing PHP tag?
You should take part in a contest for one of the best blogs on the web. I will recommend this web site!
I’m trying this script out on a new site I just put up, I’ll try to let you know how it works out. To early to tell. Thanks for posting it, btw…
I wanted to post a brief comment so as to express gratitude to you for the fabulous pointers you are placing on this site. My extensive internet look up has at the end been rewarded with pleasant suggestions to exchange with my classmates and friends. I would repeat that most of us readers actually are undeniably lucky to exist in a decent website with very many outstanding people with beneficial points. I feel really privileged to have seen your entire webpage and look forward to plenty of more enjoyable minutes reading here. Thanks again for a lot of things.
A powerful share, I just given this onto a colleague who was doing somewhat evaluation on this. And he in actual fact purchased me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the deal with! Even so yeah Thnkx for spending the time to discuss this, I actually feel strongly about it and really like studying far more on this topic. If possible, as you become experience, would you thoughts updating your weblog with a lot more details? It’s highly useful for me. Huge thumb up for this blog put up!
can someone show me how to install this script into a website
thanks
i just launched mine up over my screen