Back to blog
Landing Page A/B Testing: A Practical Guide for Marketers

Landing Page A/B Testing: A Practical Guide for Marketers

Marketer comparing two landing page variants

Landing page A/B testing means showing two versions of one page to randomly split visitors and measuring which one produces more of the action you want. The method is simple. The results go wrong in the setup: weak hypotheses, uneven traffic, too little data and early peeking. The teams that get reliable wins use a tool that splits visitors on a single URL without slowing the page. That is how we built Stellar: a no-code visual editor and a 5.4KB script, so you can launch a test without waiting on a developer.

TL;DR

  • Test one change per experiment, tied to evidence from analytics, heatmaps or form data, and write the hypothesis before you build anything.
  • Split visitors randomly after they land on one URL. Never point two ads at two pages and call it a test.
  • Calculate sample size before launch and run to that number. Stopping when the dashboard turns green inflates false positives.
  • Judge winners on the primary metric you chose in advance, then check devices, traffic sources and lead quality.
  • A lightweight, no-code tool keeps page speed intact and lets marketers run tests without engineering.

Table of Contents

What landing page A/B testing is, and how it differs from split testing

In an A/B test, a control (the current page) and a variant (your change) run at the same time. Each visitor is assigned one version at random and keeps seeing it on return visits. Because both versions share the same period, traffic mix and seasonality, the difference in conversion rate is attributable to your change rather than to the calendar.

You will see "split testing" used as a synonym. The practical distinction is the URL. In an A/B test, one URL serves different content through the testing tool, while a split test redirects visitors to separate URLs. Split URL testing suits radical redesigns, but it can create duplicate-content signals for search engines if significant traffic lands on a non-canonical URL. For most landing page work, same-URL testing is simpler and cleaner.

Multivariate testing changes several elements at once and measures their combinations. It needs far more traffic, so testing one variable at a time is the sensible starting point for most teams.

What you can test on a landing page

The highest-leverage elements are the ones that shape the visitor's decision to act. Shopify's landing page guide lists layout and element position, copy and product information, images and media, calls to action, social proof, forms and navigation.

In practice, start where the evidence points:

  • Headline and value proposition. It is the first thing a visitor reads and the quickest to change. See our headline test idea for variations to try.
  • Call to action. Wording, color, size and placement, including a sticky button on mobile.
  • Form length. Fewer fields usually raise submissions, but check lead quality downstream.
  • Hero media. Video against a static image is a classic test, covered in our video vs. image idea.
  • Social proof. Testimonials, logos and review counts, and where they sit on the page.

If you want a longer backlog, we keep a list of A/B testing ideas and a roundup of ten landing page tests. For the wider strategy, landing page optimization strategies show how testing fits into a conversion program.

How to run a landing page A/B test, step by step

1. Pick a page worth testing

Choose a page with steady traffic and one clear conversion: a purchase, a demo request, a signup. A page with a handful of visits a day will take months to reach a fair result. If traffic is thin, test a bigger change on a higher-traffic page rather than a button shade on a quiet one.

2. Find the problem before you invent the fix

Look at analytics for drop-off points, heatmaps for ignored sections and form analytics for abandoned fields. A sound hypothesis follows a fixed pattern: because we saw this evidence, we believe this change for these visitors will produce this result, measured by this metric. Writing it down forces you to name the metric and the audience, and it keeps you from rationalizing a result afterward.

3. Define the metric and the baseline

The baseline conversion rate is conversions divided by eligible visitors, multiplied by 100, using the same visitor definition in both versions. Pick one primary metric. Add secondary diagnostics such as scroll depth or element clicks, and guardrail metrics that must not get worse. Page load speed, return rate and unsubscribes are typical guardrails.

Guardrails are where script weight matters. A heavy testing script can slow the page and quietly erode the very conversions you are measuring. Our script is 5.4KB, built so the test does not become the problem. Goal tracking in Stellar covers clicks, form submissions and custom events, so the primary metric and diagnostics live in one place.

4. Build the variant

Change one thing, or one coherent theme, so you know what caused the result. In Stellar's no-code visual editor you edit the live page directly: swap the headline, move the form, change the button. No developer ticket is needed. Then check the variant on desktop, tablet and mobile before launch, because a variant that breaks on one device will lose for reasons that have nothing to do with your idea.

A/B Testing a Landing Page (Step-by-Step)

If your page runs on WordPress, Shopify, Webflow, Wix, Squarespace, Framer or Bubble, Stellar integrates with those builders directly, so installation does not require custom code work.

5. Size the sample before you launch

This is the step most teams skip. The standard setup, per the Stanford practical guide to controlled experiments, is a 95% confidence level and 80 to 95% power, and a common mistake is running underpowered experiments. The smaller the lift you want to detect, the more traffic you need.

A worked example: with a 3% baseline conversion rate and a goal of detecting a 10% relative lift, one practical guide estimates about 53,200 visitors per variant, roughly 106,000 in total. At 10,000 visitors a day that is about 11 days, which you would round up to two full weeks so every weekday is covered. Detecting only a 5% lift on the same baseline needs about 207,900 per variant, against 13,900 for a 20% lift. Halving the detectable difference roughly quadruples the required views.

