canvass /ˈkanvəs/ verb
- propose (an idea or plan) for discussion
- solicit votes from (electors or members).
You build an experiment by defining when and what different groups of users experience when using your application.
It currently optionally integrates with Qubit for traffic allocation and data tracking, but you can write your own integration if you are using a different a/b testing platform.
- Easy interface for defining and running experiments
- Integrates with Qubit
- Preview mode to let you control experiments when developing and testing
What is an experiment?
An experiment defines what you would like to a/b test, when the experiment should start (called "triggers") and what each group of users should see (called "variants").
npm install skybet/canvass
To start using canvass, simply import it as below and register an experiment.
import canvass from 'canvass'; import Experiment from 'canvass/distribution/Experiment'; ... let myExperiment = new Experiment('MyExperiment', triggers, variants); canvass.addExperiment(myExperiment);
For a full code example, see examples/basic.
Canvass has a few nice features to help you debug your experiments:
To enable debug logging, set the canvassDebug cookie:
Preview mode lets you control which experiments you see using a query string parameter. Some examples include:
See Preview Mode docs for more options.
Seeing Inside Canvass
There is a helpful method on the window that you can use to get a human readable printout of the current status of Canvass and all of the registered experiments:
We are not affiliated or associated in any way with Qubit.