WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Do A/B Split Testing in WordPress using Google Optimize

How to Do A/B Split Testing in WordPress using Google Optimize

Last updated on November 19th, 2018 by Editorial Staff
538 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Do A/B Split Testing in WordPress using Google Optimize

Do you want to run A/B split tests on your WordPress site to improve conversions? Split testing helps you understand how small changes in content and design affect user behavior. In this article, we will show you how to easily do A/B split testing in WordPress using Google Optimize.

Split testing in WordPress using Google Analytics

What is A/B Split Testing?

A/B split testing is a technique that allows you to compare two versions of the same web page against each other, so you can determine which one performs better and produces better results.

Marketers use A/B split testing for their landing pages to find out which one gets them more conversions and sales.

Split testing can be used to test any element on the page including call-to-action buttons, color schemes, layout changes, marketing text, images, and more.

How A/B Split Testing Works?

Basically, you show different variations of a page to your audience. After that, you track user engagement and conversions to find out which variation gives you the best results.

How split testing works

Preparing for A/B Split Testing

Before we move forward, there are a few things you would need for this tutorial.

First, you will need MonsterInsights plugin. For more details, see our step by step guide on how to install a WordPress plugin.

MonsterInsights is the best Google Analytics plugin for WordPress. You’ll need at least their Pro plan in order to access Google Optimize addon which we will be using in this tutorial.

If you haven’t already done so, then you need to sign up and install Google Analytics in WordPress.

Lastly, you will need Google Optimize. It is a free tool that allows you to run split testing experiments on your website. We will show you how to set it up in the next step.

Ready? Let’s get started.

Setting up Google Optimize in WordPress

First, you need to visit the Google Optimize website to create your account.

Get started with Google Optimize

Follow the on-screen instructions, and you will reach your account dashboard. Google Optimize will automatically create an Account and a Container for you.

Next, you need to connect your Google Optimize account to the Google Analytics property of your website. To do that, click on ‘Link to Google Analytics’ tab from the right-hand column.

Link Google Analytics property

Clicking on the button will show all Google Analytics properties available under your Google account. You need to select the one associated with your website.

Select and link property

Next, click on the Link button to continue.

Google Optimize will now connect to your Google Analytics property. This will allow Google Optimize to share data with Google Analytics which you can then view in your reports.

Now, it is time to create your first experience. Click on the ‘Create Experience’ button to continue.

Create experience

You will now be asked to provide a name for your experience and enter the URL of the page where this experience will run.

Experience detail

You will also be asked to choose a type for your experience. You need to select A/B test and then click on the ‘Create’ button to continue.

Optimize will now create your experience, and you will be redirected to the experience page. It will automatically show the original page as your first variation.

Create variant

You need to click on the add variation button to create a new version. Optimize will ask you to provide a name for this variation. It is a good practice to use a name that reflects the changes you are going to apply in this variation.

Variant name

Click on the Done button to continue.

Optimize will now list your new variation on the experience page. Click on the ‘0 changes’ link next to your new variation to edit it.

Change variation

Google Optimize will now open the page where you want to run the test with a powerful editor. It is a simple drag and drop tool that you can use to make changes to your page.

Edit variation

You can just point and click on any element in your page to make changes. For the purpose of this tutorial, we are going to change the color of our main call to action button.

After you have made the changes that you want to test, you need to click on the ‘Done’ button to exit the editor.

You will now see your new variation listed with the number of changes you made to it.

Changed variation

You can continue editing or add another variant to your experience.

After that, you need to select an objective for your experience. Just below the variants you will see the option to select experience objective.

Experience objective

Clicking on it will open views from your Google Analytics reports.

If you are already using goals and events, or eCommerce tracking, then you will see them listed there.

After selecting objective, you can enter a hypothesis about what you are testing and what you are expecting from this experiment.

Your experience is almost ready but first, you need to connect Google Optimize with MonsterInsights.

Connecting Google Optimize to MonsterInsights

MonsterInsights helps you easily connect your WordPress site to Google Optimize.

First, you need to visit Insights » Addons page in your WordPress admin area. From here, you need to install and activate the ‘Google Optimize’ addon.

Google Optimize addon for MonsterInsights

Upon activation, you need to visit Insights » Settings page and switch to the tracking tab. From here you need to scroll down and click on the Google Optimize tab.

Google Optimize settings in MonsterInsights

Now you need to provide your Google Optimize container ID. You can find this information under your Google Optimize account by clicking on the ‘Container Setup’ tab in the right column.

Container ID

Copy and paste your container ID in MonsterInsights’ Google Optimize settings page and then click on the ‘Save changes’ button to store your settings.

That’s all you have successfully installed Google Optimize on your website and you are now ready to run your experiments.

Scheduling and Running Your A/B Split Test

Now that everything is in order, you are ready to schedule and run your A/B split test.

Switch to Google Optimize dashboard and open your experience. From here you can just go ahead and click on the ‘Run Experiment’ button to manually launch it.

Run experiment

You can also click on the ‘Create Schedule’ button to set up a schedule for your experiment. Make sure you provide enough time for the experiment to collect visits and data.

Viewing Your A/B Split Testing Reports in Google Optimize

Google Optimize will now show different variations of your page to users and start collecting data. After it has collected enough data, you can view the results under the reporting tab.

Split test reporting

It will show how each variant performed based on the experiment objective (Google Analytics goals, event, or views you selected).

Google Optimize reports

We hope this article helped you learn how to do A/B split testing in WordPress using Google Analytics and Google Optimize. You may also want to see our guide on how to convert WooCommerce visitors into customers.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

538 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

1 Comment

Leave a Reply
  1. Sysamic says:
    Nov 28, 2018 at 5:51 am

    A/B Split testing is one of the fine methods to test the maximum outreach of the call to action button employed on an image, webpage or website.

    You explained very well.

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WPForms Logo
WPForms
Drag & Drop WordPress Form Builder Plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
MainWP
MainWP Coupon
Get 15% OFF on MainWP WordPress multisite manager plugin.
Web Hosting Hub
Web Hosting Hub Coupon
Get 44% off Web Hosting Hub hosting plans.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.