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!
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.
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...
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
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...
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
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)
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
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
Will this code work for .html landing pages, or do they need to be pages with the .php file extension?