Smashing Magazine
The Ultimate Guide To A/B Testing
A/B testing isn’t a buzz term. A lot of savvy marketers and designs are using it right now to gain insight into visitor behavior and to increase conversion rate. And yet A/B testing is still not as common as such Internet marketing subjects as SEO, Web analytics and usability. People just aren’t as aware of it. They don’t completely understand what it is or how it could benefit them or how they should use it. This article is meant to be the best guide you will ever need for A/B testing.
[By the way, did you know we have a free Email Newsletter? Subscribe now and get fresh short tips and tricks in your inbox!]
What Is A/B Testing?
At its core, A/B testing is exactly what it sounds like: you have two versions of an element (A and B) and a metric that defines success. To determine which version is better, you subject both versions to experimentation simultaneously. In the end, you measure which version was more successful and select that version for real-world use.
This is similar to the experiments you did in Science 101. Remember the experiment in which you tested various substances to see which supports plant growth and which suppresses it. At different intervals, you measured the growth of plants as they were subjected to different conditions, and in the end you tallied the increase in height of the different plants.
A/B testing on the Web is similar. You have two designs of a website: A and B. Typically, A is the existing design (called the control), and B is the new design. You split your website traffic between these two versions and measure their performance using metrics that you care about (conversion rate, sales, bounce rate, etc.). In the end, you select the version that performs best.
What To Test?
Your choice of what to test will obviously depend on your goals. For example, if your goal is to increase the number of sign-ups, then you might test the following: length of the sign-up form, types of fields in the form, display of privacy policy, “social proof,” etc. The goal of A/B testing in this case is to figure out what prevents visitors from signing up. Is the form’s length intimidating? Are visitors concerned about privacy? Or does the website do a bad job of convincing visitors to sign up? All of these questions can be answered one by one by testing the appropriate website elements.
Even though every A/B test is unique, certain elements are usually tested:
- The call to action’s (i.e. the button’s) wording, size, color and placement,
- Headline or product description,
- Form’s length and types of fields,
- Layout and style of website,
- Product pricing and promotional offers,
- Images on landing and product pages,
- Amount of text on the page (short vs. long).
Create Your First A/B Test
Once you’ve decided what to test, the next step, of course, is to select a tool for the job. If you want a free basic tool and don’t mind fiddling with HTML and JavaScript, go with Google Website Optimizer. If you want an easier alternative with extra features, go with Visual Website Optimizer (disclaimer: my start-up). Other options are available, which I discuss at the end of this post. Setting up the core test is more or less similar for all tools, so we can discuss it while remaining tool-agnostic.
You can set up an A/B test in one of two ways:
- Replace the element to be tested before the page loads
If you are testing a single element on a Web page—say, the sign-up button—then you’ll need to create variations of that button (in HTML) in your testing tool. When the test is live, the A/B tool will randomly replace the original button on the page with one of the variations before displaying the page to the visitor. - Redirect to another page
If you want to A/B test an entire page—say, a green theme vs. a red theme—then you’ll need to create and upload a new page on your website. For example, if your home page ishttp://www.example.com/index.html, then you’ll need to create a variation located athttp://www.example.com/index1.html. When the test runs, your tool will redirect some visitors to one of your alternate URLs.
Once you have set up your variations using one of these two methods, the next step is to set up your conversion goal. Typically, you will get a piece of JavaScript code, which you would copy and paste onto a page that would represent a successful test were a visitor to arrive there. For example, if you have an e-commerce store and you are testing the color of the “Buy now” button, then your conversion goal would be the “Thank you” page that is displayed to visitors after they complete a purchase.
As soon as a conversion event occurs on your website, the A/B testing tool records the variation that was shown to the visitor. After a sufficient number of visitors and conversions, you can check the results to find out which variation drove the most conversions. That’s it! Setting up and running an A/B test is indeed quite simple.
Do’s And Don’ts
Even though A/B testing is super-simple in concept, keep some practical things in mind. These suggestions are a result of my real-world experience of doing many A/B tests (read: making numerous mistakes).
Don’ts
- When doing A/B testing, never ever wait to test the variation until after you’ve tested the control. Always test both versions simultaneously. If you test one version one week and the second the next, you’re doing it wrong. It’s possible that version B was actually worse but you just happened to have better sales while testing it. Always split traffic between two versions.
- Don’t conclude too early. There is a concept called “statistical confidence” that determines whether your test results are significant (that is, whether you should take the results seriously). It prevents you from reading too much into the results if you have only a few conversions or visitors for each variation. Most A/B testing tools report statistical confidence, but if you are testing manually, consider accounting for it with an online calculator.
- Don’t surprise regular visitors. If you are testing a core part of your website, include only new visitors in the test. You want to avoid shocking regular visitors, especially because the variations may not ultimately be implemented.
- Don’t let your gut feeling overrule test results. The winners in A/B tests are often surprising or unintuitive. On a green-themed website, a stark red button could emerge as the winner. Even if the red button isn’t easy on the eye, don’t reject it outright. Your goal with the test is a better conversion rate, not aesthetics, so don’t reject the results because of your arbitrary judgment.
Do’s
- Know how long to run a test before giving up. Giving up too early can cost you because you may have gotten meaningful results had you waited a little longer. Giving up too late isn’t good either, because poorly performing variations could cost you conversions and sales. Use a calculator (like this one) to determine exactly how long to run a test before giving up.
- Show repeat visitors the same variations. Your tool should have a mechanism for remembering which variation a visitor has seen. This prevents blunders, such as showing a user a different price or a different promotional offer.
- Make your A/B test consistent across the whole website. If you are testing a sign-up button that appears in multiple locations, then a visitor should see the same variation everywhere. Showing one variation on page 1 and another variation on page 2 will skew the results.
- Do many A/B tests. Let’s face it: chances are, your first A/B test will turn out a lemon. But don’t despair. An A/B test can have only three outcomes: no result, a negative result or a positive result. The key to optimizing conversion rates is to do a ton of A/B tests, so that all positive results add up to a huge boost to your sales and achieved goals.
Classic A/B Testing Case Studies
Here are some case studies to give you an idea of how people test in the wild.
Writing Decisions: Headline Tests on the Highrise Sign-Up Page
37signals tested the headline on its pricing page. It found that “30-Day Free Trial on All Accounts” generated 30% more sign-ups than the original “Start a Highrise Account.”
“You Should Follow Me on Twitter Here” (Dustin Curtis)
This much-hyped split-test involved testing multiple versions of a call to action for Twitter followers. Dustin found that “You should follow me on Twitter here” worked 173% better than his control text, “I’m on Twitter.”
Human Photos Double Conversion Rates
A surprising conclusion from two separate A/B tests: putting human photos on a website increases conversion rates by as much as double. Scientific research backs this up, saying that we are subconsciously attracted to images with people.
Google Website Optimizer Case Study: Daily Burn, 20%+ Improvement (Tim Ferriss)
A simple variation that gave visitors fewer options too choose from resulted in a 20% increase in conversions. The winning version was also much easier on the eye than the control in its detail and text.
Two Magical Words Increased Conversion Rate by 28%
The words “It’s free” increased the clicks on this sign-up button by 28%, illustrating the importance of testing call-to-action buttons and how minor changes can have surprisingly major results.
Changing the Sign-Up Button from Green to Red
Along with its other A/B tests, CareLogger increased its conversion rate by 34% simply by changing the color of the sign-up button from green to red!
Single page vs. multi-step checkout
If you have an online store, it is quite common to see visitors abandoning the purchase process at the time of checkout. This A/B test found out that a single page checkout process works much better at completing sales than multiple-page checkout process.
"Mad Libs" style form increases conversion 25-40%
Defeating conventional wisdom, in this A/B test it was found out that a paragraph-styled form with inline input fields worked much better than traditional form layout. Though the result was probably specific to their offering as it wasn’t replicated in another, separate A/B test.
Complete redesign of product page increased sales by 20%
A software product company redesigned their product page to give it a modern look and added trust building elements (such as seals, guarentees, etc.). End result: they managed to increase total sales by 20%. This case study demonstrates the effect of design on sales.
Marketing Experiments response capture case study – triple digit increase in conversions
Through a series of A/B tests they optimized the mailing list opt-in rate by 258%. Focus was to remove all distractions and require the visitor to only provide email address. For completing his/her complete profile, the landing page motivated the visitors with an Amazon gift card (which was again split tested).
Tools For A/B Testing
A number of tools are available for A/B testing, with different focuses, price points and feature sets. Here are some:
- Google Website Optimizer
A free A/B testing tool from the search giant. A great option to get started, but lacks advanced features. - A/Bingo and Vanity
Server-side frameworks for Ruby on Rails developers. Requires programming and integration in code. - Visual Website Optimizer
An easy-to-use A/B testing tool, with advanced features such as WYSIWYG editor, click maps, visitor segmentation and tag-less integration. (Disclaimer: my start-up.) - Unbounce and Performable
Landing-page creators with integrated A/B testing. - Vertster, SiteSpect, Webtrends Optimize and Omniture’s Test&Target
Enterprise testing tools.
Resources For Deep-Diving Into A/B Testing
If you’ve read this far, then A/B testing has presumably piqued your interest. Here, then, are some cherry-picked resources on A/B testing from across the Web.
Get Ideas for Your Next A/B Test
- Which Test Won?
A game in which you guess which variation won in a test. - 101 A/B Testing Tips
A comprehensive resource of tips, tricks and ideas. - ABtests.com
A place to share and read A/B test results. - A/B Ideafox
A search engine for A/B and multivariate case studies.
Introductory Presentations and Articles
- Effective A/B Testing
By Ben Tilly. - Practical Guide to Controlled Experiments on the Web (PDF)
From Microsoft Research. - Introduction to A/B Testing
From the 20bits blog
The Mathematics of A/B Testing
- Statistics for A/B Testing
From the 20bits blog. - How Not to Do A/B Testing
- What You Should Know About the Mathematics of A/B Testing
From my own blog. - Easy Statistics for AdWords A/B Testing, and Hamsters
- Statistical Significance and Other A/B Test Pitfalls
(al)
Paras Chopra is founder of Visual Website Optimizer. It provides a WYSIWYG designer for creating test variations and requires no page tagging or code hassles for integration. It has advanced features such as multiple conversion goals, heatmap and clickmap reports, visitor segmentation, CSS/JQuery testing, team-collaboration and you can test multiple page elements (e.g. headline, buttons, description, images, etc.) all at once.
- 63 Comments
- 1
- 2
June 24th, 2010 2:25 am“no words can describe the excellent post !”
thanks alot - 3
June 24th, 2010 2:34 amGreat guide, Paras!
- 4
June 24th, 2010 2:40 amThanks Martin. Glad you liked it :)
- 4
- 5
June 24th, 2010 2:40 amI really liked these case studies – make for great reading and inspiration.
- 6
June 24th, 2010 2:46 amHow can it be an ultimate guide without even mentioning local minima/maxima in passing?
And I disagree with the notion that you should never let artistic vision trump the results of a test. Artistic vision often includes knowledge of where things will be going in the future and you shouldn’t let a paltry 5% improvement get in the way of that.
- 7
June 24th, 2010 3:18 amThe issue of minima and maxima is not crucially important, in my opinion. That’s because A/B testing is a methodology which lets you do any time of test you want to perform. Though I agree you may want to do both: small changes and radical changes in order to see if you are truly optimizing global maxima.
Well, artistic sense over test results is a subjective opinion! Though my own preference is to always let data speak for itself.
- 8
June 24th, 2010 10:00 amInteresting, I think this comes down to the debate between the marketer and the designer. And it will always be a great debate. There is value on both sides. It’s finding common ground and a compromise between them both. Ultimately – the data should speak for itself…and ultimately, it’s the data that SHOULD guide the designer to understand what should be kept in mind for the future .. not just in the way of aesthetics but also when taking usability, conversions and overall success into account.
- 9
June 27th, 2010 1:46 amThis sounds a bit like someone with a hammer trying to turn every problem into a nail. A/B testing is great for certain very narrow, *but critical* channels of user experience — also for domains that are more or less traditional and fixed in their expected format. At the level of strategy, over-all site orientation and high-level goals, though, A/B tests are the equivalent of using a narrow beam flashlight to look for something that you don’t really know the size or contours of, somewhere in North America, in the dark (their search is ultra-focused, binary and random or grouped around the current location). It has its place and we need good tools, but please don’t make it out to be the answer for all things UX just because it’s your baby. (By the way, I think A/B testing is a mighty fine hammer, there just needs to be some balance in its application and the evangelism surrounding it.)
- 8
- 7
- 10
June 24th, 2010 2:54 amInteresting…very use-full article
thanks for sharing paras - 11
June 24th, 2010 2:54 amGreat article!
how about more UX case studies. I think it would be great.Thanks
- 12
July 6th, 2010 3:51 pmParas – Thanks for mentioning our WhichTestWon.com site as one of your favorites for more testing info. Currently we have 65 a/b test and multivariate testing Case Studies, complete with creative samples and results data, up on our site for your surfing pleasure. We add new tests weekly too.
The case studies include B2B tests, ecommerce tests, email tests, lead generation form tests… you name it! That\’s our job as testing journalists – enjoy!
- 12
- 13
June 24th, 2010 3:02 amGood to see coverage of this.
However, we should be careful not to overstate the results of a single test – the effects of a change can be very audience/context specific.
The example used to demonstrate that “a single page checkout process works much better at completing sales than multiple-page checkout process” was, in my opinion flawed.
As well as changing the checkout from a multi-page to a single page process, the test also significantly changed how ‘guest’ customers were treated.
In the first example many first time customers may have assumed that they would have to create an account due the the page layout and the copy in the panel headers. It is not immediately clear that you can buy as a ‘guest’. In the second example this potential barrier has been removed. Instead, returning customers are asked for a login, whilst it is much clearer that new customers can continue without registering.
- 14
June 24th, 2010 3:27 amJohn, great comments. I will go even as far as saying that you should never trust results of a case study. Yes, case studies give ideas and inspiration for A/B testing but applying them without doing any testing on one’s own website is a grave mistake. As you said, results depend on a ton of factors which include context, product offering, brand value, etc. So, all A/B case study results should be taken with a pinch of salt.
- 14
- 15
June 24th, 2010 3:14 amGreat Article
- 16
June 24th, 2010 3:24 amGreat Post Paras!
- 17
June 24th, 2010 5:39 amThis is a very good post about A/B testing. I go to whichtestwon every week to try to see if I could pick the winning test. Sometimes results are surprising.
Tools : There is a website called whichmvt that made a very nice table about the features and pricing of many a/b testing tools (including yours). It’s worth a look for anyone searching for a tool to do A/B tests.
Good luck with your startup and keep on A/B testing !
- 18
June 24th, 2010 6:21 amJean-Francois, thanks for wishing me well! Yes whichmvt.com is an excellent site (though I didn’t include it because “multivariate testing” may have confused some readers).
- 18
- 19
June 24th, 2010 5:41 amIf you’re using ExpressionEngine, I’ve started an add-on to enable easy, basic A/B Testing: http://www.markjreeves.com/ab-test-expressionengine/
- 20
June 24th, 2010 7:00 amGreat article. Nice balance of theory and practice, without making the content too simple or too complex. Maybe next time discuss multivariate testing?
- 21
June 24th, 2010 7:14 amNice article. I particular like the case studies presented. GREAT JOB!
- 22
June 24th, 2010 7:15 amThat’s a great article indeed, easy to follow and very informative. Thanks!
- 23
June 24th, 2010 8:08 amGreat article. Very informative and you gave some great show cases.
- 24
June 24th, 2010 8:39 amVery good and informative article.
Thanks Paras Chopra and SM
- 25
June 24th, 2010 8:46 amHave you seen http://mixpanel.com ? Seemed missing from the article. We use it at our company for a/b testing in our funnels and elsewhere.
Cool article Paras
- 26
June 24th, 2010 8:52 amIn the don’t section, the third bullet points says “Don’t surprise regular visitors.” How would someone be able to implement that?
Well, I guess browser cookies might be helpful, as you can check whether the visitor to your site is a regular or visitor. What are some other ways to implement that though?
- 27
June 24th, 2010 9:32 amYes, most A/B testing tools store the variation displayed to visitor in a cookie so that on his repeat visits the same variation is shown.
- 27
- 28
June 24th, 2010 8:54 amI literally conducted a test with Google Website Optimizer yesterday and am implementing into our CMS now. How ironic that you post this article today. Thanks much!
- 29
June 24th, 2010 9:15 amParas;
Great article – thanks for sharing. I would like to add just two thoughts:
1) Inbound Marketing and Marketing Automation tools also provide A/B Testing capabilities. Of course they aren’t free, but if you go down the road of Inbound Marketing Automation (IMA), you will get the capability as a “free” add on to the lead management, qualification and nurturing functions.
2) As IMA tools also track people’s digital footprints around your site as they interact with your landing pages, in addition to the conversion metrics you get for the A/B test, you can also determine which pages held visitor’s interests and which ones resulted in them leaving the site. In other words, you also gain insight into your prospect’s behavior which add depth to the results of your A/B tests.- 30
June 24th, 2010 9:46 amEric, interesting point. Can you name a few marketing automation tools that have A/B testing integrated? I’ll admit that I don’t have enough information on this front.
- 30
- 31
June 24th, 2010 11:45 amVery good, it is useful
- 32
June 24th, 2010 12:19 pmthank you, very useful
- 33
June 24th, 2010 6:03 pmReally good useful info. I’ll definitely check out your product next time I’m in need of an A/B test.
- 34
June 24th, 2010 6:19 pmvery interesting article. I want to read like this more in SM..
- 35
June 24th, 2010 7:34 pmservicemagic.com is pro at this.
- 36
June 24th, 2010 8:32 pmI’ve always been concerned with the performance implications of client-side A/B testing. Delivering separate content by replacing sections on the page with Javascript seems clunky to me. Does anyone know of any server-side A/B testing frameworks that do not run on Ruby? Ruby has A/Bingo and Vanity, but I’m looking for others.
- 37
June 24th, 2010 9:16 pmReally a Conversant post.Thanks for sharing. Looking forward for more.
- 38
June 24th, 2010 9:24 pmGood stuff Paras :)
- 39
June 24th, 2010 9:33 pmthanks for the detailed info. I’m just starting to learn A/B testing and this is a good start. I think that you have there the advice for noob like me. Any more advice for A/B testing on blogs? I would love to know if there’s any. =)
- 40
June 24th, 2010 9:36 pmGreat and helpful article Paras and thanks also to the Smashing Magazine team. I’ve often heard “A/B Testing” terminologies from web developers but often wondered what really goes on into this process. After reading this it provides you a heads up and better understanding of the relation between marketing and design.
- 41
June 24th, 2010 10:46 pmGreat info… started doing A/B testing a few months ago and find it very interesting. I have found that whenever I did a test, the gap between the winner and the loser always diminishes as time passes, so it’s important to have a result which is statistically significant. I wrote about this in my blog a while back in case anyone’s interested:
http://www.marcvonbrockdorff.com/2010/06/17/ab-testing-statistical-significance/
- 42
June 25th, 2010 12:42 amParas, glad to see your article up on Smashing!
I still think that Visual Website Optimizer is one of the best and easiest A/B testing tools to use.
Patrick will also be happy for the A/Bingo shoutout.
- 43
June 25th, 2010 3:27 amHi Keith, thanks for appreciation :)
Yep, Patrick liked the article. Here is the Hacker News discussion http://news.ycombinator.com/item?id=1457740
- 43
- 44
June 25th, 2010 12:46 amHi Paras Chopra,
First of all its a nice article;
I would like to know if there are any such tools which work with asp.net & c#.
Let me know if there are any…~Sree
- 45
June 25th, 2010 2:31 ama great article! thanks!
- 46
June 25th, 2010 4:43 amHello Paras,
thank you for this insightful article. I’ m just starting to learn about different types of usability tests and as your article indicates A/B tests sound very promising and, with the right tool at hand quite easy to perform.:-) Thanks for sharing your experience!
- 47
June 25th, 2010 5:48 amSINGUP!
- 48
June 25th, 2010 6:43 amGreat article … it came across fairly strongly as a sales pitch for your start-up though.
(disclaimer: my start-up)
I actually would expect a little less bias in an article that is just supposed to present helpful info – not an advertorial cloaked as such.
Corey
- 49
June 25th, 2010 7:18 amFantastic article. I love the presentation of the case studies. Thank you for an informative and comprehensive read that is forever bookmark worthy!
- 50
June 26th, 2010 10:33 am….. cool information, great post, very informative…. lol, but when will it ever end !! :)
- 51
June 27th, 2010 3:46 amGreat article!
One thing,
‘testing the color of the “Buy now” button, then your conversion goal would be the “Thank you” ‘
Is this correct? I would think that the Buy Now color test would have the result page be the very first cart page. Only saying success on ‘thank you’ seems like a very broad test just for a color change. - 52
June 27th, 2010 10:50 pmWOW! great article – thanks!
- 53
June 28th, 2010 1:41 amIt was interesting to see a reaction to the sign-up button switch.
Very informative article. Picked up some good points – Thanks - 54
June 28th, 2010 2:12 amThanks for this extremely detailed and informative post.
- 55
June 28th, 2010 12:41 pmNice post on A/B testing, Paras. Really nice case studies you provided. Anyone interested can also check out a case studies from American Greetings, Citrix, and other companies here that use LiveBall for landing page testing and optimization: http://www.ioninteractive.com/why-i-love-liveball/. Of course what works for one person, may not work for someone else, but case studies and best practices do provide a base to start from. Thanks!
- 56
June 29th, 2010 4:59 amHi Kristina,
Ah, sorry to have missed LiveBall. Should have mentioned it along with other A/B testing tools! Any way, your case studies are interesting and thanks for commenting on the post.
-Paras
- 56
- 57
June 29th, 2010 12:59 pmSuperb post! Thanks for teaching us A/B testing.
- 58
July 1st, 2010 11:32 pmi think we are all becoming slaves to computers
- 59
July 7th, 2010 5:50 am> “Don’t surprise regular visitors”
No, no, no — your sample *must* be completely random for it to be chosen, otherwise your inference will be invalid, because you no longer have representative samples. This is very, very important!
Don’t go to all the effort (and expense) of preparing A/B tests, just to nullify any statistical significance by messing up the sample allocation. Your regular visitors will get version B anyway if you choose the alternate, so surely it can’t be bad to give it to some early?
- 60
July 8th, 2010 12:32 amIt doesn’t mean that you are not showing variation to your repeat visitors, it just means that across different visits of a visitor you should keep your variations consistent. In fact, not doing so will kill your statistical significance.
In A/B test your base unit is a visitor, not visits! So, if you are showing different variations on different visit and the visitor completes a goal in 3rd visit, which variation are you going to attribute this success to?
- 60
- 61
- 62
August 15th, 2010 8:17 pmAmazing article,Thanks for sharing.
- 63
August 27th, 2010 3:41 amGreat article. Thx. We are currently thinking of looking into A/B testing for our product, your article and resources are a big help!
Leave a Comment
Make sure you enter the * required information where indicated. Please also rate the article as it will help us decide future content and posts. Comments are moderated – and rel="nofollow" is in use. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!
- @sazzy yaaay, happy birthday, Sarah! And congratulations to the wedding! You are a great couple!
- Good News: Dual-Core CPU Opens Door To 1080p On Smartphones - http://bit.ly/a0KowT
- Man Who Destroyed the Boring Interface and Lived - http://bit.ly/c2SjIh - Very interesting read. #graphic #design
- @simoncollison Happy Birthday, Simon. Have a good one, a don't work too much ;-)
- Fresh on SmashingMag: Designing and Producing Creative Business Cards: Techniques and Details - http://bit.ly/ceOKDd
- Google Instant Search Is Released - http://bit.ly/drRq8U
- Web Project: Weighing Cost vs Speed vs Quality - http://bit.ly/ap9IIl
- CSS3Menu: create CSS3-based menus with this free library - http://bit.ly/bJfj1l
- Web Wireframe Kit (a free PSD file) - http://bit.ly/d14tll
- A step to be ahead: start designing for mobile devices - http://bit.ly/dv6DQN














Interesting case studies, will look at implimenting some of that onto sites I am building.
Good post, keep it up