Randomized Test

Locked

Started by data_digger on 14 Jul 2009, 1:51 PM · Views: 4,006

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
14 Jul 2009, 1:51 PM
#1
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Randomized Test

This is support thread for my new module - Randomized Tests.
Please report here all bugs, installation problems and feature requests

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.
Sample image:http://www.data-diggers.com/contribs/rt/images/experiment_stats_demo.jpg

**Download it here**. - The link points to my website. I'll change it as soon as this module will be added to download area.
This module requires also my **UTI **contribution to work. **Download it here.**

More info (probably screencast) will be later posted on my website: http://www.data-diggers.com

Installation instructions are in .zip file.

To create experimnent follow these steps:

  1. Go to Admin->Tools->[RT] Groupsets.
  2. Create groupset (it's set of groups). Call it 'Basic Test Groupset'.
  3. Click on Basic Test Groupset - You will be forwarded to page where You can edit it.
  4. 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.
  5. Go to Admin->Tools->[RT] Experiments.
  6. Create Experiment 'Exp #1' using groupset 'Basic Test Groupset'.
  7. 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:

echo $display_button;

Change it to:

// $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.
if($exp->groupID == 'tg') {
// 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;
}

You're done. Wait until experiment becomes statistically significant ( >2000 visitors in each group, many orders ) and check results.

16 Jul 2009, 12:14 AM
#3
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Randomized Test

Wow, this looks very impressive. Excellent concept and great to have it built into zencart itself. Gonna have to give it a shot.

16 Jul 2009, 2:25 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Randomized Test

Nice one, a/b split testing inside zen is pretty awesome.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Jul 2009, 7:45 AM
#5
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Randomized Test

Thanks!

I already work on new version - current has one big flaw. It's impossible to treat outliers in some special way (ignore them/assign to special group/...). By outliers I mean:

  • super customers - every site has them ( customers that place - possibly multiple - orders every day and each order is for many items ). Group containing such customer is probably biased.
  • super orders - very large orders that happen rarely / as above
16 Jul 2009, 1:38 PM
#6
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Randomized Test

For the UTI module, should there be a completely new "includes" directory, inside the "includes directory? I'm assuming this directory is duplicated for testing purposes, otherwise it wouldn't be there.

Not completely sure though!

16 Jul 2009, 2:15 PM
#7
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Randomized Test

swamyg1:

For the UTI module, should there be a completely new "includes" directory, inside the "includes directory? I'm assuming this directory is duplicated for testing purposes, otherwise it wouldn't be there.

Not completely sure though!
Files from includes/includes are needed but they should be in includes/ . I've packed uti module again and You can download corrected version from:
http://www.data-diggers.com/contribs/uti/downloads/uti-current.zip
I'm also uploading it to zen cart addons now.

First remove 'includes' directory in 'includes' directory (includes/includes) and then just upload new UTI.

18 Jul 2009, 1:21 AM
#8
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Randomized Test

Hi, I'm wondering if anybody has this running yet... would like to get feedback on how the A/B testing functionality works.

Anybody?

18 Jul 2009, 3:06 PM
#10
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Randomized Test

swamyg1:

Hi, I'm wondering if anybody has this running yet... would like to get feedback on how the A/B testing functionality works.

Anybody?
I do plan to use this on some stores in the next few weeks. I will report back results.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

22 Jul 2009, 12:35 PM
#11
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Randomized Test

New version is available (currently only on my site but it'll be added to Zen Cart site soon).
New version includes:

  • order filter functions
  • customer filter functions
    You can use filter functions to temporarily remove outliers from experiment and recalculate statistics.

For more info please see my blog:
http://www.data-diggers.com/content/randomized-tests-v12-zen-cart-released

18 Aug 2009, 3:43 PM
#12
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: Randomized Test

Just to let you know you've duplicated an SQL query at the end of your install.sql file :-)

3 Oct 2009, 8:51 PM
#14
wilkesy avatar

wilkesy

Zen Follower

Join Date:
Jul 2004
Location:
stroud, gloucestershire
Posts:
198
Plugin Contributions:
0

Re: Randomized Test

Hi,

I have just downloaded this but when i upload the config.rt.php my site doesnt work at all. i just get a blank screen.

any ideas??

Cheers

Even novices can be professionals!

**Funky Fancy Dress**