This repository contains all the elements to create a url randomisation for experiments on the web.
-
Download and unzip the repository
-
Open 'websites.php'.
-
Follow the directions within the file:
- Replace the example websites with your own.
- Balance the weight of the randomisation by duplicating the url. If google.com appears 2 times and apple.com 1 time, then google.com is two times more likely to be the chosen link by the redirection script.
- Save the file.
-
Upload the two files to your server.
-
Point your participants to https://your-domain.com/random-script.php.
-
Each time you'll visit the above url, you'll be randomly redirected to the websites whose url you wrote in 'websites.php'.
==DON'T CHANGE THE NAME OF "WEBSITES.PHP”==