I want to create a very simple split-testing script that will alternate between displaying the content from page1.php and page2.php. This content will be shown on index.php.

If the visitor comes back to that page, it must show the same page they saw before.

It must track the number of times each page is displayed and the click through rate of each page. This way, I can calculate which page is better for sales.

Please note that page1.php and page2.php will have php code on them as well as html.

Thanks,

Jon