[ KNOWLEDGE / ANALYTICS / EXPERIMENTS ]

A/B testing:
how to test
a hypothesis

From hypothesis to decision: split your audience, calculate the sample size and understand what the experiment actually showed.

iSEO.pro illustration: an audience is split between two website variants for an A/B experiment
Plan.
Check the data.
Make a decision.

A step-by-step guide for website owners and marketers, with tool links, worked examples and mistakes that lead to false conclusions.

01 / METHOD

What is A/B testing?

A/B testing is an experiment that randomly assigns participants to different versions of a product and compares a predefined outcome. A is usually the current website, while B includes a change. Both groups take part at the same time, experiencing the same sale, weekends and external conditions.

For example, a store wants to show the delivery time next to the price rather than only in the basket. Some visitors see the existing product page; others see a new delivery block. The team checks whether the proportion of buyers changes. More purchases in the second group do not by themselves prove an effect: the groups may differ in size, data may be missing, or a small fluctuation may be random.

A before-and-after comparison answers a different question.

If everyone sees the old page first and it is replaced a week later, the observation period changes too. Advertising or seasonality may explain higher sales. This observation can help generate hypotheses, but it must not be presented as the result of a randomized experiment with concurrent groups.

A test can compare a single element or two complete versions. If only the button text changes, the conclusion concerns that text. If the offer, image and form all change, the result applies to the whole bundle. It cannot be attributed to one successful headline. The cover illustrates the principle of comparing two versions, not the interface of a specific tool.

01ProblemWhat prevents the visitor from completing the task?
02PlanWhich change and which outcome are we testing?
03ExperimentWho is assigned to each variant, and what data do we collect?
04DecisionWhat can the data tell us, and is the change worth implementing?
02 / HYPOTHESIS

Choose a problem and write an experiment brief

Start with observations: customer questions, form errors, session recordings and differences between funnel stages. “Make it more modern” does not explain which difficulty the new version solves. On a service page, a more useful question is whether a clear scope of work helps visitors submit suitable enquiries.

Write: “We observe [difficulty]. If we change [specific area], [metric] will change because [proposed mechanism].” The mechanism remains a hypothesis: the test measures a change in outcomes, but cannot read visitors’ minds. Interviews and observing people complete tasks can help explain their behaviour.

Example experiment brief for an online store
FieldWhat to record before launch
ProblemCustomers ask about delivery time after viewing the product page.
ChangeIn B, show the calculated delivery time next to the price. Keep all other purchasing conditions unchanged.
Who it’s forVisitors to the selected product pages for whom delivery can be calculated. Eligibility rules are the same for both groups.
Primary outcomeThe share of assigned participants with a confirmed purchase within the agreed observation window.
GuardrailsMonitor cancellations, order profitability, checkout errors and page speed.
Analysis planTwo groups, a fixed 50/50 split, sample-size calculation, duration, analysis method and stopping rule.
OwnersWho checks the data, who makes the decision and who restores the previous version if something fails.

Prioritize hypotheses by the scale of the problem, the number of customers affected, implementation cost and measurability. A broken enquiry form needs fixing. The value of an extra field or a new explanation of pricing can be tested. Do not spend a month observing a change that would offer almost no business benefit even if it succeeded.

03 / MEASUREMENT

Define the primary metric and guardrails

For a first test, choose one primary metric that answers the business question. Divide the others into diagnostic metrics and guardrails. Diagnostic metrics show where behaviour changed. Guardrails identify harm that is unacceptable even when the primary metric improves.

The same increase in clicks can mean very different outcomes
ScenarioPrimary metricAdditional checks
B2B enquiry formVerified, suitable enquiries per participant.Spam, duplicates, sales-team workload and lost contact details.
Product pageBuyers per participant, or another business metric justified in advance.Returns, contribution margin and payment errors.
Pricing-plan explanationPaid activations per participant within the specified period.Cancellations, support requests and revenue per participant.

Fix the denominator before launch. If the experiment changes whether people reach the form, you cannot compare only those who reached it: the change itself affects selection. The primary analysis must follow the predefined eligibility rule. For binary conversion, a participant is counted as converted once, even after submitting three enquiries.

