Experimentation, or A/B/n testing, replaces guessing with data. You show different versions of one part of a page to different visitors, at random, and let their behavior tell you which version works best.
In SitecoreAI, you run these tests in Page builder, on one component at a time. You can compare different versions, called variants, and SitecoreAI will measure them against a goal that you pick and then tell you when one of them is a clear winner. You can then make the winner the version that everyone sees.
In this post, we'll write a hypothesis, build a test, configure it, and look at how to read the results. We'll also cover how to test copy that SitecoreAI's AI has rewritten.
We'll keep using the example from the rest of this series: Brrrilliant Heat Pumps, a made-up installer of cold-climate heat pumps in Ontario, Nova Scotia and New Brunswick.
In our Brrrilliant example, we'll test the headline in our landing page's hero. Variant A is the current headline, "Heat pump rebates you may qualify for". Variant B is a version that leads with what the homeowner gets: "Stay warm for less with a cold-climate heat pump".
This is a scenario and not a test plan. We picked it to show how testing works in SitecoreAI, not because it's the test Brrrilliant should run first. In practice, start from a business goal and a question you need answered, and test what's most likely to move that goal.
Starting Off
We'll work in Page builder, where tests are created, configured and started. Before you start, check these things:
- That your site supports testing. A/B/n testing needs your site's front end to be on a recent enough version of Sitecore's development framework. Ask your developers or implementation partner to confirm it before you plan a test.
- That analytics are on for your site. Test results only appear if your site has an analytics identifier assigned in its settings. Your administrator can check this.
- That the page you want to test has no personalization. You can't create a test on a page with personalization configured.
Step 1: Write a Hypothesis and Pick a Goal
A test starts with a hypothesis. Write one sentence that says what you'll change, what you expect to happen, and how you'll measure it. For example: changing the button label will increase bookings. If the test shows no clear difference, you've learned that the change doesn't matter. If the new variant clearly beats the control, then your hypothesis was correct.
The measure in your hypothesis is what you will set as the test's goal. SitecoreAI uses it to judge each variant and to work out how many visits it needs so it can find the winner. You can choose one of these goals:
| Goal | What it measures | Pick it when you want to |
|---|---|---|
| Increase page views | Views of one or more other pages you pick | Move visitors on to a next step, such as a pricing or contact page |
| Increase form submissions | Submissions of the form being tested | Get more people to fill in the form you're testing (offered only when the tested component is a Sitecore form) |
| Decrease bounce rate | Visitors who leave from the page they landed on without viewing another | Keep people who land on this page from leaving straight away |
| Decrease exit rate | Visitors who leave your site from this page after viewing others | Keep people moving through your site instead of leaving from this page |
| Custom goal | An outcome you define yourself (with the help of your dev team or Sitecore partner) | Measure something the other four goals don't cover |
In our Brrrilliant example, the hero's headline is the first thing visitors read. The current headline leads with the rebates, and we want to test it against one that leads with the reader's benefit instead. So our hypothesis is: a headline about staying warm for less will get more visitors to complete the eligibility check than one about rebates.
Completing the check takes visitors to the eligibility results page, so the goal is Increase page views, tracking that page.
Tip: Keep a record of every test: its hypothesis, goal, dates and outcome. It helps you avoid repeating tests and shows which ideas tend to work for your audience.
Step 2: Create the Test and Its Variants
Create the test. In Page builder, open the page in Editor mode and click the component you want to test. In the toolbar that appears above it, click the flask icon. Give the test a clear name in the Create an A/B/n test dialog and click Save.


Note that test names must be unique, even after a test has ended. If a name is taken, the dialog says Name is already in use.

The test starts in Draft status. In the right-hand pane, you'll see its name, the Configure and Start buttons, and a tab for each variant:
- Variant A is the control: your component as it is today. You can't rename, reset or delete it.
- Variant B is empty until you decide what it shows.
Page builder marks the page with a flask icon in the site tree, so your team can see there's a test on it.
Set what each variant shows. Click a variant's tab and choose one of these:
- Copy original component: starts from a copy of variant A, with its own copy of the content, so you can change the text, layout or styling.
- Copy component and reuse items: copies variant A but keeps using the same content. This is for rearranging content inside a container, and only appears when the page has a component with dynamic placeholders.
- Swap with another component: uses a different component instead.
- Hide component: visitors who get this variant don't see the component at all.

To add more variants, click the plus next to the tabs. You can have up to six. You can also rename, reset or delete any variant except A while the test is in Draft.
In our Brrrilliant example, we selected the hero on the landing page and created a test called Hero headline. Variant A is the hero as it is. For variant B, we chose Copy original component. SitecoreAI gave the copy its own content item, so we could change its headline to "Stay warm for less with a cold-climate heat pump" without touching the original. The subheading, image and button are the same in both.



Step 3: Configure the Goal, Traffic and Automated Actions
In the right-hand pane, click Configure to open the A/B/n test settings. You can change the test's name here too. Most settings have sensible defaults, but you must set a goal before you can start. You can only change these settings while the test is in Draft.

Pick the goal. Under Configure test goal, click the goal from your hypothesis. If you choose Increase page views, also pick the pages to track from the site tree.


Split the traffic. Click Assign traffic to decide what share of visitors sees each variant. With two variants, the split is 50/50 by default. Each added variant starts at 0%, so you'll need to adjust the split, or click Evenly distribute. Use whole numbers, give each variant at least 1%, and make sure the total is 100%. An even split gives you results fastest.

