Split Testing and Rotating Offers in Tracking202
Since I made the “PPV Landing Page Rotation” post a few days ago, quite a few people had asked me how to go about doing offer rotation as well.
As usual, there’s more than one way to skin a cat. I’m going to show you the “right” way to do this. By doing it right, we are going to preserve all of Tracking202’s trackyness. However, doing shit right always takes more time. So I would be remiss to not point out a slick way to do this….
Quick & Dirty
This technique was posted by Ad Hustler. (There is a reason he’s in my blogroll, good shit!) His solution to the problem is simple, elegant, and clever. It leverages the almost useless offer rotation built into Tracking202 and allows us to make it truly useful. And the best part? It’s easier to do than a Tijuana stripper.
Let’s say, you want to split-test between two “Free Xbox” offers. One is on Ads4Dough, one is on Neverblue. You simply go into Prosper and create a new Aff Network. Instead of entering the name of network enter a campaign type. Something like “Free Xbox Rotation”.
Next go to Setup > #3 Add Campaigns. Select the Affiliate Network you just added. For Campaign Name, use something descriptive. I used “Xbox 360 – a4d, nb” so I know what the offer is about and what networks I am split testing it on. Make sure you select “Rotate Urls”. Then enter in the tracking links for the different offers. For the Payout, you will only have one field. You can enter the higher payout, or the lower. It doesn’t matter which.
Finish setting up a Simple Landing page as usual. And boom, you’re done. When the user clicks on the link from your lander, they will be sent to a different offer each time. Like I said, quick & dirty. It works and will get the job done.
The downside to this technique is that you will not be able to determine which offer is making you more money by simply looking in Tracking202 alone. This is because the income for both offers will be lumped together under your ‘fake’ Affiliate Network. To determine what each offer is truly earning, you’ll need to log into both networks and see what kind of money you’re making. Furthermore, the lumped together income you see in Tracking202 will be wrong. If you remember, we were only able to enter one payout. So your total income is going to be either over or under the real amount you earned.
The ‘Right’ Way
Advanced users, go to the head of the class. Download the offer rotation script. Read the comments, you’ll figure it out.
Everyone else, read on for a step-by-step.
1. Add Affiliate Networks if you have not done so.
Click: Setup > #2 Aff Networks
For this example, I added ‘Network A’ and ‘Network B’.
2. Add the Campaigns (offers) you are going to be rotating.
Click: Setup > #3 Aff Campaigns
For this example, I will be testing 1 offer from Network A and 1 offer from Network B. I am calling both offers “Xbox 360 Zip”. Both of these offers have a different pay out.
3. Setup Your Landing Page
Click: Setup > #4 Landing Page Setup
To rotate offers and have them track properly, you must use an ‘Advanced Landing Page’ like so:
4. Get the LP Code
Click: Setup > #5 Get LP Code > Advanced Landing Page
Select the Landing Page you just created from the drop-down. Select the offers you will be rotating from the drop-downs. Click ‘Add Another Offer’ as needed.
When you’re done adding offers, click Get Landing Page Codes.
You will see the “Inbound Javascript Landing Page Code”. This, as usual, gets pasted into your landing page before the </body> tag.
Following the javascript, there will be additional text boxes that contain the “Landing Page: Outbound PHP Redirect Code”. There will be code for each offer you selected.
We are concerned with the highlighted portion as show here:
5. Prepare your landing page.
Paste the inbound javascript code as usual. When it comes time to hyperlink to the offer, link to “offer.php”. So your link code will look something like this:
<a href="”offer.php”"> Click Here to Get Your Xbox!</a>
6. Edit the offer.php script.
You now need to paste each of the ‘Outbound PHP Redirect Code’ links that Prosper202 gave you into the offer.php script. Download the offer rotation script here.
For this example, my two links look like this:
$tracking202outbound = 'http://202domain.com/tracking202/redirect/off.php?acip=545&pci='.$_COOKIE['tracking202pci']; $tracking202outbound = 'http://202domain.com/tracking202/redirect/off.php?acip=858&pci='.$_COOKIE['tracking202pci'];
After you paste the links, you need to make one small but very important change. Edit the links so they have an open and closed bracket before the equals sign. They should look like this, note the red bits:
$tracking202outbound[] = 'http://202domain.com/tracking202/...(rest stays the same)
Now save the offer.php and count.txt file in the same directory as your landing page.
7. Wrapping up
Inside the directory where you landing page lives, the files should look like this:
[images] index.html offer.php count.txt
Make sure you set the count.txt file to writeable. (Chmod 777).
Now it’s time to test your landing page. If you go to http://yourdomain.com/xbox/ you should see your landing page. Each time you click on the ‘Click Here to Get Your Xbox!’ link, you’ll be sent to a different offer.
That’s it, your done. Note: you can change offer.php to whatever you want. You can change it to “go-xbox.php”. Just make sure to change the link in your landing page so it points to the new filename.
Always test your links before launching a campaign!
Related posts:
- Split Testing and Landing Page Rotation Script for PPV
- Tracking202 Missing PPV Icons Fix
- Passing Variables Through Prosper 202 Mod
- Meetup202 LA Trip Report & Tracking202 News
- Pimp Your Prosper with Subid Injection Buttons




















