This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

A/B Testing for WordPress


Easiest way to create split tests on your WordPress sites, right from the content editor!

Improve your website and start measuring your audience now.

Create A/B tests right in the content editor. Test which button colour works best, what content drives people to engage, anything you can imagine!

Add A/B Tests from Anywhere in the Content Editor

A/B Testing for WordPress allows you to create split tests right from the visual content editor. Measures the results of your tests and shows you which variant is the most popular choice.

You add a block to your content which you can fill with anything you want to, and switch between variants instantaneously to preview what visitors will see. Define distribution weight, pick the goal of the test, and off you go!

Place tests inside posts, pages, custom post-types, or any part of your template using shortcodes.

Safe for SEO

Everything has been implemented with SEO in the back of the mind, which means the plugin will do nothing to affect your SEO. It works just like most A/B testing tools out there, but natively from your own WordPress site without the use of 3th-party services.

Measure Results

A/B Testing for WordPress provides an overview of running tests and the measured results. It also shows the statistical significance of the test results so you can be confident a test is successful or not.

When you are done running your tests and can come to a conclusion you can break the winning variant out of the test and remove the test from the content with just one click.

Integrates with Other Plugins

A/B Testing for WordPress integrates with other WordPress plugins. This provides a streamlined experience to test variations of what the integrated plugin has to offer. Think form submissions, sign ups, product sales.

Integrates with Mailchimp for WordPress, HTML Forms, Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Formidable

Test Your Visitors Right Now!

Start measuring what works best on your site without all the hassle!


  • Creating an A/B Test in the post editor
  • Testing the variants on your website
  • Creating an A/B Test in the post editor (still)
  • Overview of running tests
  • Integration with HTML Forms


This plugin provides 3 blocks.

  • A/B Testing for WordPress
  • A/B Testing for WordPress
  • A/B Testing for WordPress


  1. Upload “ab-testing-for-wp” folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. You can now add tests to your content!


Is A/B Testing for WordPress free to use?

Yes, totally. And also no sign up for 3th-party services needed.

How does A/B Testing for WordPress measure tests?

When a visitor sees a test variant the visitor will be remembered as a participant of that variant. When the visitor visits the goal page of the test, the visitor will also be logged as a conversion of the variant.

A/B Testing for WordPress will calculate the percentage of the participants who became conversions and determines a winning variant through these numbers.

You can setup pages, posts and outbound links as goals. A/B Testing for WordPress also integrates with popular plugins.

Does A/B Testing for WordPress affect SEO?

No. Only the control version of your test is shown to search engines and website caches. The variant which the visitor will see is replaced on the fly using JavaScript.

A/B Testing for WordPress does not treat a search engine any different from a human visitor.

Does A/B Testing for WordPress allow weight distribution?

Yes. You can change the amount of visitors which should see each variant.

Can I convert existing content into an A/B test?

Yes. Existing content blocks can be converted into A/B tests in the editor. You can find this options under “more options” of your blocks. It will take your block and wrap it in an A/B test and put a copy of the block in both variants.

How can I force a visitor to be placed in a variant of a test?

You can add conditions for variants. Visitors with your determined conditions in the URL will be placed in the test variant of your choice. Next time they visit the URL without the parameters, they will still be in the same variation of the test you placed them in.

What does A/B Testing for WordPress count as a goal?

You can pick and post, page, or outbound links as a goal to track. Counting custom post types as conversion is not possible (yet).

A/B Testing for WordPress also integrates with popular plugins which can be setup as goals.

How Can I Add a Test to my Site?

You can enter tests right in the content of your pages and posts through the editor.

Or create a separate test which you can place anywhere on your site using a shortcode. Works with any template!

How can I contribute to this plugin?

You can find the source and repository over at GitHub.


November 5, 2019 1 reply
This amazing block is not only good way to test variations, but also it’s so well done that I’m forking it as a “base” for my own “containers blocks” plugins – e.g. really adaptive images (different images on different media query) or just as a container/ wrapper block for different media’s. Hope You’ll add a proper link for donations 🙂
April 1, 2019
While the current version is still pretty basic in functionality, the potential is huge. Knowing the dev first hand I’m confident that installing this plugin is simply the smart thing to do when you are looking for something similar.
March 27, 2019
I’ve had the idea for an A/B testing plugin for WordPress for years and shared it with Gaya a few weeks ago. Not saying he got the idea from me, he may have already been thinking along the same lines. Given his experience with A/B testing tools in other website builders, he had a first prototype ready just a few days later. And it’s good! This is already a great tool to test variations of your content to see what drives the result you’re looking for. And it’s been improving steadily over the last few weeks. Knowing Gaya and his iterative approach to building great and usable software (e.g. Thyme), I can’t see how this will not be a success.
Read all 5 reviews

Contributors & Developers

“A/B Testing for WordPress” is open source software. The following people have contributed to this plugin.


“A/B Testing for WordPress” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “A/B Testing for WordPress” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Added max length for varchar fields in utf8mb4 enabled databases


  • Added database repair tool


  • Made the plugin compatible with WordPress 5.4


  • Minor bug fixes


  • Allow forced variation placement through query parameters


  • Exclude .zip from release
  • Fix integration tracking of goal (thank you @jeffreyvr)


  • Adhere to DoNotTrack settings (use ab-testing-for-wp_dnt filter to disable)


  • Allow concurrent cookie handling


  • Start and stop tests from the test overview
  • Various UI improvements and bug fixes


  • Pre-render picked variants without making a round trip to the server
  • Bug fixes for querySelectors


  • Added text-domain to translation strings


  • Show outbound conversion goal on overview page


  • Ability to track outbound links as a goal


  • Removes tests from bundled plugin zip


  • Adds e2e testing for development
  • Bunch of bug fixes discovered through e2e testing
  • Updated dependencies


  • Fixed bug where how to page disappeared


  • Bug fix where pages without any test would throw errors in the admin bar


  • Bug fix for displaying unicode UTF-8 charset in XHR results


  • Updated styles for variant selector


  • Converted code base to TypeScript


  • Updated npm dependencies
  • Improved code quality
  • Deploys now through GitHub actions


  • Ability to convert existing blocks to tests


  • Fix hardcoded ‘wp_ab_testing_for_wp_variant’ table name causing errors


  • Allows to create separate tests which can be added anywhere
  • Improved in editor test rendering
  • Improved A/B tests overview


  • Added integrations for Ninja Forms, Gravity Forms, WPForms, and Formidable
  • Fixed rare race condition in cookie setting


  • Shows statistical significance of the results in the overview and test settings so you can be confident that the results can be trusted


  • Added integrations with HTML Forms, Mailchimp for WordPress, and Contact Form 7


  • Ability to pick posts and pages as conversion goals


  • Onboarding tour for first time users


  • Ability to declare a winner of the test. Replacing the test block with the winning variant’s content


  • Instant variant previews from the admin bar
  • Bug fix saving post revisions
  • Update plugin site address


  • Updated assets
  • Minor fixes


  • Initial release