I would like to have developed a basic A/B testing script in PHP working with cookies, that would focus exclusively on split testing by URL. So basically, when a user would land on a page with that script, he would either stay on that page, on go to the variations of the page that have been defined, and when he converts (sign up, purchase whatever), a conversion would be associated to that variation.
Here are the components of the tool
a. Interface: To be able to see actual tests and delete them, create new tests and to consult statistics
2. New Test creation: When creating a test, user needs to enter the different URLs he wants to test. He can also give a weight to each of them so that per example 50% of the traffic is sent to the first one, and 50% to the second one. Finally he needs to give a name to that test, and a name to each of the url he entered
When the test is created, the interface would present the different php codes that need to be pasted, so the code to put on the initial page where the user lands to be able to redirect him, and the second code that will go on the conversion page
The stats interface needs the following:
1. To be able to change project
2. When a project is chosen, the different URLs are listed, and for each of them we see the stats for the visits and the conversions. There is a time range button to view stats for Today, Yesterday, 7 days and 30 days
4. The PHP codes
The code that needs to be placed on the page where traffic is sent has to quickly decide either to keep the user on that page, or to redirect him
The tool must also work if the pages the user is sent too are not on the same server as the script itself.
Let me know if you have questions