This module allows You to perform experiments on Your website. You can test for example how Your new ‘Add to Cart’ button performs compared to old one.
I don’t have much time to write long post, so I’ll cut it to most important things. You can download the module here. This module requires UTI to work properly (download it here ). Installation instructions are in .zip file. Here’s how You can use it.
To create experiment follow these steps:
- Go to Admin->Tools->[RT] Groupsets.
- Create groupset (it’s set of groups). Call it ‘Basic Test Groupset’.
- Click on Basic Test Groupset – You will be forwarded to page where You can edit it.
- Each groupset must have EXACTLY one control group. I usually call it ‘Control Group’. Create two groups (you can create as many groups in groupset as You want, but for simplicity We use 2 now):
- Control Group – with id ‘cg’ (as ControlGroup). Check ‘control group’ checkbox
- Test Group – with id ‘tg’. DO NOT check ‘control group’ checkbox.
- Go to Admin->Tools->[RT] Experiments.
- Create Experiment ‘Exp #1′ using groupset ‘Basic Test Groupset’.
Click on Exp #1 – You will be forwarded to its stats:
- Impressions - in this version of Randomized Tests its simply number of visitors in each group
- Customers Registered – (visitor to customer conversion rate) / (change in regard to control group) / (total count of newly registered customers in this group)
- Orders Placed – (visitor to order conversion rate) / as above / (total number of orders visitors in this group placed)
- Items Bought – (avg. size of order) / as above / (total number of items bought)
- Orders Value – (avg. order value) / as above / (total orders value)
Ok, You’ve created experiment, now You have to create two versions of Your page. Let’s assume that You want to change ‘Add to Cart’ button on product_info page. Edit includes/templates/your_template/templates/tpl_product_info_display.php.Find code responsible for displaying ‘Add to Cart’ button – in my case it’s:
Change it to:
// visitor has been assigned to Test Group
echo $display_my_new_button;
} else {
// user is in Control Group – We don’t change anything
echo $display_button;
}
$exp is global variable (it’s instance of ExperimentManager defined in includes/classes/randomized_tests.php) and holds basic information about experiment and group to which has been assigned current visitor
$exp->groupID is ‘id‘ of group that You assigned in step 4. You can use it to detect in which group is current visitor and perform custom action.
You’re done. Wait until experiment becomes statistically significant ( >2000 visitors in each group, many orders ) and check results.

