How To Split-Test Landing Pages with Tracking202

feature photo

This is another one of those topics that keep coming up on forums and in blog comments. Many people know they should split-test, or have heard they can do this with Tracking202 - but they’re unsure how.

Now let it be said that, the form of split-testing we’re after here is pure and simple A/B/C testing. That is, we’re only testing variations of entire pages - not slight variations within a page. To do that, Google’s Website Optimizer is more suitable.

So - there are several ways to split-test landing pages, but the most common (and simplest) way to do it is using a small .php script that will rotate between and redirect to a set of landing pages you specify. Wes Mahler over at Tracking202 wrote up a brief instruction on how to use their landing page split-tester, but some people are having some trouble getting it set up just right. So I figured I could explain it in a bit more detail here.

First, a simple visualization of how this works:

How-to-split-test-landing-pages-1.png

The T202 landing page rotator looks like this:

How-to-split-test-landing-pages-0.png

Note: The script also relies on having a dummy file called count.txt with write-permission located in the same directory on your server. You can create an empty file like this in Notepador your favorite text editor.

Ok, so let’s say we have 3 landing pages that we want to split-test:

How-to-split-test-landing-pages-2.png

We also have the split-testing (rotation) script in the same folder:

How-to-split-test-landing-pages-3.png

So we have:

www.example.com/lander_a.php
www.example.com/lander_b.php
www.example.com/lander_c.php
www.example.com/rotate.php
www.example.com/count.txt

Configuration

  1. In the rotate.php file, modify the following lines so they match our landing page filenames:
  2. $landingpage[1] = ‘lander_a.php’;
    $landingpage[2] = ‘lander_b.php’;
    $landingpage[3] = ‘lander_c.php’;

    Save the file, and upload it to the server along with the count.txt file. Make sure count.txt has file permissions of 777.

  3. In Tracking202: Go to Setup - #4 Landing Pages, and add each landing page there with its own name, e.g. “My1stSplit_LP_a” and so forth. Set the landing page URL for each of them to:
    www.example.com/rotate.php. Select the appropriate Aff Network and Aff Campaign for this page.
    How-to-split-test-landing-pages-4.png
  4. Also, add a separate landing page for rotate.php and again use www.example.com/rotate.php for its landing page URL. We will call it “My1stSplit_Rotator”.So we have now added 4 landing pages in Tracking202:
    3 for the actual landing pages we will test between, and 1 dummy that is really only the rotating script itself.
  5. Now go to Setup - #6 Get LP Code and grab the code for each of the three landing pages. It should look something like this:

    Insert this code into the appropriate landing page file (at the bottom right before the </BODY> tag). Make sure to also grab the outbound PHP code for any outgoing affiliate links you have set up for that landing page as well.Note: we do NOT grab the LP Codes for the rotate.php page, as this really is not a landing page.
  6. Now we need to generate the destination link to be used in our ads. Go to Setup -#7 Get Links. Select “My1stSplit_Rotator” and generate the link for it.It should look something like this:

    And this is our final destination URL to be used in our source of traffic, be it PPC ad or whatever.

What will happen now is that for every new visitor clicking our ads through our destination link, the next landing page in line will be shown. In Tracking202, the visits will be shown as visits to either:

My1stSplit_LP_a
My1stSplit_LP_b
My1stSplit_LP_c

Tip for Naming Landing Pages in T202

In Tracking202, give each of your landing pages descriptive names that remind yourself of the unique features of that page. By doing this, you can instantly see what landing page style works the best when looking at your statistics.

For example, I give mine names like “blueBG_noOptIn_redHeadline” to tell myself that the page I’m seeing statistics for is the one that has blue background, no opt-in form, and a red headline style.

Now get to tracking and optimizing for more profits! :)

Share this post with others: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • scuttle
  • StumbleUpon
  • Technorati

There Are 18 Responses So Far. »

  1. Very nice descriptive writeup. Yeah, this can be tricky with Prosper202, so a detailed tutorial was definitely in the asking.

    Retweeted…!

  2. this is what I actually do now, I use wordpress to help rotate LPs tho - I use LP Jumper to help with this. similar exatly but using wordpress backend

  3. Very impressed. Thanks for the fantastic job on this tutorial.

  4. Hey,

    First of all, thanks for this tutorial as I was actually in need of exactly this recently.

    Was wondering if you might be able to help me with something? The script is running and is alternating my landers just fine, the problem is, it’s registering the hits in 202 under the rotate.php rather than the actual landers themselves.

    Do you have any idea why this would happen?

    BTW, the landers all have the landing page tracking code on them.

    Cheers ;-)

  5. Thanks for the detailed explanation. I’ve gotten the rotate script to work with regular php sites, but with Wordpress I’m confused. The rotate script and count.txt are supposed to be in the same directory as the landing pages, but since the landing pages are dynamically generated, which directory do rotate.php and count.txt go in? I put them in /wp-content/my-theme/ and that isn’t working…?

  6. @Adam; Strange. Are you sure you didn’t grab any landing page code for the rotate-page? (See step 4)

    @brian; I would recommend you check out LP Jumper, as mentioned by Ian Fernando above.

  7. Sweet!!

    I intended to use the rotator a couple months back - but had some
    difficulty with the set-up. I was also told that if I was going
    to rotate landing pages to not use the one inside of prosper.

    I’m on this today!! Very clear, very idiot proof instructions and
    diagrams. I guess this means that even I can follow them! :-)

    Thanks For Your Blog!!!
    Thanks For The Post!!!

  8. Great information on testing landing pages. It simply clarifies stuuf for us.
    Oh and nevertheless, thanks for the page rotator script. I really needed that. :)

  9. Hey,

    I followed every step by step, however, I am facing errors. I rotate btw two LPS. The 1st one loads with no problems, but when it comes to the 2nd LP the following error comes:

    “Warning: include_once(l01.php) [function.include-once]: failed to open stream: No such file or directory in /home/projektu/public_html/abbysdietdiary.com/rotator.php on line 34

    Warning: include_once() [function.include]: Failed opening ‘l01.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/projektu/public_html/abbysdietdiary.com/rotator.php on line 34″

    Can anyone give a tip of what is wrong?

  10. @Renatas;
    I’m sure you have double-checked but, do you have the file “l01.php” actually where it’s supposed to be, with the exact same filename, and all permissions set correctly?

  11. I understand how-to and have-been using this setup for direct linking to the offer pages using my cloaked php redirects…

    BUT what is the correct setup in order to use iframed offer lander.

    I’m not sure how to use the iframed urls for the offer landers… because the php for the cloaked link passes the masked subid to the tail of redirected destination url… which causes the destination url to fail, because it ends up like this http://www.domain.com## (## representing the incremental subid)

    Am I missing something?

    Is there even a way to do this? Thanks!

  12. If I were to put step 5.’s link in place of step 4. (in the steps above) would that suffice for a direct linking rotator?

  13. This is also good to test the same offer from different networks!

  14. Clear instructions, thanks. I want to have my destination URL as my homepage. Any way of doing this without a redirect?

  15. [...] http://profitapolis.com/featured/how-to-split-test-landing-pages-with-tracking202.html [...]

  16. I tried installing the script, but the page with the script info keeps coming up. I believe I loaded it correctly, but can’t seem to get passed this.

    What am I doing wrong, Thanks

  17. I want to split test LP & DL. What changes would I have to make to the steps ?

  18. @Savio:
    Add the direct link as one of the pages to rotate in “rotate.php”. Think of it as replacing the line lander_c.php with your direct link. Don’t forget to add the direct link into T202 for tracking.

Post a Response