How to Run a Valid A/B Test on a Landing Page
When I tear down a low-converting landing page, the first thing I check is whether the owner has ever run a real test. Nine times out of ten, the answer is something like, "Yeah, we tested the button color last month and green won." Then I ask how many visitors saw each version. Silence. Or worse, a number like 140.
That is not a test. That is a coin flip dressed up as data.
Most landing page A/B tests are invalid before they start: too little traffic, too many changes at once, tests stopped the moment a winner appears. I have watched teams redesign funnels around "winners" that were pure noise.
So here is the process I actually follow when I want a result I can trust. Not the textbook version. The version that survives contact with real traffic.
What "valid" actually means
A valid A/B test answers one question: if I rolled this change out to 100% of my traffic, would it convert better? That is it. If your test cannot answer that question, it does not matter how clean your spreadsheet looks.
Validity comes down to three things. You changed one variable. You collected enough data to separate signal from noise. And you ran the test under conditions that match how your page normally behaves. Miss any of those and the result is decoration, not evidence.
Step 1: Pick one problem, not one element
Amateurs start with the element: "Let's test the headline." I start with the problem: "Visitors bounce in the hero because they do not understand what we do in the first five seconds."
That distinction matters because it changes what you test. If the problem is confusion, testing headline wording makes sense. If the problem is lack of trust, you should be testing proof placement, not adjectives. The element is just where the problem lives.
Step 2: Write a real hypothesis
A hypothesis is not "the red button will win." A hypothesis has a cause and an effect, and it can be wrong. Mine look like this:
"Because visitors cannot tell what makes us different from competitors, clarifying the value proposition in the headline will increase demo requests."
See the structure? Observation, change, expected outcome. If you cannot state why you expect the change to work, you are guessing, and guessing scales badly. When a test wins and you understand why, you can apply the lesson everywhere. When it wins and you do not know why, you have one lucky page.
Step 3: Change one thing
This is the rule everyone knows and almost nobody follows. One test, one variable. If you rewrite the headline, swap the hero image, and move the form in the same variant, you will never know what moved the needle.
There is one exception I allow. If several elements work together as a single concept, like a completely redesigned hero section with a new message angle, that counts as one thing: the concept. But then you have to accept the tradeoff. You learn that the concept won, not which piece did the work. Follow-up tests can isolate the pieces later.
Step 4: Make sure you have enough traffic
This is where most tests die. Statistical significance needs volume, and landing pages often do not have it.
Here is a rough rule I use. If your page converts at around 2% and you want to detect a 20% relative lift (from 2% to 2.4%), you need roughly 25,000 to 30,000 visitors per variant. That shocks people. Your page might get 3,000 visitors a month, which means that test needs four months per variant. That is not a test worth running.
Two honest options when traffic is low. First, test bigger changes. A headline rewrite that reframes the whole offer can produce a 50%+ lift, and those need far fewer visitors to detect. Small tweaks are a luxury for high-traffic pages. Second, test further down the funnel.
Step 5: Split the traffic cleanly
Use a real testing tool or a proper server-side split. Do not do the thing I keep seeing: run version A for two weeks, then version B for two weeks, and compare. That is not A/B testing. That is comparing September to October. Seasonality, ad campaigns, day-of-week effects, a competitor's sale, all of it contaminates the comparison.
Run both versions at the same time, randomly assigned, ideally 50/50. And keep the split stable. If a returning visitor sees version A on Monday, they should see version A on Thursday. Tools handle this with cookies. DIY splits often forget it, and inconsistent experiences pollute your data and confuse your visitors.
Step 6: Decide the rules before you start
Before the test goes live, write down three things: the primary metric, the minimum sample size, and the minimum runtime.
The primary metric is the one that decides the winner. Usually that is your main conversion: signups, purchases, booked calls. You can watch secondary metrics like bounce rate or time on page, but they do not get a vote. If you let five metrics vote, you will always find a "winner" somewhere, and that is how teams lie to themselves with data. And never end a test before one to two full weeks: weekday and weekend traffic behave differently, and a Tuesday-to-Thursday test only describes Tuesday-to-Thursday traffic.
Step 7: Do not peek and stop early
This one hurts because every testing tool shows you live results with a tempting little "X% likely to win" badge. Ignore it.
Stopping a test the moment it hits 95% confidence is one of the most common ways to manufacture false winners. Early in a test, the numbers swing wildly. A variant can be "winning" at 300 visitors and losing at 3,000. This is called peeking, and it inflates your false positive rate dramatically. Every time you check and consider stopping, you are rolling the dice again.
My rule: set the sample size or runtime in step 6, then do not look at the results until you get there. I literally tell clients to hide the dashboard. Check it when the test is done, not before.
Step 8: Read the result like a skeptic
The test finished. One version won with 95%+ confidence. Before you ship it, ask two questions.
First, is the lift big enough to matter? A statistically significant 1.5% relative lift on a page that converts at 2% is a rounding error with extra steps. Implementation has costs: dev time, maintenance, the risk you broke something subtle. I generally want to see a lift worth the trouble, or at least a clear directional win on a change that costs nothing to keep.
Second, did anything weird happen during the test? A tracking outage, a site slowdown, a viral traffic spike from an unusual source. If your traffic mix changed mid-test, your result describes the spike, not your normal audience.
Step 9: Document it or it did not happen
Write down the hypothesis, the variants, the dates, and the result. Six months later, when someone suggests retesting the headline, the log shows it already lost twice. Without it, you will run the same losing test forever.
When not to A/B test at all
Testing is not always the answer. Do not A/B test when the page is obviously broken. If your form does not work on mobile, if the page takes nine seconds to load, if the headline describes a product you no longer sell, fix it. You do not need a test to tell you a broken thing is broken.
Do not test when you have no traffic and no patience. A test that needs six months will be obsolete before it finishes. In that case, use qualitative research: watch session recordings, run five user tests, read your chat logs. Small samples of real humans beat large samples of nothing.
The checklist I run before every test
- One clear problem, stated in terms of visitor behavior, not page elements
- A hypothesis with an observation, a change, and an expected outcome
- Exactly one variable changed between control and variant
- Enough traffic to finish within a reasonable timeframe, or a change big enough to detect
- Both versions running simultaneously with random, stable assignment
- Primary metric, minimum sample size, and minimum runtime decided in advance
- Full business cycles covered (at least one to two weeks)
- No peeking, no early stopping
- Results reviewed for weirdness before shipping
- Everything documented in a test log
Run your tests this way and something interesting happens. You will run fewer tests. And the ones you run will actually mean something. A short log of trustworthy wins beats a long log of coin flips every time. That is what a valid A/B test on a landing page really is: not a tool, not a dashboard, just the discipline to let the data finish talking before you decide.