I’ve already talked about A/B testing plugins for WordPress that make setting up split tests a snap. But what I didn’t go into much detail about is how to actually get started with A/B testing. How does it work? How do you run a test?
As you might’ve guessed, this information is vital for the overall success of your e-commerce store, so let’s spend some time today going over the details.
How A/B Testing Works
A/B testing – or split testing as it’s often called – involves using two different versions of various parts of your website, placing them under a magnifying glass, and evaluating which version is the most successful at bringing in conversions. These aspects of your site could be a bit of copy, the design of a lead generation form, the photos featured, or a multitude of other things.
Some businesses treat A/B testing as optional and that’s just something I don’t understand. If you want to make sure your store is performing as good as it possibly can, split tests give you concrete evidence of what’s working and what’s not. That way, you can make changes and optimize your online store to the best of your ability.
A Simple Startup Guide
To get started with A/B testing, you can use one of several plugins I mentioned in my previous post, or you can skip the potential site lag issues and just use Google Content Experiments. Now, this used to be a separate tool called Website Optimizer but it has since been rolled into the robust tool that is Google Analytics. It does work a bit differently than what you might expect. For instance, Content Experiments allows you to set up five different versions of a page, each of which is shown to visitors on a separate URL.
Let’s say you want to set up a test on your home page. You’d create five different versions of this page and when a visitor goes to your site, Content Experiments would load a version at random. This way, you get a fair assessment of how each version performs.
I highly recommend you review the support documentation for Content Experiments provided by Google to get a sense of the full setup process. Even so, I’m going to review the basics here.
Using Content Experiments with WordPress
But there is a fairly easy fix. It does involve diving into the code a bit but if you want to use A/B testing regularly, it’s going to be well worth the time investment. So, once you’re logged into your WordPress site, open up the original version of the page you want to test. In the URL bar, you should see the post ID. It’ll appear after “post.php?” in the URL as “post=ID” with “ID” being a number. Jot down that number.
Next, download your header.php file. You’ll also want to create a backup of your site at this point. Any time you’re messing with the main theme files, you need to be careful. With header.php open on your desktop in a code editor of your choice, scroll to just below <head> and insert the following bit of code courtesy Stu Miller:
<?php if (is_page(***PAGE ID***) ):?> ***GOOGLECODE*** <?php endif; ?>
From there, you can use the Google Analytics dashboard to set up your actual experiments and track their progress. You can configure all sorts of settings including the length of the experiment, the number of pages to be tested, and more.
If you were feeling a bit discouraged by the prospect of having to do some intensive coding, I hope those fears are now waylaid. Just a little cut and paste ought to do the trick.
Using A/B Testing Plugins
As I mentioned earlier, there are several plugins out there that make it possible to set up and track A/B tests. The four I mentioned in my previous post are all good candidates if you wish to take this approach. Just to refresh your memory, those plugins were Nelio A/B Testing, Marketing Optimizer for WordPress, Convert Experiments by Yoast, and WordPress Calls to Action.
Of course, there are other options out there, too. Let’s take a quick look at two more plugins.
If you want to run landing page split tests, there’s WordPress Landing Pages. This plugin makes it easy to set customized landing page templates, run split tests, and monitor your progress.
Of course, a good bit of trial and error is to be expected here. That’s the nature of split tests and why it’s so important to take the time to do them. Without the information you gather from A/B tests, you won’t know how your site is performing. Period.
There are several ways to conduct A/B tests for websites and to optimize for conversion. But since WordPress is a unique platform, you need to make sure you’re bringing the right tools for the job on board. The Content Experiments tool within Google Analytics is a robust solution – not to mention a free one. And all it takes is a little custom code snippet to get it up and running.
If you’d rather go a more automated approach or don’t use Google Analytics, a plugin may be more suited to your needs. At the end of the day, it comes down to what kind of experience you want as a site admin. What features are necessary for you? Do you want to manage your A/B tests within the dashboard or is that something that doesn’t matter to you? It’s a lot to think about, but definitely worth the investment.
So, what do you think? Feel more confident in setting up an A/B test on WordPress now? If so, be sure to let me know how it goes.
Image Source: mil8