Prosper202 Tracking202 Export202 WorldProxy202 Meetup202 | Blog Forum Newsletter Twitter | Advertise
Login · Register
Home About Docs Scripts Blog Forums Hosting Donate Download

Split Testing Landing Pages With Tracking202

In this section we will show you how to split test several landing pages with Tracking202. All we are basically is going to do is make an-ever-changing landing page that rotates between several landing pages. It is really quite simple.

In Tracking202 you'll want to add several landing pages, you can denoate them differently for example: landingpage1, landingpage2, landingpage3 as the nicknames. For the URL just go ahead and set all the landing page URLs to the same page, as this page will rotate between all three of theses landing pages. Let us say for instance you will be sending your visitors to example.com/landingpage.php, ok, so then put that as your landing page URL.

Now grab the landing page code for each of theses new landing pages, and then put the code on different pages. For instance, landingpage1.php, (put the landingpage1 JS code on there), then make landingpage2.php, (put landingpage2 JS code on that one), and so on forth, for how many landing pages you have.

So now you have, in this example, we have 3 different landing pages, each has been added into Tracking202, and there is a unique .php file for each of the landing pages on your domain. In T202 all your landing page URLS should point to: example.com/landingpage.php. Now what we are going to do with landingpage.php is simply rotate between the three different landing pages; landingpage.php when you land on it will simply include the different landing pages. Below is the code you'd use for landingpage.php

The PHP Code

<?

//Tracking202 Landing Page Rotation Script

//landing pages filenames, theses will be rotated between eachother
//theses landing pages must be in the same DIRECTORY as this file
//you can add as many landing pages here as you like
$landingpage[1] = 'landingpage1.php';
$landingpage[2] = 'landingpage2.php';
$landingpage[3] = 'landingpage3.php';

//this is the text file, which will be stored in the same directory as this file, 
//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.
$myFile "count.txt";

//open the txt file
$fh = @fopen($myFile'r');
$lpNumber = @fread($fh5);
@
fclose($fh);

//see which landing page is next in line to be shown.
if ($lpNumber >= count($landingpage)) {
    
$lpNumber 1;
} else {
    
$lpNumber $lpNumber 1;
}

//write to the txt file.
$fh fopen($myFile'w') or die("can't open file");
$stringData $lpNumber "\n";
fwrite($fh$stringData);
fclose($fh);

//include the landing page
include_once($landingpage[$lpNumber]); 

//terminate script
die();

?>

Conclusion

So that above code should be placed on landingpage.php; whenever that file is called it will include the other landing pages, and it will rotate between them evenly. Now you are rotating between your landing pages, in Tracking202 when you goto ANALYZE » LANDING PAGES, you can now tell the difference how each individual landing page performs.

Responses

  1. Wes (MasterlessSamurai.com) on Aug 25, 2008 at 2:18pm

    I wonder if on a future update that this functionality could be coded as part of one of the steps when setting up landing pages. You could have a pull down of sorts, enter in your configuration details, and have the outputted code ready to split test offers.

  2. matt on Nov 14, 2008 at 2:45pm

    hey wes, do i need to create new outbound URL's for the offers?...like landingpage2 needs to link to the offer page with a different uRL?

Leave a Reply

Name (required)

Email (will not be published) (required)

Website

What does 4 + 4 equal? (required spam filter)


Creative Commons License This work (Prosper202, Tracking202 and Export202) is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.