Question for those split testing Landing Pages...

Discussion in 'ClickBank' started by rickybuitrago, Oct 3, 2008.

  1. #1
    Hey

    I added a PHP code in my index page that randomley displays the two Landing pages Im split testing.

    This is the code:

    <?php
    if(rand(0,1) == 0) {
    header("Location: http://www.example.com/split1");
    } else {
    header("Location: http://www.example.com/split2");
    }
    ?>

    Now, I need to know how may people are entering each landing page, so I was adviced to use Google analytics, but the thing is that the my analytics statistics shows only the number of visitors to the page: /index.php not the number of visitors to /split1.html or to /split2.html.

    Do you know a way I can count the visitors to each of my landing pages? (prefereably with google analytics!

    Thanks!
     
    rickybuitrago, Oct 3, 2008 IP
  2. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #2
    do the following:

    <?php
    if(rand(0,1) == 0) {
    header("Location: http://www.example.com/firstpage.html");
    } else {
    header("Location: http://www.example.com/secondpage.html");
    }
    ?>

    What you should do is put the analytics code on both firstpage.html and secondpage.html

    If you don't put the code it won't show up in Google Analytics.
     
    Ripped, Oct 3, 2008 IP
  3. rickybuitrago

    rickybuitrago Peon

    Messages:
    170
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thats the thing, I have the code in both of them...and the funny thing is that I didnt include the code in /index.php, just in split1.html and split2.html but still stats are shoing for index.php and not for the splits...
     
    rickybuitrago, Oct 3, 2008 IP
  4. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #4
    that's weird, have you tried using awstats ?
     
    Ripped, Oct 3, 2008 IP
  5. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Here what you can do, put a hit counter on both pages, put different Clickbank tracking ids for both pages, you will solve your problem this way
     
    Ripped, Oct 3, 2008 IP
  6. rickybuitrago

    rickybuitrago Peon

    Messages:
    170
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Im driving traffic to a thank you page first

    I went to http://www.clickconsultants.com/split-testing-landing-pages-its-easy#comment-1826 which is a cool blog about CPA affiliate marketing and the blogger just told me I should include the code in the index.ph in addition to those on the splits so Ill do that and get back to you ripped...
     
    rickybuitrago, Oct 3, 2008 IP
  7. rickybuitrago

    rickybuitrago Peon

    Messages:
    170
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    UPDATE: Still not able to track visitors to either split1.html or split2.html ....

    I have included analytics code in both of them plus in index.php, but analytics only counts visitors that come in to the splits by typing in the browser the exact url.

    If visitors get to the split pages from index.php analytics it only counts as a visit to index.php, so I dont know how many visitors are reaching split1.html and how many are reaching split2.html

    If you know a way I can track how many visitors are reaching each Landing page I would really appreciate if you could share this with me.

    Thanks
    Ricky
     
    rickybuitrago, Oct 3, 2008 IP
  8. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #8
    You could try what I told you to do, just put a hit counter on each page, and use a different tracking id for each landing page. That way you will be able to track how many visitors you had to the particular pages, and how many sales you've made from the particular page (by checking the CB account for the specific TID for that page)
     
    Ripped, Oct 3, 2008 IP
  9. rickybuitrago

    rickybuitrago Peon

    Messages:
    170
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Whats a hit counter? Where can I get one? Is it one of those codes that posts a viewable counter on the page? If yes, is there a way it´s not viewable for my visitors?

    Thanks
     
    rickybuitrago, Oct 3, 2008 IP
  10. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #10
    Yes, it's the viewable counter on the page, and yes, there are invisible ones,
    you can find one at http://www.mywebstats.org/reg_signup.php?font=-1
     
    Ripped, Oct 3, 2008 IP
  11. UltimateFreebies

    UltimateFreebies Peon

    Messages:
    367
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Will this code work for .html landing pages, or do they need to be pages with the .php file extension?
     
    UltimateFreebies, Oct 4, 2008 IP
  12. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #12
    I think you can make it work even without PHP, but by using javascript
     
    Ripped, Oct 4, 2008 IP