Which headline should go live? Is this hero image better than that one? What should the copy on that CTA be? Good questions, and they have one answer: test!

A/B testing is simple. You show two or more versions of something to visitors, assign each visitor to a version at random, and compare the results against a goal you chose in advance. Random assignment means the groups differ only in the version they saw. So once enough visitors have gone through the test to rule out chance, you can attribute a difference in outcome to the change you made.

It also helps to know what testing is not. Testing tells you which version works best, usually on average, for the visitors in the test. Personalization, on the other hand, decides which version a particular group of people sees. I've seen the two concepts confused, so I thought I'd point it out. I'll cover personalization in a separate post. For now, think of testing as a way to find out what works, and personalization as a way to decide who sees what. They support each other, but neither depends on the other: you can personalize from research or data you already trust, and you can test without personalizing anything.

This post covers general guidelines and practical tips for getting started with testing. They apply on almost any platform, and where it helps I'll show how they work in SitecoreAI. If you're looking for the click-by-click setup, I will cover that in a future post.

1. Start with a Problem and a Hypothesis

The most common reason tests go nowhere is that they aren't grounded in a purpose and a sound plan. Run a test when the result will drive a real decision, not simply because testing is cheap. Start by identifying the problem. A good starting point sounds like "visitors reach the form but don't submit it," rather than "let's try making the form shorter."

You can usually find those problems in data you already have. Your analytics funnel shows where visitors drop off. Form analytics show which field people abandon. Session recordings and heatmaps show where visitors hesitate, or click on things that aren't links. And your sales and support teams hear the same objections every week. Each of these can point you to a problem worth testing.

Once you've identified the problem, write a hypothesis that can be proven right or wrong. Something like: "Because visitors abandon the form at fields they don't see a reason for, making only two of the form's six fields mandatory will lead to at least 20% more form submissions than the current form, which has four mandatory fields." It identifies the reason, the change, the measure and the comparison. The reason is important, and it is the part you should come back to if the test loses: it points to the beliefs you should question.

A good hypothesis names a single change. It follows a simple rule of thumb: change one thing at a time. That way, when the result moves, you know what caused it, and you can reuse that lesson on other pages and in future tests. Let's say you make four of the form's fields optional, rewrite its intro text and rename the submit button in the same test. If submissions go up, you won't know whether fewer required fields, clearer copy or a friendlier button did the work. The same applies if you swap a page's headline, image and button together and the result improves: you won't know which change helped.

One thing at a time doesn't mean small, though. A button color change usually produces a small effect, and small effects take a lot of traffic to detect. On a page with modest traffic, you'll get further by testing one meaningful idea, like a different offer, a shorter form or a new value proposition in the headline, even if it touches more than one element.

If you have more ideas than traffic, rank them before you start. A common approach is to score each idea on its potential impact, your confidence in the evidence behind it and the effort to build it, then work from the top. This method is called ICE scoring.

2. Choose a Goal That Reflects Real Value

Your hypothesis names a measure, and you'd want to be sure it's the right one, because the goal is what decides what "winning" means. A few guidelines help, whatever platform you use:

  • Pick the measure closest to business value. A form submission is more valuable than a click on the button that opens the form. Clicks are easy to move and easy to misread.
  • Know and watch your guardrails. A guardrail is a measure you don't want to hurt while you improve the main one. A bolder CTA might raise clicks but lower completed forms, or raise submissions but lower lead quality.
  • Keep the goal within reach of the change. A new hero banner is not likely to drive a conversion three pages later. Keep the change close to the goal.

In SitecoreAI: the measure in your hypothesis becomes the test's goal. For each test, you can choose one goal: increase page views, increase form submissions (Sitecore Forms tests only), decrease bounce rate, decrease exit rate or a custom goal. The page views goal counts views of a page you select, so you can use it to track a conversion that ends on another page, like a thank-you page after a form that isn't built with Sitecore Forms. Because a winner is declared on that one goal, check your guardrails in your analytics before you act on the result.

3. Check Your Traffic

A test needs enough visitors to tell a real difference from random noise, and SitecoreAI calculates that for you. With its default settings (a 2% base conversion rate, a 20% minimum detectable difference and 95% confidence), the minimum sample size is 21,110 visits per variant. For a simple two-variant test, that's roughly 42,000 visits to the tested page.

