rickybuitrago
Oct 2nd 2008, 8:59 pm
So 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!
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!