Smileline
Marketing

A/B page tests

Show two versions of a page at the same address, each to half of your visitors, and see which one brings more leads and bookings.

Ads → A/B tests compares two versions of one page of your website. Visitors to the page are split 50/50: half see your current page (version A), half see version B, at the same address and with no flicker. Visitors are counted without cookies, and every test measures leads, bookings, calls, WhatsApp taps and each step of the page for both versions. You pick what decides the winner — bookings unless you choose otherwise — and you pick the winner yourself: nothing changes on its own, and a test runs until you stop it.

A/B tests come with Core on either price list (not the SEO & Social plan). They work on pages of Smileline websites (in the UK and the US) and on websites built with Astro through the Smileline Astro integration. The online booking page and sites built with anything else can't be tested yet.

Who can do what

To do thisYou needWho has it
See tests and their resultsView ads, captured leads & resultsOwners, managers, front desk and analysts
Start, stop and archive tests, and change what decides the winnerConnect providers, manage lead forms & draft campaignsOwners and managers

Test a page of a Smileline website

On a Smileline website there is nothing to install:

On the website's Pages tab, open the page's menu and click Create version B. Smileline copies the page as version B, hidden from search engines, and opens it in the editor.

Change what you want to test: the headline, the offer, the photos or the layout.

Publish both pages. The test starts on its own once version A and version B are both live, named after the page, and appears on Ads → A/B tests.

While the test runs, neither page can be published, moved or archived: stop the test first. Visitors are split as described in How the split works, at version A's address, and the results and the ways to pick a winner are the same as for any test.

Test a page of an Astro website

Set it up

Ads → A/B tests has a Set-up and how it works panel with these steps, the code to copy with your practice's site key, and a tick beside each step once Smileline has seen it done. It stays open until the integration has checked in; after that, click How to set up or Set-up and how it works to open it again. Your developer does steps 1 to 4 once; step 5 is optional.

Add the Smileline integration. In your website's folder:

npm install @smileline/astro
// astro.config.mjs
import { defineConfig } from "astro/config";
import smileline from "@smileline/astro";

export default defineConfig({
  integrations: [smileline({ siteKey: "pk_YOUR_SITE_KEY", region: "eu" })],
});

Your siteKey and region are filled in on the panel, and under Settings → Website → Tracking → Astro (see Astro integration).

Give your server its key. Create a server key under Settings → Website → Tracking, then add it to your host as the secret SMILELINE_SERVER_KEY (on Cloudflare: a Worker secret). Never put it in your code or your repository. The step is ticked as Key in use once the integration checks in, because checking in needs the key.

Let both pages render on your server. Your project needs a server adapter, and each tested page needs this line at the top:

export const prerender = false;

Don't cache either page at your CDN, and leave the /_sl/ path free for the integration. The step is ticked as Both pages split once views of every running test's page arrive with a version.

Take out the old Smileline script tag (or @smileline/browser). The integration adds the script to every page itself; with both, every visit is counted twice.

Name your own steps (optional). Opening the page, seeing a form, starting it, sending it, calls, WhatsApp and bookings are measured on their own. For anything else your page has — each question of a quiz, a "Book now" button — name the step, and the test shows how far each version's visitors got:

<!-- counted when it's clicked -->
<button data-sl-step="Book now clicked">Book now</button>
// or from your own code
window.sl?.("step", "What is your age?");

Forms that post to your own server

A lead sent from a tested page counts for the version it was on. If your form posts to your own server and you forward the lead to Smileline yourself, add the page's version to the _sl attribution you send, or the lead won't count for either version:

const test = document
  .querySelector('meta[name="smileline-test"]')
  ?.getAttribute("content");
// _sl: JSON.stringify({ ..., ...(test ? { test } : {}) })

Start a test

Open Ads → A/B tests and click New test.

Give the test a name, such as "Invisalign page: new headline".

Enter the Page to test (version A) — the address visitors open today, such as /invisalign — and the page to Show instead (version B), such as /invisalign-b. Use paths only: no domain, no ? or #, and nothing under /_sl/, which belongs to the integration.

Under Decide the winner on, keep Booked or pick something else (see Pick what decides the winner). You can change it later.

Click Start test. Within about a minute, half of the page's visitors see version B at the address of version A.

A page can be in one test at a time: a path used by a test that isn't archived yet, as either version, can't start another.

How the split works

  • Visitors who open page A see A or B, half each, chosen on your website's server before the page loads: no flicker.
  • Someone coming back on the same device and connection sees the same version.
  • The address in the browser stays version A's. Search engines only ever see version A, and version B's own address is marked not to be indexed if someone opens it directly.
  • If version B fails to load, the visitor gets version A.

Counting without cookies

Nothing is stored on the visitor's device. Smileline counts visitors with an anonymous code made from their connection and browser that changes every month, and never links it to a person or a lead. The numbers are the same whether or not someone accepts your cookie banner.

Visitors whose browser sends Global Privacy Control are counted the same way: the code identifies no one and nothing is stored on their device.

Leads are counted from the form itself: a form sent from a tested page carries the version it was on, so the lead counts for that version, cookies or not. Only leads sent from the tested page carry a version.

Read the results

Each test is a card. At the top:

  • Its status — Running, Using B, Kept A, Stopped or Archived — and whether its results are Provisional or Final.
  • Decide the winner on, with what decides this test.
  • While it runs, two checks: the Split between the versions (amber when it is more uneven than chance explains), and Leads arriving with when the last lead came (amber when enough visitors arrived in the last day to expect a lead and none came — usually a broken form).
  • Where the test stands on what decides it: Too early to call, with how many of the 10 needed so far, counted in what decides it (for example 1 of 10 bookings needed to suggest a winner); B is ahead, not sure yet; or B is the better page. Under it, the chance that the version ahead is better, B's change on A with the range it likely falls in, and while it is not yet clear, when a winner should be suggested at this pace.