Check that the event fires on a successful operation, not merely on a button click. Match a test submission to its CRM record and make sure reloading the page does not add another conversion. The experiment variant must be correctly linked to the outcome. For more on measurement units, see our guide on website conversion; passing sales statuses may require CRM integration.

WORKED BUSINESS EXAMPLE

More enquiries, fewer suitable customers

With equally sized audiences, A generated 100 enquiries, of which 60 were suitable. B generated 140 enquiries, but only 42 were suitable. Total volume rose by 40%, while useful enquiries fell by 30%. Measuring only form submissions would hide the decline.

04 / SAMPLE SIZE

Calculate how many participants you need

There is no universal rule that “100 conversions are enough”. Planning requires the current metric level, the minimum detectable effect (MDE), the tolerated false-positive rate and statistical power. The smaller the difference you need to distinguish from noise, the more observations you need.

MDE is the effect the experiment is designed to detect at the chosen power. It is neither a promise of growth nor a lower bound on the actual result. Power of 80% is the probability of detecting that specified effect under the stated assumptions, if it exists. A significance level of α = 5% concerns the testing procedure when there is no effect, not the probability that a particular conclusion is wrong.

Example using Evan Miller’s calculator

  1. Open Sample Size Calculator.
  2. In Baseline conversion rate, enter 4 — the current conversion rate of 4%.
  3. For Minimum Detectable Effect, enter 1 and select Absolute: a difference of one percentage point. An increase to 5% corresponds to a relative change of 25%.
  4. Check Statistical power — 80%, Significance level — 5%.
  5. Save the settings together with the result. When this combination was checked, the calculator showed 6,238 participants per variant, not for the entire experiment.

This is one calculator’s estimate for a conversion metric. Other methods may give a slightly different size; revenue, repeated events, company-level clustering and unequal groups need their own calculation. Align planning with the method you will use to analyze the result. Entering order counts into a tool for independent users does not solve the problem.

Turn sample size into a timeline

For this example, round up to 6,500 people per group: 13,000 in total. If 1,000 eligible participants enter the experiment for the first time each day, recruitment takes about 13 days. At only 200 per day, it takes about 65 days. Total website traffic is not the right input when only some visitors see the test.

Allow for complete business cycles and the time it takes to complete the target action. If purchases are counted within seven days of entering the test, the last participant also needs seven days. “Two weeks have passed” is not evidence of sufficient data. Do not change the required sample size after seeing a result you like.

05 / TOOLS

Prepare an experiment in Varioqub

A site using Yandex Metrica can use Varioqub. Before connecting it, check your plan’s features and the limitations of the chosen integration method. The visual editor suits simple page changes; server-side changes need a developer. An analytics report alone does not create an A/B test without a mechanism to assign visitors to groups.

  1. The Metrica select the tag for the relevant site and open Varioqub → Experiments.
  2. Use Code for site to get the integration code or method. A developer should install it for the correct tag and check that it loads. JavaScript, tag manager and API procedures are covered in the connection instructions.
  3. Click Create experiment. Give it a clear name, such as “Delivery time on product page — September”, and describe the hypothesis.
  4. For the ordinary concurrent test described here, choose equal allocation. Set eligibility, pages, dates, the control and modified variants, then the metrics.
  5. Check both variants and save the settings. Compare the configuration with your experiment brief using the official creation procedure.

Dynamic traffic allocation is a separate mode: variant audiences change as results accumulate. It cannot be analyzed without adjustments as the fixed-ratio test described here. Do not complicate the design of your first hypothesis test without a clear reason.

Check variant assignment before launch

The same participant should receive the assigned variant on return visits. A signed-in product may use a user ID; a B2B system may need company-level assignment so employees do not see conflicting interfaces. Randomly choosing again on every page reload does not meet this requirement.

Document how multiple devices, cookie deletion and signing in are handled. Check assignment, actual exposure and outcome recording: they may occur at different times. Keep a short QA log with the test participant, assigned group, version seen, action completed and record found.

06 / DATA QUALITY

Check A/A, group sizes and site functionality

An A/A test shows the same version to two groups. It helps check the infrastructure: assignment, exposure logging, goals and links to sales. An isolated significant difference can occur even in a working system, so it is a signal to investigate, not automatic proof of a fault. The reverse also holds: one uneventful report does not guarantee the absence of every error.

