WP Manifestindependent plugin directory
manifest / analytics / ab-testing-for-wp

A/B Testing for WordPress #7 in Analytics & Tracking

WordPress plugin which allow you to run A/B tests from anywhere within your content.

by CleverNode · github.com/jjj/ab-testing-for-wp · website

61stars
179release downloads
≈10active sites
7forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/jjj/ab-testing-for-wp/releases/download/1.18.2/ab-testing-for-wp.zip

Readme

A/B Testing for WordPress

WordPress plugin which allow you to run A/B tests from anywhere within your content.

Utilize the new Gutenberg editor to create split tests to serve to your visitors and find out which variation works best.

Gutenberg Demo

Installing

  1. Download ab-testing-for-wp.zip found on the latest release
  2. Unzip contents and upload "ab-testing-for-wp" folder to the "/wp-content/plugins/" directory.
  3. Activate the plugin through the "Plugins" screen in WordPress.
  4. You can now add tests to your content!

Requirements

  • At least WordPress 5.0 (uses the new Gutenberg editor)

JavaScript Bundle Development

Requirements: Node.js

Clone the project and npm install.

Use the following commands:

# one time build
npm run build

# development watch mode for JavaScript
npm run dev

# prepare for release (clean, build, archive)
npm run release

Using Docker for development

Requirements: Composer, Docker

# Starting Docker container:
docker-compose up -d

Development WordPress install now runs at localhost:8000

./wp-content of the project root is synced with the development install's wp-content.

Look at docker-compose.yml for database passwords.

Testing and linting

This project is tested using Cypress and linted using eslint. These dependencies get installed with the project automatically.

ESLint

Linting makes sure the code style is in order. This will also be performed on the main repository when creating a pull request.

In order to run linting on your local environment run the following command from the root of the project:

npm run lint

Cypress

Running all end-to-end tests makes sure all functionality is still in place after updates to the code have been made.

Run all tests by entering the following command:

npm run test

There are a few extra command to help you test and develop locally:

# run local test environment and open Cypress
npm run test:dev

# tear down the setup environment and create a new one
npmr run e2e:setup-env

# reset the database to be a fresh WordPress install
npm run e2e:reset-db

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.18.2 Apr 14, 2020 ab-testing-for-wp.zip 27
1.18.1 Apr 14, 2020 ab-testing-for-wp.zip 5
1.18.0 Apr 6, 2020 ab-testing-for-wp.zip 6
1.17.1 Feb 20, 2020 ab-testing-for-wp.zip 5
1.17.0 Feb 13, 2020 ab-testing-for-wp.zip 19
1.16.3 Feb 11, 2020 ab-testing-for-wp.zip 5
1.16.1 Feb 11, 2020 ab-testing-for-wp.zip 5
1.16.0 Feb 4, 2020 ab-testing-for-wp.zip 7
1.15.1 Feb 4, 2020 ab-testing-for-wp.zip 6
1.15.0 Feb 3, 2020 ab-testing-for-wp.zip 5
1.14.3 Jan 28, 2020 ab-testing-for-wp.zip 6
1.14.2 Jan 28, 2020 ab-testing-for-wp.zip 6
1.14.1 Jan 27, 2020 ab-testing-for-wp.zip 6
1.14.0 Jan 27, 2020 ab-testing-for-wp.zip 8
1.13.1 Jan 20, 2020 ab-testing-for-wp.zip 6
1.13.0 Jan 20, 2020 ab-testing-for-wp.zip 6
1.12.4 Jan 13, 2020 ab-testing-for-wp.zip 6
1.12.3 Jan 7, 2020 ab-testing-for-wp.zip 7
1.12.2 Jan 7, 2020 ab-testing-for-wp.zip 6
1.12.1 Jan 6, 2020 ab-testing-for-wp.zip 6
1.12.0 Jan 6, 2020 ab-testing-for-wp.zip 6
1.11.0 Nov 21, 2019 ab-testing-for-wp.zip 6
v1.10.0 Nov 20, 2019 ab-testing-for-wp.zip 14

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.