Page A isn't splitting appears when views of the tested page arrive without a version: usually the page is prerendered, or the integration isn't installed with the server key.

Beside each version's address, Open shows that version in a new tab, on your website's address, without counting you in the test: you see A or B as you choose, however your own visits were split. The link works for a few hours, so a copy pasted elsewhere soon counts its visitors again.

The card has five tabs.

Results

Every metric, for both versions, with each version's count and its rate per visitor:

MetricWhat it counts
VisitorsPeople who opened the page.
BookedVisitors whose lead, sent from the page, booked within 30 days of their first view — the dashboard's Bookings made. Each visitor counts once, however many times they book.
LeadsVisitors who sent a form from the page.
Leads that bookedThe share of those leads that booked: the quality of the leads.
Called or WhatsAppVisitors who tapped your phone number or your WhatsApp button.
Saw the formVisitors who had a form come into view.
Started the formVisitors who filled in or picked a first answer.
Your named stepsVisitors who reached a step your site named (data-sl-step or sl("step", …)), when both versions have it.
Time on the pageThe median time the page was visible.
Left within 10 secondsThe share of views that ended within 10 seconds, without scrolling or tapping. Lower is better.

Change, B vs A is B's change on A; for the goals, a small bar shows the range it likely falls in (90% of the time). Chance B is better is how likely B's rate is really the better one, given what has been counted so far. The row that decides the winner is marked Decides.

Open How results are counted under the table for the counting rules.

How far they got

Out of every 100 visitors who opened the page, how many of each version's visitors reached each step every version has: Opened the page, Saw the form, Started the form, Sent the form · lead and Booked within 30 days. Beside each, lost here is the share of the step before who didn't reach this one.

Below, Inside each version lists each version's own named steps, so two versions with different forms — a long quiz and a short form, say — can each be followed step by step. Only the steps both versions have can decide the winner.

Over time

Leads per 100 visitors or Booked per 100 visitors for both versions, day by day — as a Running total or for Each day on its own — and the visitors each version got per day. Early days swing the most; the lines settle as visitors add up.

Breakdown

Each version's visitors, leads and bookings by device and by where visitors came from (ad click ids and UTM tags, as on Analytics). A change is shown once the two versions have at least 10 leads in a group between them; smaller groups show too few. Use it to explore, not to pick the winner.

Side by side

Both versions, live, as a visitor's phone shows them. Scroll, tap and go through a quiz as a visitor would: nothing you do here is counted in the test, but a form you send reaches you as a real enquiry. The phones play no sound: videos on the pages stay muted. Above each phone are that version's visitors, leads and bookings.

  • Numbers on the page pins each version's numbers where they happen: on the form, the share of its visitors who saw it, started it and sent it; on your phone and WhatsApp links, the share who tapped them — each with how it compares with the other version. A pin out of view is listed under the phone, with Scroll to it.
  • Scroll together keeps the other phone at the same point of its page as the one you are scrolling.

The pages show once a visitor has seen the test on your website — its Website URL or a pinned domain in Settings → Website → Tracking; a page elsewhere is never shown. A Smileline website shows them on its own address. On an Astro website, Side by side needs the Smileline integration 0.3.0 or later; with an older one the phones say the page didn't answer. Before 0.5.1 a phone could now and then show "refused to connect" just after your website started up; reload the page, or update the integration. A test that is stopped without a winner or archived is no longer on your website, so it has nothing to show.

Pick what decides the winner

Every metric is measured whatever you pick: this only chooses which one Smileline uses to suggest a winner. Change it on the card under Decide the winner on at any time until the results are final, also after the test has started.

OptionWhen to use it
Booked (suggested)Visitors who book within 30 days. Slowest to read, closest to revenue.
LeadsVisitors who sent a form from the page. Faster to read, but some leads never book.
Called or WhatsAppVisitors who tapped your phone number or WhatsApp button.
A step both versions haveSaw the form, Started the form, or a step your site named on both versions.

Call a winner

Smileline suggests a winner once at least 10 visitors across both versions have reached what decides the test, and one version has at least a 90% chance of being better. Until then the card says how far it has got.

Owners and managers pick the winner in Pick the winner, at the bottom of the Results tab. The version ahead is highlighted with its chance:

  • Use B serves version B to everyone at version A's address, until you archive the test.
  • Keep A shows everyone the original page again. Nothing changes on your website.
  • Stop without a winner does the same as Keep A, without recording a winner.

You can pick at any time — you don't have to wait for a suggestion. Each asks you to confirm. Results stay Provisional after a test stops, because bookings from visitors who saw a version before it stopped can still arrive. They become Final once all of these are true:

  • every counted visitor's 30-day booking window has ended,
  • the website events received before the stop have finished processing (allow about two weeks),
  • nothing that could change the counts is still being retried automatically.

Until then the numbers can still change, usually only slightly. Enquiries waiting in your Review queue don't hold results back: if you approve one after the results are final, it doesn't change them. The counts cover the last 13 months of visitors, the time visitor detail is kept.

Archive a test

Archive a stopped test once its result is in place, so both pages are free for new tests. Archived tests stay at the bottom of the page under Archived tests.

After Use B, archiving stops version B being served at version A's address. Put version B's content on version A's page first — on a Smileline website, edit and publish version A — then archive.

On this page