The short answer
To run an A/B test on your website, pick one change backed by evidence (heatmaps, recordings, customer questions), write a hypothesis and one main metric, and set it up in a testing tool such as VWO, Convert, PostHog or GrowthBook with a 50/50 split. Run it for at least two full weeks and until the planned sample size, then keep the winner only if the result is statistically significant.
Before you start
By the end of this SOP
A documented test with a clear result, and a decision to keep or drop the change.
- Time
- 30 minutes – 2 hours to set up, 2+ weeks to run
- You’ll need
- Conversion tracking in GA4 (SOP 009) and a testing tool. Findings from heatmaps help (SOP 049).
- Who does this
- The person responsible for conversion rate optimisation (CRO).
About this SOP: why it matters, where and when
Why it matters: Small, proven improvements in conversion rate make every rupee of ad spend work harder.
Where: In your A/B testing tool and a test log (Google Sheet).
When: Whenever you have a hypothesis worth testing and enough traffic to test it.
Stage 1
Decide what to test
Good tests come from evidence, not opinions.
- 1
Look for evidence:
- Heatmaps and recordings (SOP 049): ignored buttons, people not scrolling, form drop-offs.
- Customer questions in WhatsApp, calls or reviews that the page doesn’t answer.
- A recent change you think hurt (or helped) conversions.
- 2
Common things to test: headline, call-to-action text, form length or position, hero image or video, trust elements (reviews, logos), pricing display.
Watch out
Test one element at a time. Change the headline and the form together and you won’t know which one made the difference.
Stage 2
Write the test plan
- 1
In a test log sheet, add a row with:
- Test number (e.g. 001) and owner.
- Hypothesis: “Changing [X] to [Y] will increase [metric] because [evidence].”
- Page URL and audience (e.g. all mobile visitors from India).
- Main metric (one!), plus up to two secondary metrics.
- Screenshots of version A (control) and version B.
- 2
Check traffic: use a sample size calculator with your current conversion rate and the smallest uplift worth detecting (the minimum detectable effect, usually 10–20% relative), at 80% power and 95% significance. If you’d need months to reach the sample, don’t run it on the site; test the idea in ads instead.
- Worked example: a 3% enquiry rate and a 15% relative uplift (3% → 3.45%) need about 24,000 visitors per version. Many Kerala small-business sites can’t reach that in a month, and that’s an honest answer to give the client.
Stage 3
Build and launch the test
- 1
In your testing tool, create an A/B experiment for the page URL and name it after your test number, e.g. “Exp001 – Mobile sticky CTA”.
- 2
Create the variant with the visual editor (or ask a developer for bigger changes).
- 3
Set the goal to your main metric (e.g. form submit or purchase) and traffic split to 50/50.
- 4
Preview both versions on mobile and desktop, in Chrome and Safari, then start the test.
Tip
Write the start date in your log. Don’t make other changes to that page while the test runs.
Stage 4
Read the result honestly
- 1
Wait at least two full weeks (to cover weekday and weekend behaviour) and until you reach your planned sample size.
- 2
Keep version B only if it wins by the decision rule you wrote before launch, e.g. p < 0.05 for a classic test, or “chance to beat baseline” ≥ 95% in a Bayesian tool like GrowthBook or PostHog.
- Don’t stop a classic test early just because it looks good on day 3 (peeking). Only sequential-testing tools are designed to be checked during the test.
- Check the split is really about 50/50. A big imbalance (sample ratio mismatch) means the test is broken.
- Exclude your team’s visits, and avoid launching during festival sales or ad spikes.
Watch out
Don’t stop the test the day B looks ahead. Early leads often disappear. That’s called peeking, and it leads to false winners.
- 3
Log the result, the numbers and what you learned, even if B lost. A losing test still teaches you something.
- 4
Roll out the winner on the real page, then pick the next hypothesis.
Practice & check
Now do it for real
Reading is not doing. Open your own account and complete this task before you move on.
Practice task (5 min)
Write a full test plan for one page of a real or practice business: evidence, hypothesis, main metric and required sample size. Don’t launch until your mentor reviews it.
Prove it
Two questions. Get both right and this SOP is done.
Common questions
What replaced Google Optimize?
Google Optimize shut down in 2023. Popular replacements are VWO, AB Tasty, Optimizely and Convert, plus PostHog and GrowthBook, which have free plans.
How long should an A/B test run?
At least two full weeks and until you reach the sample size you calculated before starting.
How much traffic do I need for an A/B test?
It depends on your conversion rate and the uplift you want to detect. Use a sample size calculator. Low-traffic sites are often better off testing ideas in ads first.
Done. That’s a real skill, not a certificate.
Want to do this on real client budgets, with a mentor checking your work? That’s Level 2 at Unlearn. See the Digital Marketing track