A/B Testing for Beginners: Step-by-Step Guide
By Alex Morgan · Published · 4 minutes read

A/B testing sounds simple: show two versions of a page to different visitors and keep the winner. In practice, most first experiments fail not because the idea was bad, but because the test was set up wrong — too little traffic, too many changes at once, or a decision made on day two.
This guide walks you through a realistic first experiment from goal to decision, with the numbers you actually need: sample sizes, test durations, and what counts as a result worth acting on.
Start With a Goal, Not a Button Color
Before you touch a page, decide which single metric the test should move. For most small sites that is a conversion action: a form submission, a quote request, a newsletter signup, or an add-to-cart. Pick one primary metric and write it down. If you cannot name the metric in one sentence, you are not ready to test.
Secondary metrics help you check for side effects. A test that lifts signups but doubles bounce rate on mobile may still be a loss. Choose two or three supporting metrics — bounce rate, time on page, revenue per visitor — and review them after the primary result.
Set a minimum detectable effect before you start. Ask: how big a change would make this test worth running? For a small site converting at 2–3%, a lift of 10–20% relative is usually the smallest change you can detect with realistic traffic. Anything smaller needs months of data.
- One primary metric per test
- Two or three secondary metrics for side effects
- Define the smallest lift that would justify a change
Form a Hypothesis You Can Prove Wrong
A useful hypothesis states the change, the expected effect, and the reason. For example: 'Moving the pricing link into the main navigation will increase demo requests by at least 15% because visitors currently cannot find pricing on mobile.' That is testable and falsifiable.
Weak hypotheses sound like 'a red button might convert better.' They cannot be proven wrong, so the result teaches you nothing. Base hypotheses on evidence: session recordings, heatmaps, support emails, or exit surveys. A handful of recorded sessions often reveals the real friction faster than any brainstorming session.
Test one change at a time. If you redesign the hero, the headline, and the CTA together, you will never know which one moved the needle. Sequential tests on the same page are fine as long as each one has a clear owner and a clean start date.
Calculate Sample Size and Test Duration
You need enough visitors for the result to be statistically meaningful. As a rough rule, a page converting at 2% needs roughly 3,000–4,000 visitors per variant to detect a 20% relative lift at 95% confidence. At 5% baseline conversion, the requirement drops to around 1,000–1,500 per variant. Use an online sample-size calculator rather than guessing.
Divide that number by your weekly traffic to get the minimum duration. If your page gets 500 visitors a week and you need 3,000 per variant, you are looking at 12 weeks — often too long to be practical. In that case, test a higher-traffic page, test a bigger change, or accept a lower confidence level and treat the result as directional.
Always run full weeks. Traffic patterns differ between weekdays and weekends, and stopping mid-week biases the result. Two full weeks is the practical minimum for most tests; four is better. Never stop a test early because one variant is ahead — early leads routinely reverse.
- ~3,000–4,000 visitors per variant to detect a 20% lift at 2% baseline
- ~1,000–1,500 per variant at 5% baseline
- Run full weeks, two minimum
- Do not peek and stop early
Set Up the Test Without Breaking Tracking
Most testing tools — Google Optimize's successors, VWO, Optimizely, or a simple server-side split — inject variants with JavaScript. That means your analytics must be configured correctly before launch. Confirm that your conversion events fire in both variants, that the test tool sends variant labels to your analytics, and that no duplicate pageviews are recorded.
If you have not audited tracking recently, do it now. A test with broken analytics produces a confident answer that is simply wrong. Setting up Google Analytics 4 properly for a small site takes an afternoon and prevents months of bad decisions.
Test on real devices. A variant that works on desktop can break layout on a 375px phone. Check the top three mobile breakpoints, verify form submission end to end in the variant, and confirm that page speed has not dropped by more than a few hundred milliseconds — slow variants lose conversions for reasons unrelated to your idea.
Read the Results Honestly
When the test ends, look at the primary metric first. If the difference is within the confidence interval you set, the honest answer is 'no measurable difference' — not 'variant B won by 4%.' A 95% confidence level means roughly a 1-in-20 chance of a false positive, so treat borderline results with suspicion.
Check the secondary metrics before you ship. A variant that lifts signups 12% but increases support tickets or refunds is not a win. Also segment by device and traffic source: a change that helps desktop users and hurts mobile users may net out to zero, and you would never see that in the headline number.
Record every test, including the losses. A simple log with the hypothesis, dates, sample size, and result becomes the most valuable document your team owns. After ten tests you will see patterns — which page types respond to change, which audiences ignore them — and your hypotheses get sharper.
- Primary metric first, confidence interval second
- Check secondary metrics and segments
- Log losses as carefully as wins
Turn Winning Tests Into Permanent Changes
A winning variant is not the end of the job. Implement it in the actual page code, remove the test script, and re-verify tracking. Leaving a test running indefinitely costs performance and risks conflicting with later changes. Document what changed and when, so future tests have a clean baseline.
Wins often point to a deeper issue. If moving the CTA above the fold lifts conversions 18%, the real problem may be page structure, not button placement. That insight should feed your next redesign or content project rather than being filed away as a one-off tweak.
Finally, be realistic about cadence. A small site with 5,000 monthly visitors can run perhaps four to six meaningful tests a year. Quality beats quantity: one well-designed test with a clear hypothesis teaches more than ten rushed button-color experiments. If you want a wider view of what to fix first, the ten signs your website needs a redesign is a useful checklist before you start testing.
| Baseline conversion rate | Detect 10% lift | Detect 20% lift | Detect 30% lift |
|---|---|---|---|
| 1% | ~150,000 | ~38,000 | ~17,000 |
| 2% | ~73,000 | ~18,500 | ~8,300 |
| 3% | ~48,000 | ~12,000 | ~5,400 |
| 5% | ~28,000 | ~7,000 | ~3,100 |
| 8% | ~17,000 | ~4,200 | ~1,900 |
| 10% | ~13,500 | ~3,400 | ~1,500 |
- Define one primary metric and the smallest lift worth acting on before you build anything.
- At a 2% baseline you need roughly 18,500 visitors per variant to detect a 20% lift — plan traffic accordingly.
- Run full weeks, never stop early on a lead, and check secondary metrics before shipping a winner.
- Log every test, including losses; patterns across ten tests beat any single result.
Alex Morgan is the editor at CreatickWeb with over a decade of experience in web design and digital marketing. He focuses on practical advice for small businesses and agencies, helping them navigate the digital landscape. Alex oversees all content to ensure it is accurate, actionable, and up-to-date.