12 responses to "Split Testing and Rotating Offers in Tracking202"
Fan-fucking-tastic and thank you so much for this…I hope people who find resources like this are grateful for all the knowledge shared.
This was much easier for me to follow along than I thought it would be. That being said I can’t get it to work. No idea what the issue is so here is what my index.htm and offer.php pages look like:
Loan LP Offer Rotate Test
Click Here For Your Loan!
Not sure if I was supposed to erase a lot of the extra instructions etc on the offer.php page. I tried keeping your whole page as is just replacing with the two test offers I was putting in, then I tried erasing what I thought (?) maybe I was supposed to:
<?php
$tracking202outbound[] = 'http://MyProsperDomainEtc.info/tracking202/redirect/off.php?acip=318&pci='.$_COOKIE['tracking202pci'];
$tracking202outbound[] = 'http://MyProsperDomainEtc.info/tracking202/redirect/off.php?acip=124&pci='.$_COOKIE['tracking202pci'];
$use_count_file = 1;
if (count($tracking202outbound) = count($tracking202outbound)-1) {
$link_num = 0;
} else {
$link_num = $link_num + 1;
}
$fh = @fopen($my_file, ‘w’) or die(“Error! Can’t open $my_file!”);
@fwrite($fh, $link_num . “\n” )or die(“Error! Can’t write to $my_file!”);
@fclose($fh);
header(‘Location: ‘ . $tracking202outbound[$link_num] );
} else { // this is random number based rotation, no count file is used.
$link_num = rand(0, count($tracking202outbound)-1 );
header(‘Location: ‘ . $tracking202outbound[$link_num] );
}
?>
Where did I screw this up?
You don’t need to remove or change anything in the script. What you removed are comments and are there for documentation purposes.
From what I see it looks good. “Couldn’t get it to work” is vague. What exactly is not working?
Also: whenever running into issues, it is best to eliminate variables. Try linking the script as-is. If working properly, it will redirect to google, yahoo, and bing. At least you can confirm that part is working. Then move on to replacing with the proper tracking202 links as in the tutorial.
Great post I always just do the quick and dirty way but it’s good to know how to do it easily the “right” way whenever I need too.
Still having an issue but I know it is with my .html and not your script. Here is how I have it set up for my http://www.1111offers.info test domain:
Untitled Document
<script src="http://www.1111tracking.info/tracking202/static/landing.php?lpip=715"type="text/javascript
Dammit……what am I doing wrong here?
Gregg,
The problem is sloppiness.
http://htmlhelp.com/tools/validator/
http://validator.w3.org/
1. Put your url in there.
2. Fix errors.
Even before doing that I can see some obvious stuff. Double quotes around url in “a” tag. Missing quotes before close of “script” tag. You go through a basic html tutorial if you haven’t already. Also get an html editor. Don’t use notepad. You need something that will catch stuff like open tags and highlight it for you in red. This will avoid stuff like this. Dreamweaver is badass. But overkill for this simple stuff. You can go with some good freeware or open source. Ask people for a recommendation on some forums. http://www.nonags.com/nonags/htmledit.html
Just tested this and it works like a charm. Offers are rotating, keywords are been passed and prosper tracking is showing the correct data.
Kudo’s to you.
Dave
Working perfectly now! Script is exactly what I was looking or thanks again!
Nice, easy awesome, was doing it the quick and dirty way (well was going to do it that way for the first time) but decided to do it like this, and it’s VERY easy to follow, literally step by step instructions here, thanks ctr tard! Thanks for your help on the ppv playbook forums as well!
You’re welcome.
Thanks for reading and commenting.
Hey man, been reading through your tutorials and they are great. Maybe I overlooked this but had a quick question regarding multiple offers on the same landing page. I have a landing page with 3 different offers, all with a click here button on each. How do i pass through the URL that the cpv traffic is coming through with a landing page with multiple offers. Is there a token or something to be passed that pulls the url? Thanks.
At the bottom of this post: http://ctrtard.com/affiliate-marketing/split-testing-and-landing-page-rotation-script-for-ppv/ You’ll see a list of tokens.
Those tokens pass the target, which is usually the URL that your page popped on. Some networks have a few other tokens they support as well. Just shoot your account manager an email if you can’t find info on their site.
Thanks for reading!
Thank you kind gent. Lead impact was the network I was starting out with.