A/B config

Administration tools ::: tool_abconfig
Maintained by Catalyst IT, Brendan Heywood, Peter Burnett
A way to A/B test config, or slowly turn on config for certain audiences or % of traffic.
Latest release:
27 sites
87 downloads
3 fans
Current versions available: 1

A way to A/B test config, or slowly turn on config for certain audiences or % of traffic.

Configuration

Visit the Site Administration menu and navigate to Plugins->Admin Tools->Manage Experiments. This page allows you to add new experiments, as well as edit existing experiments. To add a new experiment, fill in the fields, and click 'Add Experiment'. To edit the details of an existing experiment, click on the Edit link inside of the experiments table, to go to the edit page.

Scopes and audiences

The plugin currently has two scopes that experiments can lie under, Request scope and Session scope.

Request scope

Request scope experiments are run on every http request. Any request scope will treat a new page load as a new experiment call, and so a new set of conditions will be decided on. This means that behaviour can vary between loads of Moodle, so be careful when putting changes here that will affect a user's experience, as this may lead to an inconsistent experience for users. This includes each request including ajax calls within a single html page load.

Session scope

Session scope experiments are called when a user logs into the site. At this time, a condition set will be decided on, and users will continue to have that condition set applied for the length of their session. This does not apply to guest users, only logged in users. When a user logs out, and logs back in, a new set of conditions is applied to the account, which may be the same condition set.

Conditions

Each experiment can have multiple condition sets avaiable, of which 1 is applied to a given user at a given time. The condition set is picked based on the weighting you specify when creating the condition, which corresponds to the % of users that it applies to.

IP Whitelist

In this condition, an IP whitelist can be specified, and any users that have an IP that matches the whitelist, will not have this condition applied to them if this is the condition set that is selected. Instead, no action will be taken for that user.

Experiment Commands

Here is where the commands for a condition set can be specified. These are applied sequentially right after loading Moodle. Each command should be on a newline. A list of valid commands is below:

CFG

This command sets moodle core configurations to a specified value.

Note: CFG and forced_plugin_setting commands will not overwrite config set inside config.php by design as a security measure.

CFG,config,value
CFG,passwordpolicy,1
forced_plugin_setting

This command sets a plugin configuration to a specified value.

forced_plugin_setting,plugin,config,value
forced_plugin_setting,auth_manual,expiration,1
http_header

This command sends HTTP headers during the page load.

http_header,header,content
http_header,From,example@example.org
error_log

This command logs the given messages into the PHP error_log for the webserver.

error_log,message
error_log,error message
js_header

This command runs small JavaScript chunks just before the page headers are sent.

js_header,javascript
js_header,console.log('example');
js_footer
js_footer,javascript
js_footer,console.log('exmaple');

This command runs small JavaScript chunks just before the page footer is sent.

For more information, consult the README file.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Catalyst IT (Lead maintainer)
Brendan Heywood: Solutions Architect
Peter Burnett: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Паказаць каментары
Please login to post comments