Simple A/B Testing is a plugin for Matomo to do A/B testing experiments through Matomo.
The plugin depends on Matomo Tag Manager, as the experiments are added as a Tag in Matomo Tag Manager.
The plugin sends events to Matomo:
- Event category: "SimpleABTesting".
- Event action: Experiment: NAME_OF_EXPERIMENT.
- Event names: original or variant (the experiment).
- Event value: 1 (same for original and variant).
- From Dashboard -> Simple A/B Testing -> Create a new experiment.
- Set a name for the experiment.
- Insert custom CSS or JS for the variant.
- In your Matomo Tag Manager container, create a new tag - choose "Simple A/B Testing".
- Set a name for the tag
- Add description (optional)
- At "Configure what this tag should do", choose the the experiment you want to add.
- At "Configure when the tag should do this", choose a trigger (Pageview works fine).
- Click "Create new tag"
- Publish the change of your container.
- Test it!
We are still working on for getting reports into the plugin. For now, you could get some clue what is going on while checking into events.
The plugin sets a cookie prefixed with the "sabt_" and then the experiment name. If the experiment is named "redbutton", the cookie will be named sabt_redbutton
. The cookie lives until the end of the experiment.
You can add and delete experiments with Matomo API.
SimpleABTesting.insertExperiment
(idSite, name, hypothesis, description, fromDate, toDate, cssInsert, customJs)SimpleABTesting.deleteExperiment
(id)
Out of the box, this plugin does not store any personal information. With that said, with using JavaScript within an experiment, personal data could be stored somewhere else.
This is a fork of the original Simple A/B testing-plugin.