Every variant you add needs its own sample. A control plus two variants needs about 63,000 visits at the same settings, which is worth knowing before you add a third headline just to see how it does.

If a page gets 5,000 visits a month, a two-variant test would take more than eight months. That's too long: by then your campaigns, the season and possibly the page itself will have changed. In such cases, start with research. Pages with only a few hundred monthly visits are often better served by user feedback, session review or expert evaluation than by a test.

The setting that moves sample size the most is the minimum detectable difference. The sample you need grows roughly with the square of how small an effect you want to detect. At a 2% base rate, halving the minimum detectable difference from 20% to 10% takes you from about 21,000 to about 81,000 visits per variant. Doubling it to 40% brings you down to about 5,700. This is why the advice in section 1 to test meaningful changes matters most on lower-traffic pages: a bold change is more likely to produce a big effect, and a big effect is cheaper to detect.

I'd avoid lowering the confidence level just to finish sooner. It shrinks the sample you need, but you accept a higher chance of acting on noise.

In SitecoreAI: you can adjust the base rate, minimum detectable difference and confidence level in the test's advanced options while it's in draft. Use your own historical conversion rate for the base rate instead of the 2% default where you can. The same options let you include only part of your traffic in the test, which limits risk on an important page but stretches the test in proportion: at 50%, it takes twice as long. And if you add more than two variants, check the traffic split before launch, since extra variants start at 0%. The Evenly distribute option fixes that in one click.

4. Give the Test Time

Before you start the clock, preview every variant on desktop and mobile, make sure the form or link in each one works, and confirm the goal points to the right page. A broken variant is one of the most common causes of a dramatic loss.

Sitecore recommends running a test for no less than a week, so daily and weekly behavior patterns are covered. It also warns that stopping before the minimum sample size is reached invalidates the results.

Looking at the numbers is fine. Just don't stop the test because of them. Run in full weeks, let the test reach its sample size, and then read the result. Full weeks also give the novelty effect time to fade, since returning visitors sometimes click on something just because it's new.

Try to keep conditions steady while the test runs. Don't edit a variant mid-test, because visitors before and after the edit saw different things. Watch for shifts in traffic too. If a big email send or paid campaign starts halfway through, the mix of visitors changes, and a variant that suits that audience can look like a winner for everyone. Note these events in your test log so you can read the result in context.

In SitecoreAI: a winner needs three things: the minimum sample size, the minimum detectable difference and the confidence level. If the sample size is reached and the other thresholds aren't met, the test is inconclusive and no winner is declared.

5. Expect Some Tests Not to Win, and Plan for It

Some tests won't produce a clear winner, and that's normal. A "no difference" result still teaches you something. It can tell you the element wasn't the problem.

When you do get a winner, treat the lift as an estimate. Measured lifts tend to run a little high, especially when a test only just clears its thresholds, so expect a smaller effect once the winner is live. Check the page's numbers again a few weeks later.

Be careful with slicing results after the fact. Split a finished test by device, country and traffic source, and some slice will show a striking difference by chance alone. If one stands out, say mobile visitors clearly preferred variant B, treat it as a new hypothesis to test rather than a result. It can also be a sign that the best answer depends on who's looking, which is where personalization comes in.

Decide in advance what you'll do with each outcome, and keep a record of every test: what changed, why, what you found, and anything unusual that happened while it ran. Sitecore's best practices recommend documenting scope and changes so you can spot overlaps and avoid repeating tests. Over time, that log becomes your team's record of what your visitors respond to.

In SitecoreAI: while a test is in draft, you can set automated actions. If there's a winner, you can send all traffic to it or back to the control. If the result is inconclusive, you can keep the test running or send all traffic back to the control. Deciding this before launch keeps the result from turning into a debate.

Start Small, and Learn

Pick one important page, one clear problem and one change, and run it properly. Before you launch, check that:

  • You can name the problem and the evidence behind it
  • Your hypothesis identifies one change and one measure
  • Your goal is the measure closest to business value
  • You know which guardrails to watch
  • The page can reach the minimum sample size within a few weeks
  • Every variant previews correctly and has traffic assigned to it
  • No other test changes the same part of the page
  • Automated actions are set for both a winner and an inconclusive result
  • The test is in your log, with what you changed and why

Even an inconclusive result tells you something about your visitors. In the next post, I'll look at personalization and how it differs from testing.