A separate check is Sample Ratio Mismatch, SRM: does the observed allocation match the plan? Small deviations from 50/50 are natural and must be assessed in relation to sample size. The Microsoft Research analysis treats SRM as a sign of a possible fault in assignment, execution, data collection or processing. When a mismatch is detected, investigate its cause before interpreting business metrics.

  • Both versions: check purchases, forms, validation, navigation and data transfer.
  • Devices: complete the flow on mobile and desktop, including a return visit.
  • Loading: check for flashes of the original variant, layout shifts and script errors.
  • Tracking: make sure the same action is recorded under the same rules.
  • Overlapping tests: check whether another experiment changes the same part of the funnel.

Do not “balance” groups by deleting inconvenient records. If B’s data is lost because loading fails, deleting some of A hides the symptom but cannot recover unknown outcomes. Fix the cause and decide which data is still usable. Changing the experiment’s logic usually requires a new run with its own saved protocol.

07 / RESULTS

Interpret conversion, effect size and uncertainty

In Varioqub, open the experiment list and select View result. Check the dates, metric and audience against your plan. Metric definitions and calculation details are explained in the report help page. The platform’s methods may differ from a simple two-proportion calculator; conflicting numbers call for checking definitions, not choosing the more appealing estimate.

Example data: independent participants, purchase as a binary outcome
MetricAB
Participants10,00010,000
Made a purchase400480
Conversion4%4.8%

The absolute difference is 0.8 percentage points. The relative increase is 20%: (4.8 − 4) / 4 × 100%. These are two ways to express the same result. Saying “an increase of 0.8%” without clarification is ambiguous.

For these example numbers, an approximate two-sided two-proportion z-test gives p ≈ 0.0058. The usual 95% normal-approximation interval for the difference is about +0.23 to +1.37 percentage points. This assumes independent participants, a fixed plan and no correction for multiple comparisons. Rare events, dependent observations and sequential analysis need appropriate methods.

What p-value means

A p-value describes how unusual the observed or more extreme data would be under the no-effect hypothesis and the model’s assumptions. A value of 0.03 does not mean “a 97% probability that B is better”. It also does not measure the size of the benefit. These limitations are explicitly noted by the American Statistical Association.

Look at the effect size and the range of uncertainty. If the interval includes both meaningful harm and meaningful benefit, there is too little information for a confident decision. If almost the entire range is near zero, a large improvement looks less plausible under this test’s conditions. Lack of significance does not prove the variants equal: equivalence requires a separate plan.

How to record the conclusion

“Within the planned audience, B changed purchase conversion from 4% to 4.8%. The estimated increase is 0.8 percentage points; the uncertainty interval is stated in the report. Assignment and data were checked. Before rollout, we will assess cancellations, unit economics and support cost.” This says more than “B won with 99% probability”.

08 / COMPLETION

When to stop the test and make a decision

With a fixed plan, do not end the experiment on the first day its p-value falls below the threshold. Repeated attempts to catch “significance” change the false-positive risk. You can and should monitor technical health; decide effectiveness using the rule selected in advance. This early-stopping problem is explained by Evan Miller.

Sequential methods allow interim decisions under their own rules. They require a specific statistical design, not an ordinary test with daily dashboard checks. Do not transfer thresholds or interpretations between methods. A Bayesian probability is not “1 − p-value” either.

The decision depends on more than the report row’s colour
SituationNext action
Practically useful effect, sound dataCheck guardrails, roll out gradually and monitor after implementation.
Material harm is presentStop the harmful change and save the reason and data. Do not present an emergency stop as the planned conclusion.
The result is inconclusiveDescribe the range of plausible effects. Plan a new sample or experiment separately.
Data is corrupted or assignment is faultyInvestigate the cause; do not declare a winner from an unreliable report.

After deciding, save the hypothesis, settings, dates, versions, sample size, calculations, limitations and result link. Remove temporary delivery mechanisms and check the working flow again. Success on product pages in one segment does not prove value for the whole site; applying the change elsewhere requires assessing how similar the conditions are.

09 / SEARCH

Run tests without unnecessary SEO problems

