A/B Testing Tutorial
A/B Testing Tutorial
-------------------------------------------------
FREE EBOOKs
Copyright © 2021 by SuSu. All Right Reserved.
TABLE OF CONTENTS
EXAMPLE
Let us assume that there is a web page and all the traffic is
directed to this page. Now as a part of A/B Testing, you
have made some minor changes like headlines, numbering,
etc. on the same page and half of its traffic is directed to the
modified version of this web page. Now you have version A
and version B of the same web page and you can monitor
the visitor’s actions using statistics and analysis to
determine the version that yields a higher conversion rate.
• Sampling of Data
• Confidence Intervals
SAMPLING OF DATA
The number of samples depend on the number of tests
performed. The count of conversion rate is called a sample
and the process of collecting these samples is called as
sampling.
EXAMPLE
EXAMPLE
http://getdatadriven.com
A/B Testing – Why to Use?
A/B Testing is used to make business decisions based on
the results derived from data, instead of just making
predictions. It allows you to create variations of your
website or app and then helps you to confirm or discard your
decision to make changes.
• Headlines
• Sub headlines
• Images
• Texts
• CTA text and button
• Links
• Badges
• Media Mentions
• Social mention
• Sales promotions and offers
• Price structure
• Delivery options
• Payment options
• Site navigations and user interface
BACKGROUND RESEARCH
Background research plays a critical role in A/B Testing.
The first step is to find out the bounce rate of the website.
This can be done with the help of several widely available
background research tools like Google Analytics and others.
COLLECT DATA
Data from Google Analytics can help you to find visitor
behaviors on the websites. It is always advisable to collect
enough data from the site. Try to find the pages with low
conversion rates or high drop-off rates that can be further
improved. Also calculate the number of visitors per day that
are required to run this test on the website.
CONSTRUCT HYPOTHESIS
Once goal and metrics have been set for A/B Testing. The
next step is to find ideas on how to improve the original
version and how to make it better than the current version.
Once you have a list of ideas, prioritize them in terms of
expected impact and difficulty of implementation.
CREATE VARIATIONS/HYPOTHESIS
There are many A/B Testing tools in the market that has a
visual editor to make these changes effectively. The key
decision to perform A/B Testing successfully is by selecting
the correct tool. Some of the most commonly available tools
are −
ANALYZE DATA
Once this experiment is completed, the next step is to
analyze the results. A/B Testing tool will present the data
from the experiment and will tell you the difference between
the performance and efficiency of different versions of a
web page. It will also show if there is a significant
difference between variations with the help of mathematical
methods and statistics.
EXAMPLE 1
Your Cloth store’s business goal is to sell clothes, so the
KPI of this business goal could be the number of clothes
sold online. You need to have your business objectives
clearly defined otherwise you will not be able to identify
your KPI’s. If you set the KPIs correctly and measure them
periodically, you will keep your strategy on track to create
variations and perform A/B Testing. Next is to find the
target metrics for your business goals.
EXAMPLE 2
Your cloth store sold 100 products last week. Is this OK or
bad? For your KPIs to mean something for you, they need
target metrics. Define a target for every KPI that is
important to you. Once you define business goals and target
metrics then you have a framework, which will help to
determine if the work you will be doing is relevant to your
business goals or not.
EXAMPLE
OPTIMIZELY
Optimizely is a tool used to perform A/B Testing,
multivariate testing on a web page or on a mobile app and
allows you to compare different versions of a web page or
an application to determine, which variation provides a
better conversion rate for your business.
HOW IT WORKS ?
CONTENT EXPERIMENTS
Content Experiments is one of the quickest method to test
web pages - landing pages, homepage, category pages and it
requires fewer code implementations. It can be used to
create A/B Tests inside Google Analytics.
• Conversion Rate
• Stop Experiment
• Re-validate
• Disable Variation
• Segmentation − It allows you to see how each
variation has performed for each segment of visitors
on your webpage.
A/B Testing – Analyze
Results
Once the experiment is completed, next step is to analyze
the results. A/B Testing tool will present the data from the
experiment and will tell you the difference between how the
different variations on a web page performs, and also if
there is a significant difference between variations, using the
help of mathematical methods and statistics.
EXAMPLE
If the images on a web page has reduced the bounce rate,
you can decide whether it has a good conversion or not,
once you upload more images on a web page. If you see no
change in the bounce rate because of this, go back to the
previous step and create a new hypothesis/variation to
perform a new test.
Tools like VWO and Optimizely are used to run tests, but
Google Analytics is best suited to run post-test analysis.
This analysis is used to decide the way going forward. A/B
Testing tools tell about the outcome of a test result, but there
is a need to perform post analysis as well. To do post
analysis you need to integrate each test with Google
Analytics.
Both VWO and Optimizely provides built-in Google
Analytics integration capability. The data for each test from
both these tools should be sent to Google Analytics. By
doing this, it enhances your analysis capabilities and ensures
testing data. There is a possibility that your testing tool
might be recording the data incorrectly, and if you have no
other source for your test data, you can never be sure
whether to trust it or not.
A/B Testing – Tools
There are various tools that can be used to generate
hypothesis and to run the variations, these include −
All these tools are capable to run A/B Tests and to find the
winner, but to perform post analysis these tools should be
integrated with Google Analytics.
• Universal Analytics
• Classic Google Analytics
CONFIGURATION STEPS
Optimizely uses Universal Google Analytics' "Custom
Dimensions" to tag your visitors with the experiments and
variations to which they've been added. Configuring
Optimizely to begin sending this information to Universal
Analytics requires four steps −
Step 1
Step 2
Step 3
Select the custom dimension you would like Optimizely to
use. You have to ensure that the Custom Dimension should
not be in use already by any other part of your site, or by
another currently-running Optimizely experiment.
Step 4
Example
ga('tracker3.send', 'pageview');
EXAMPLE
Let us say there is a webpage that has received enough
traffic to run the test. Now the data from each variation is
compared to check the most successful variation, but it also
includes the elements, which have the maximum positive or
negative impact on a visitor's interaction.
EXAMPLE
LIMITATIONS
Limitations of Multivariate testing is the traffic needed to
complete the test. As all the experiments are fully factorial,
too many changing elements at once can quickly add up to a
very large number of possible combinations that must be
tested. Even a site with fairly high traffic might have trouble
completing a test with more than 25 combinations in a
feasible amount of time.
There are four ways that ensure you to run A/B Tests
without worrying about losing the potential SEO Value.
DON’T CLOAK
Cloaking is called when you show one version of your
webpage to Googlebot agent and other version to your
website visitors. Google says that you shouldn’t cloak and is
very strict with this. It can even lead to your website being
excluded from the search results or demoted in SEO
ranking. You have to ensure that you don’t divide your
visitors among the different versions of your A/B Test based
on a user agent. Google doesn’t care if their bot sees one
version or another, it just cares that its bot has the same user
experience as that of a random visitor.
USE ‘REL=CANONICAL’
When you have A/B Tests with multiple URL’s, you can
add ‘rel=canonical’ to the webpage to indicate to Google,
which URL you want to index. Google suggests to use
canonical element and it’s a noindex tag as it is more in line
with its intention. You are only indicating about which
content is original. In this way Google can group and index
pages accordingly.
Note − If it is not possible to use canonical, then you have to
ensure that there is a noindex tag in HTML or HTTP
Header, if not you should ensure it at least has a robots.txt.
If you run the test for a longer period, Google takes this as a
way to fool search engines. This can happen when you are
showing a test variant to a large number of visitors for a
longer period of time.
A/B Testing – Interview
Questions
What do you understand by A/B Testing? What is the goal
behind performing A/B Testing? What do you understand
by data sampling in A/B Testing? What is the use of
Confidence interval in A/B Testing? When should you think
of performing A/B testing? What's multivariate testing, and
how does it compare to A/B testing? How many variables
should I test? Name few of the variations that can be applied
to a web page? Explain the step by step process for A/B
Testing. What are the common type of tools that can be used
to collect data for A/B Testing? What is the purpose of using
Replay tools? Name a few Replay tools for A/B Testing.
Why do we use Survey tools? Give an example of a survey
to collect data. Give a few examples of generating
hypothesis in A/B Testing? What do you understand by
creating variations in A/B Testing? What are the common
tools that can be used for this? What is WYSIWYG editor in
VWO? How do you create variations using that? What are
the other type of testing that can be performed using VWO?
Where else can you use A/B Tests on things other than web
pages? What do you understand by A/B Testing - Analyze
Results? How do you integrate Google Analytics with
Optimizely? What is the difference between Universal GA
and Classic Google Analytics? Does A/B Testing negatively
affect SEO? Explain different ways that ensures to run A/B
Tests without worrying about losing the potential SEO
Value?
Donate link: https://paypal.me/sutranxt