Decide what happens at the end. Under Optional configuration, click Automated actions. You choose what SitecoreAI does once the test reaches a reliable result:
- If there's a winner, send all traffic to the winning variant (the default) or back to the control.
- If the result is inconclusive, keep the test running (the default) or send all traffic back to the control.
The defaults suit most tests: the winner becomes what everyone sees, and an unclear test keeps collecting data.

Leave the advanced options alone, at first. Under Advanced options, you can include only part of your traffic in the test, and change the numbers SitecoreAI uses to work out how many visits each variant needs. These include your current conversion rate, the smallest difference you want to detect, and how confident you need to be. The default confidence level is 95%, a common standard. Lowering it gets results sooner but makes them less reliable. If you aren't sure, keep the defaults.

You can also limit a test to one audience under Audience targeting, so that only visitors who meet your conditions take part. We'll cover audiences in a later post.
In our Brrrilliant example, we picked Increase page views and chose the eligibility results page to track, kept the 50/50 split, and kept the default automated actions. If the new headline wins, it will become the one that all visitors will see. Because the goal tracks a page, the eligibility results page has to be published before the test can start.
Step 4: Start the Test and Read the Results
Start the test. Once your variants and settings are ready:
1. In the right-hand pane, click Start. If something is missing, SitecoreAI tells you what to fix. An "Almost there!" message lists what's missing, such as a variant you haven't filled in.
2. Click Continue. The test moves to Pending, and its settings are locked.
3. Publish the page. The test goes Live, and visitors are randomly assigned a variant.




While the test is live, you can still edit the variants' content, but avoid it: any change can skew the results. Page builder reminds you with a warning whenever you open a page that has a live test.
Give it time. A test needs enough visits to collect data that separates a real difference from chance. SitecoreAI works out the minimum number of visits each variant needs from the advanced options in step 3. With the default settings, that's over 21,000 visits per variant, so a test on a page with modest traffic can take weeks. Run every test for at least a week, so it covers weekdays and weekends, and don't end it before it reaches the minimum. Stopping early can make a lucky streak look like a winner.
Read the results. Results start to appear about 24 hours after the test goes live. Go to Optimization, click Analytics, then Component A/B/n tests, and pick your site and test. The dashboard shows:
- the test's status: in progress (with the variant that's currently ahead), completed with a winner, or ended but inconclusive
- how each variant performs against the goal over time
- each variant's uplift over the control, its visits, and a confidence index that shows how reliable the result is


You can also check a test without leaving Page builder. In the test's pane, click View analytics. Variant performance shows how each variant is doing, and Applied configurations shows the goal, traffic split, automated actions and advanced options the test is running with. The site's dashboard lists every test on the site.


When there's a winner. SitecoreAI declares a winner only when the test has reached its minimum visits, the difference is at least the size you set, and the confidence level is met. If you kept the default automated actions, all traffic then goes to the winner. You can also end a live test yourself at any time: click End, choose the variant to keep as the default, click Save, then publish the page. Ending early means your result may not be reliable, so do it only when you have reason to. Until you publish, all traffic goes to the control, and Page builder reminds you that the ended test's outcome isn't live yet.

If the test ends inconclusive, that's a result too. The change didn't matter enough to measure, so keep the simpler version and test a bolder idea next.
Testing AI-Written Copy
Besides testing variants you build yourself, you can test copy that SitecoreAI rewrites for you against your own version. It's a quick way to find out who wrote it better: you or the AI.
1. In Page builder, select the component or text field you want to rewrite.
2. In the component's toolbar, click the sparkle icon. The Optimize Rich Text pane opens on the right.
3. Type a prompt in the box, such as "make this shorter and friendlier", and send it with the arrow. You can also pick a quick action, such as Improve writing or Make shorter.
4. Compare the Original and Optimized versions on the canvas, and try other prompts until you're happy. History keeps your earlier prompts and results.
5. Click A/B/n test and name the test. SitecoreAI creates it for you, with your original text as variant A and the AI version as variant B.

From there, it's a normal test. You can add more variants, for example from other prompts, then configure and start it as described in steps 3 and 4. Read the AI's copy carefully before you start, as you would any new copy: check facts, tone and anything legal or regulatory.
Tips for Testing
A few habits keep your tests useful and your results trustworthy:
- Start with what moves your goal. Calls to action, headlines, key images and forms usually matter more than smaller details, such as footer links. Test those first.
- Change one thing at a time. Leave the rest of the page alone while a test runs. If other parts change too, you won't know which change made the difference.
- Keep to one test per page where you can. SitecoreAI lets you run up to six tests on a page at once, and queues any more. But several tests on one page make it harder to tell which change worked, and conflicting changes can confuse visitors.
- Don't test what you personalize. A page with personalization can't host a test, so keep the two apart. Personalize pages where you know something about the visitor, and test pages where you don't.
Your A/B/n Testing Checklist
- Your developers have confirmed the site supports testing, and analytics are on
- The test has a one-sentence hypothesis and a goal that measures it
- The page you're testing has no personalization, and no other test is running on it
- Only the tested component differs between variants
- AI-written variants have been read and checked like any other copy
- The traffic split adds up to 100%, and the automated actions are what you want
- The test is started and the page is published
- You've planned to leave the test running for at least a week, and until it reaches its minimum visits
- The test, its outcome and what you learned are recorded for your team
Up Next
Our Hero headline test is ready to run. In the next post, we'll define the audiences Brrrilliant cares about, based on what visitors actually do on the site. We'll use them in a later post to personalize the landing page.

