There are two ways to increase the revenue you generate from your website. Either by increasing your sales by increasing the traffic or by actually increasing the conversion rate - i.e. from the people who people who visit your site, increase the number who actually convert to customers. This is why you’ll need WordPress A/B testing.


The best thing about generating more revenue by increasing the conversion rate is that it doesn’t require much additional investment. Increasing the conversion rate will help you to increase the ROI of your online business to a great extent.

Now, let’s get to the point: How would you generate more revenue by increasing the conversion rate? This is where WordPress A/B testing comes in.

A/B testing (also known as split testing) allows you to test different versions of a page to find out which version gives the best results. You can compare between two or more webpages by showing the variants to similar visitors at the same time. Ultimately, the one that gives the better conversion rate wins.

Let’s take a look at how to create WordPress A/B testing.

Boosting Conversion rates

One of the most effective ways of boosting conversion rates is via WordPress popups. We've recently discovered ConvertPlug, which we believe it the best WordPress popup plugin to boost your conversion rates. Why do we say this? Because the flexibility of this plugin allows you to create different types of Calls to Action for every different piece of content and type of visitor that you have. Of course, we all know that CTAs which are relevant to the current content are always the most successful ones. Do yourself a favour and have a look at ConvertPlug.

WordPress A/B testing: Native method using Google Analytics

The below steps will guide you to create WordPress A/B testing without using a plugin.

1. Make sure you’ve installed Google Analytics on your WordPress site. If you’ve not installed it on your site, follow this guide to learn how to install Google Analytics to your WordPress theme.

2. In your Google Analytics account, click the Behavior tab>> Experiments>> Create experiment and configure your experiment.


In this step, you’ll be prompted to provide information like original URL, variation URL and percentage of the traffic you’d like to distribute to the variations.

3. Find the page id of your original page, for which you’d like to conduct A/B test and replace $page_id on the below code with the id of your original page. You can get the page id by navigating to the page or post editor. You can find it in the browser’s address bar. See the screenshot below.

page id

Once you replaced the id, get the experiment code from Analytics and add it to the below code.

<?php if (is_page($page_id)) :


Add Content Experiment Code Here

<?php endif; ?>

4. Save this code to header.php file and click Next>>Start experiment in Google Analytics.

experiment 4

If you’re building landing pages using Thrive Landing Pages plugin, it’s very easy to conduct A/B tests using Google Analytics. Simply copy the code snippet and paste it to your control page in the Thrive content builder under custom scripts. Read more about Thrive Themes on our review here.

You can paste the code from the experiment in the top field.

Once done, save the changes and publish the page.

Free plugin: Simple Page Tester

Simple Page Tester is an easy to use WordPress plugin that help you run split test in WordPress without having to edit any code manually. Best of all, it is compatible with Google Analytics.

Using the Simple Page Tester plugin, you can create the split test in just 3 steps.

  1. Once you installed the plugin navigate to the edit screen of the page where you would like to run a split test
  2. Click Setup Split test
  3. Create a new split test and edit your variation

Once done, you can access the test results right from the dashboard.

As it is a free plugin, it comes with a few limitations. Below are some of them.

Unable to declare a winner using the free plugin: Unless you use the pro version of the plugin, you can’t declare a winner.

Test is limited to 2 pages: It only allows you to test between 2 pages.

Premium Plugin: Split test URL Rotator

Split test URL Rotator plugin does exactly what the name says. It distributes the traffic between the original (control) and the variations according to the specified weighting.

Below are a few benefits.

  • Unlimited number of URLs to test: You can conduct split tests to compare any number of URLs.
  • Test anything: Be it a headline, design elements, call to actions or copy, you can test anything and everything to see which version perform the better.
  • One-time fee: Unlike other split testing plugins, it’s based on one-time fee not subscription based. You can buy it for just $18.

You can download the split test URL rotator here.

Download the list of 101 WordPress tricks every blogger should know

101 WordPress tricks

Click here to Download Now

About the Author
Author: Shahzad Saeed

One more thing... Did you know that people who share useful stuff like this post look AWESOME too? ;-)
Please leave a useful comment with your thoughts, then share this on your Facebook group(s) who would find this useful and let's reap the benefits together. Thank you for sharing and being nice!

Featured On

Inc Magazine Logo  

Sitepoint logo  

CSS Tricks logo   

webdesignerdepot logo   WPMU DEV logo   

and many more!



Get Started Now With ShutterstockShutterstock

Best Rated Caching Plugin

Make your website faster 

Monstrous B-Day Party

CLICK HERE for discounts!

Monstrous bday party

How to make your website FAST!

Step-by-step - free email course, how to make your website load in less than 1 second 


The Outstanding HungryJPEG Bundles

AWESOMENESS! Bundles of premium font + graphic packs at more than 96% OFF!  Get a bundle for just $9 - ONLY!

The Hungry JPEG Awesome font bundles


Work with

CollectiveRay (formerly known as DART Creations) is interested in developing partnerships with mutual benefit. If you like the stuff we publish and would like to develop a relationship, we'd be happy to hear from you. Go on - drop us a line - we'd love to hear from you :-)


Disclosure: CollectiveRay is funded personally out of pure passion for helping people working with websites. We do however generate some income through recommendations of products. This means if you click on a link and purchase an item we link to, we will receive a small sum out of that sale. We usually partner with vendors to make your purchase cheaper than buying direct.


InMotion Hosting CollectiveRay Deal

who are we?

CollectiveRay is run by David Attard - working in and around the web design niche for more than 12 years, we provide actionable tips for people who work with and on websites. We also run - a website for drone hobbyists.

David attard

Follow us on Social

Follow us on Facebook   Subscribe to our RSS Feed   Follow us on Twitter


Where are we hosted?

This site is proudly powered by FAST VPS InMotion Servers and given an insane speed thanks to StackPath CDN!

Web Hosting stackpath