What is A/B testing?
An A/B test splits users at random between two versions and compares one number. It is simple to set up and easy to get wrong; here is how to run one honestly.

Key takeaways
- An A/B test randomly assigns each user to version A or B and compares one pre-chosen metric.
- Small differences need large audiences; with little traffic, test bold changes or talk to users instead.
- Decide the metric, the audience and the run length before starting, and do not stop the test the moment it looks good.
A/B testing is an experiment where users are randomly split between two versions of something, the current version (A, the control) and a changed version (B), so you can measure which one performs better on a metric you chose in advance. Randomness is the point: because the two groups are alike in every other way, a difference in results can be credited to the change.
An everyday version: a cafe alternates two chalkboard signs on random days for a month, one advertising "Fresh croissants" and one "Croissant + coffee $5", and counts croissant sales on each. Same street, same weather mix, one variable.
How a test works, step by step
- 01Hypothesis. "Showing the price on the pricing button will raise checkout starts, because people hesitate without knowing the cost."
- 02One metric. Checkout started per visitor to the pricing page. Choose it before the test, plus a guardrail metric that must not get worse (for example, refunds).
- 03Random, sticky assignment. Each visitor gets A or B at random, and keeps it on every visit, so nobody sees both.
- 04Run for a fixed time. At least one full week, so weekday and weekend behavior both appear, and long enough to reach the sample size you planned.
- 05Compare and decide. Use a significance calculator (many free ones exist) and ship B only if the difference is both meaningful and unlikely to be chance.
How much traffic you need
This is where most small apps stumble. Detecting a small lift on a low conversion rate (say 5% becoming 5.5%) typically takes many thousands of visitors per version. Detecting a large one (5% becoming 8%) needs far fewer. Plug your current rate and the smallest lift you care about into a sample size calculator before you start. If the answer is more traffic than you get in a month, test a bolder change, or learn by watching five users try the page instead.
Running an A/B test in a Startbase app
The pieces are a stored assignment, two versions of the screen, and event logging for the metric. If you already track funnel events (what conversion rate is), you only need the first two.
Add a simple A/B test to the pricing page. On first visit, assign each visitor to "control" or "price_on_button" at random (50/50) and remember it in a cookie and, after sign-up, on their user row. Control keeps the current page; the variant shows the monthly price inside the main button. Log pricing_viewed and checkout_started with the variant name. Add an admin page with visitors, checkout starts and conversion rate per variant, and a switch to end the test and show one version to everyone.
Versions in Startbase help here too: if the variant code causes a problem, restore the version from before the test (checkpoints and undo). For price experiments specifically, read how to validate pricing first, because showing different prices to different people has trust implications.
Common confusions
- Peeking. Checking daily and stopping the moment B leads produces false winners. Set the end point in advance.
- Before/after is not A/B. Changing the page on Monday and comparing to last week mixes your change with everything else that changed.
- Testing five things at once. If B changes the headline, image and button, a win does not tell you which part worked. That can be fine, as long as you know it.
- Novelty. Returning users sometimes click something just because it is new. Watch whether the lift holds in the second week.
Frequently asked questions
Can I run more than two versions?
Yes, that is called an A/B/n test. Each extra version splits your traffic further, so every group needs the same sample size and the test takes longer.
Is A/B testing worth it for a brand new app?
Usually not yet. Early on, traffic is too small to detect anything but huge differences. User interviews and watching sessions teach more until you have steady traffic.

