A/B testing: definition, method and best practices

Updated on February 22, 2026
Quick definition
A/B testing is a controlled experimentation method that compares two versions of an element (page, email, CTA) by simultaneously exposing each version to a portion of traffic, then measuring which one produces the best results against a predefined objective. A/B testing relies on rigorous statistical principles to ensure that the differences observed are not due to chance.
How it works
A/B testing, also known as split testing, randomly divides incoming traffic into two groups: group A receives the original version (control) and group B receives the variant. The goal is to measure the variant's impact on a conversion indicator defined in advance, such as conversion rate, click-through rate, or revenue per visitor.
A crucial point: the hypothesis must be defined before the test, not after. Testing without a hypothesis leads to confirmation bias. You should also avoid stopping the test prematurely as soon as you observe a favorable result, because natural traffic fluctuations can distort conclusions.
The minimum recommended duration is one to two weeks to smooth out cyclical variations (weekday vs. weekend). Statistical significance at 95% is the standard threshold before drawing conclusions.
The variables to test as a priority are:
- The headline and hook copy
- The CTA (text, color, position)
- The main visual
- The layout and visual hierarchy
- The form (number of fields, labels)
Why it matters
A/B testing turns marketing and product decisions into evidence-based decisions rather than gut-feel ones. It enables gradual, measurable improvements in conversion rates, revenue per visitor, and user engagement.
Without systematic testing, teams often invest in changes that bring no real benefit, or even degrade performance. A/B testing is particularly valuable for high-traffic pages — landing pages, homepage, checkout — where a few percentage-point improvements in conversion translate into significant economic impact.
It is also the most reliable tool for validating insights from heatmaps and behavioral analyses.
How to improve or use it
- 1Identify priorities via your analytics: high-bounce-rate pages, high-drop-off funnels, steps with a sharp fall in conversion rate.
- 2Formulate a precise hypothesis: "Changing the CTA from X to Y will increase the click-through rate by Z% because…"
- 3Calculate the required sample size before launching to ensure statistical power.
- 4Modify only one variable at a time to isolate the causal effect.
- 5Wait for statistical significance at 95% before concluding — never stop the test early.
- 6Document every result, including failures: negative tests are just as instructive as positive ones.
With Sublim
Sublim provides the behavioral data needed to identify testing priorities without relying on third-party cookies. Its custom analytics events let you precisely measure each variant's impact on your micro-conversions and macro-conversions, in full GDPR compliance — where GA4 may undercount up to 30% of real traffic due to missing consent.
Frequently asked questions
How long should an A/B test run?
An A/B test should run for at least one to two full weeks to cover cyclical traffic variations (weekdays vs. weekends). The optimal duration is determined by the sample-size calculation needed to reach 95% statistical significance, based on the baseline conversion rate.
What is the difference between A/B testing and multivariate testing?
A/B testing compares two complete versions of a page or element, while multivariate testing simultaneously tests several combinations of multiple variables on the same page. Multivariate testing requires significantly more traffic to reach statistical significance.
Can you do A/B testing without code?
Yes, visual tools such as VWO, Optimizely, or Google Optimize (now discontinued) let you create variants without modifying the source code. However, server-side tests are more reliable because they are not affected by ad blockers or script load times.
Related terms
Multivariate testing is an experimentation method that simultaneously …
The conversion rate is the percentage of visitors to a site or page wh…
An analytics goal is an action or behaviour defined as having value fo…
A micro-conversion is an intermediate action by a user that signals pr…