Sample sizes for three detectable conversion lifts

The takeaway for a modest-traffic page: aim at bold changes with large expected effects, because subtle tweaks are unmeasurable at your volume.

6. Split traffic randomly and hold everything else still

Send visitors to each version at random, usually 50/50, and make sure each person keeps seeing the same version. Keep ads, keywords, audiences, emails and budget fixed for the whole test, and test one traffic source at a time.

7. Wait for the planned sample, then read the result

Open the result once the planned sample is reached. Check significance on your primary metric, then look at devices and traffic sources separately. A variant can win on mobile and lose on desktop, which tells you to ship it only where it works.

Testing landing pages with paid traffic

Paid traffic is where landing page tests most often break. Two ads pointing at two pages is not an A/B test: the ad platform optimizes delivery, so each ad reaches different people at different times, and the groups stop being comparable. The reliable approach is to send all clicks to one URL and let the testing tool split visitors after they arrive. Stellar does this on a single URL, so your ad setup stays untouched.

If you prefer to split inside the ad platform, Google Ads offers a Custom Experiments feature with cookie-based splitting, where the same user always sees the same version, and search-based splitting, which can reach significance faster on low-volume campaigns. The same checklist advises turning off Final URL Expansion in Performance Max, since Google can reroute traffic and invalidate the experiment. Our guide to Google Ads experiments walks through the setup.

For lead generation, a higher form-completion rate can hide worse leads. Match leads to CRM outcomes and judge winners on qualified leads or sales, not just submissions.

Reading results without fooling yourself

A p-value of 0.03 means a gap at least this large would appear about 3% of the time if both versions truly converted equally. It does not say the variant has a 97% chance of being better, and the American Statistical Association's 2016 statement, as summarized here, cautions against hinging decisions on a 0.05 threshold alone. The same example shows how sample size changes the picture: 5% against 6.5% gives p of about 0.15 at 1,000 views per version but about 0.013 at 3,000.

Three habits keep your reads honest:

Common mistakes that produce false wins

  1. Testing without a hypothesis. Random changes yield random results and no learning.
  2. Running underpowered tests. Without a sample-size calculation, a flat result means nothing.
  3. Peeking and stopping early. See the simulation above.
  4. Changing the campaign mid-test. New ads, audiences or budget shifts contaminate the comparison.
  5. Ignoring flicker. Client-side tools can cause page flicker, which distorts results and hurts the experience. A small, fast script reduces the risk.
  6. Declaring victory on clicks alone. Check downstream quality and guardrail metrics.

For more on building a repeatable program, see our landing page A/B testing strategies and the complete guide to A/B testing landing pages.

Our perspective

Most landing page tests fail before the first visitor arrives. The page was chosen by habit, the change was a hunch, and the tool was heavy enough to slow the page it was measuring.

We built Stellar around the opposite approach. A marketer should be able to open the visual editor, change the headline, define a goal and launch the same afternoon, without a developer and without adding weight to the page. That is why our script is 5.4KB, and why real-time analytics and goal tracking sit in the same place as the editor.

The discipline still belongs to you: one hypothesis, a planned sample, a primary metric, no peeking. A fast tool makes that discipline cheaper to practice, because the cost of running the next test drops to minutes of editing rather than weeks of waiting on engineering.

Juan

Start testing your landing page with Stellar

Stellar is built for marketers and growth teams at small and mid-sized businesses. You get a no-code visual editor for web and mobile, dynamic keyword insertion for personalizing landing pages to the ad keyword, advanced goal tracking, real-time analytics and a data API for reporting. Pricing follows monthly tracked users: the Sandbox plan is $0 per month, Plus is $29 per month, Pro is $99 per month and Scale is $399 per month. Enterprise has no published price. The free plan covers businesses under 25,000 monthly tracked users, enough to run your first landing page test. See the plans and start testing.

Gostellar

FAQ

How do I A/B test a landing page in Google Ads?

Send all ad clicks to one URL and use a testing tool to split visitors after they arrive, or use Google Ads Custom Experiments to divide traffic between pages. Do not run two separate ads to two pages, because the platform's delivery optimization makes the groups incomparable.

How long should a landing page A/B test run?

Run it until you reach the sample size you calculated before launch, rounded up to full weeks so each weekday is represented. With a 3% baseline and a 10% relative lift target, that was about 11 days at 10,000 visitors a day, planned as two weeks.

Can I A/B test a home page the same way?

Yes. The method is identical: one hypothesis, a random split on one URL, a primary metric and a planned sample. Home pages usually have several goals, so choose the single action that matters most for the test.

What is the difference between A/B testing and split testing?

The terms are often used interchangeably. Strictly, A/B testing serves different content on one URL, while split testing sends visitors to separate URLs, which suits full redesigns.

Sources

Recommended