Alternating between 2 landing pages for a niche

Discussion in 'ClickBank' started by GreatWebSuccess, Jun 4, 2008.

  1. #1
    Just wanted to show you guys http://www.usewaterincar.com/

    I created a custom PHP script that'll alternate between 2 pages, 1 is a squeeze page that'll capture the name/email, and essentially sell to the customer.

    The 2nd is a review page that'll show my top 3 for the niche.

    Everytime you refresh the page it'll alternate between the pages, going to test and see which one converts more.

    - Danny
     
    GreatWebSuccess, Jun 4, 2008 IP
  2. hornetss

    hornetss Peon

    Messages:
    735
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your first landing page is great! I almost bought, ;). Good Job
     
    hornetss, Jun 4, 2008 IP
  3. GreatWebSuccess

    GreatWebSuccess Peon

    Messages:
    226
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Which one was that one hornetss?
     
    GreatWebSuccess, Jun 4, 2008 IP
  4. koratman

    koratman Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's very nice. How you do swtich between 2 pages.:eek:
     
    koratman, Jun 4, 2008 IP
  5. GreatWebSuccess

    GreatWebSuccess Peon

    Messages:
    226
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I've received a few PM's asking for help on how to do this. I've written out some instructions so that anyone can do this.

    Go ahead and create 2 files which are named as follows:

    index.php
    count (no extension!)

    In the count file, type in 0 and just save it.

    In the index.php file you will need the following script:


    <?php $counter = file_get_contents('./count');
    if ($counter) {
    include('./file1.html');
    $counter--;
    }
    else {
    include('./file2.html');
    $counter++;
    }
    file_put_contents('./count', $counter);
    ?>
    PHP:

    On the lines where it says include, change the file1.html and file2.html to whatever files you want it to alternate between.

    Make sure the files count and index.php are in the same folder and upload it.

    You can change the relative path... in the script ./ means the same folder, ../ would mean 1 folder up and so forth.

    If you need any help setting it up just let me know!

    - Danny
     
    GreatWebSuccess, Jun 6, 2008 IP
  6. anarmyofme

    anarmyofme Well-Known Member

    Messages:
    1,136
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    130
    #6
    When and if your sites are indexed...how does this affect things?
     
    anarmyofme, Jun 6, 2008 IP
  7. GreatWebSuccess

    GreatWebSuccess Peon

    Messages:
    226
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It shouldn't matter at all, php include doesn't affect the indexing of your pages or SEO at all. PHP include is a server side script, so Google will see the same html source code as the you will.

    - Danny
     
    GreatWebSuccess, Jun 6, 2008 IP