Altis Experiments
Web Experimentation framework based on Altis Analytics
★ 11stars
35kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/experiments/archive/refs/heads/master.zipAlso on Packagist as altis/experiments:
composer require altis/experimentsFrom the readme
Altis Experiments
Web Experimentation framework for Altis.
Features
The plugin currently provides the following built in features:
Post Title A/B Tests
With this feature enabled it's simple to create A/B Tests for your post titles directly from the post edit screen.
It is enabled by default but can be disabled using the following filter:
Posts and pages are supported by default however you can add support for custom post types using the following code in a plugin or your theme's functions.php:
Usage
The plugin provides a programmatic API to register custom A/B Tests for post data:
registerpostabtest( string $testid, array $options )
Sets up the test.
- $testid: A unique ID for the test.
- $options: Configuration options for the test.
- label : A human readable label for the test.
- restapivariantsfield : The field name to make variants available at.
- restapivariantstype : The data type of the variants.
- goal : The conversion goal event name, eg "click" or "click:.selector a".
- goalfilter : Elasticsearch bool query to filter goal results. If a callable is passed it receives the test ID and post ID as arguments.
- queryfilter : Elasticsearch bool query to