Google publishes guidance for website testing. For an ordinary page-variant test, check four things:

  1. Do not create special content solely for search crawlers. An experiment does not justify cloaking.
  2. If variants use different URLs, add rel="canonical" pointing from the alternatives to the original page.
  3. Use a temporary 302 redirect to send visitors to a variant, not a permanent 301.
  4. After completion, remove temporary variants, switches and redirects that are no longer needed.

Check the HTML actually served, path preservation and resource loading. Our guide to checking canonical tags and redirects will help you brief a developer. These are implementation rules, not a guarantee that rankings will remain unchanged.

A conventional user A/B test measures visitor behaviour. Assessing SEO changes through organic traffic needs a different study design, often with groups of pages and changes over time taken into account. More purchases in variant B do not prove that it will rank better.

10 / MISTAKES

What most often makes a conclusion unreliable

  • Different channels instead of random groups. Search goes to A and ads to B. You are comparing different audiences.
  • Changing the metric after launch. Sales did not rise, but an attractive click metric appeared. This search may generate a new hypothesis, but does not replace the original result.
  • Many variants and segments without adjustment. Dozens of comparisons make it easier to obtain a convincing number by chance. Define how to handle multiple testing in advance.
  • Changing B while collecting the sample. Different versions are pooled under one name. Keep version history and separate experiments.
  • Unequal conversion windows. Early participants were observed for a month, late participants for an hour. Compare using the agreed rule.
  • Deciding from the average alone. An overall increase can hide important harm, such as on mobile. Always check predefined guardrails; segment effects found after launch need separate confirmation.

An external promotion does not automatically invalidate a concurrent test if it affects randomly assigned groups equally. But the conclusion applies to that promotion’s audience and conditions. Record the event in the protocol, and do not generalize to an ordinary season without further justification.

11 / LIMITED DATA

What to do when traffic is too low

Start with an honest duration estimate. If a small change needs a year, calling it an “A/B test” will not improve the decision. Study the customer journey: ask target users to complete a task, review support enquiries, and check the form and offer terms. These methods reveal sources of friction, but do not give a statistical estimate of sales growth.

You can test a more substantial hypothesis if it is well justified. A larger expected effect may be easier to detect, but do not change MDE merely to obtain a convenient timeline. A shared test across a common template can gather an audience only with correct assignment and treatment of dependencies. Arbitrarily comparing twenty popular products with twenty rare ones is not a fair experiment.

An intermediate metric may accumulate faster, but the answer concerns that metric. More visits to a form do not mean more revenue. When data is limited, state the uncertainty and a monitoring plan explicitly. For systematic work, hypotheses, analytics and implementation can be combined within performance marketing, and interface changes within website development.

12 / CHECKS

Checklist before launch and rollout

13 / QUESTIONS

Frequently asked questions about A/B testing

How long should an A/B test run?

Long enough to reach the planned sample size, cover typical behavior cycles and allow for the conversion window. Define these conditions in advance. A fixed duration that suits a store with thousands of buyers will not suit a B2B site receiving only a few inquiries per week.

Can several elements be changed at once?

Yes, if you are testing a complete version of a page or user flow. The conclusion then applies to the change as a whole. Separating the effects of individual factors requires an appropriate design, such as a factorial experiment, and enough data.

What does “no difference” mean?

It usually means that the chosen analysis did not detect a difference in the available data. Check the uncertainty interval and sensitivity. This does not automatically establish equivalence or rule out every practically useful effect.

How does A/B/n differ from multivariate testing?

A/B/n compares several complete versions against a control. A factorial multivariate test examines combinations of changes and their interactions. More variants bring additional requirements for sample size and control of multiple comparisons.

Is an A/A test always needed before an A/B test?

A/A is particularly useful when first connecting a platform or changing data collection. It complements infrastructure checks. There is no need to repeat a full A/A test before every small experiment without a specific reason, and a one-off check does not replace ongoing monitoring.

Can you make a decision without a statistically significant winner?

Yes. For example, you may choose the version that is easier to maintain. Describe the decision accurately: it is based on cost or convenience, and the experiment has not confirmed a sales increase. An inconclusive result must not be presented as proven success.

LET’S TEST GROWTH HYPOTHESES
FOR YOUR WEBSITE

We will review your funnel and analytics quality, estimate the available audience and prepare an experiment plan with clear decision criteria.

+7 903 790-38-39

By clicking the button, you agree to our privacy policy.
CONTACT