Splitlab home

Book a Demo

Splitlab home

Book a Demo

Splitlab home

Search for articles…

How Splitlab works

How Splitlab works

Splitlab runs your A/B and multivariate tests from a small script on your website. You add it once, and from then on you build, launch and change tests in the Splitlab dashboard without touching your site’s code again.

1. You add one snippet to your pages

Each workspace has a SmartCode snippet that already contains your project key. You paste it into the <head> of the pages you want to test, or use the WordPress plugin or the Next.js package, which add the same code for you.

The snippet loads the Splitlab engine, engine.js, from cdn.splitlab.io. It loads asynchronously, so it never blocks your page from rendering.

2. The engine fetches the tests for the current page

When a page loads, the engine reads your project key and asks Splitlab which experiments are active on that URL. Only the tests targeting that page are applied.

3. Each visitor is placed in a variant, and stays there

The engine buckets every visitor into one of the test’s variants according to the traffic split you chose: equal, custom percentages, or a multi-armed bandit that moves traffic toward the better-performing variant. The assignment is sticky, so a returning visitor sees the same variant on later visits.

4. Changes are applied before the page is shown

The snippet includes an optional anti-flicker script. It hides the page the moment it starts loading, and the engine reveals it as soon as the variant’s changes are applied, so visitors don’t see the original version flash first.

Two safety nets make sure nobody is left looking at a blank page:

  • a failsafe timeout (3,500 ms in the standard snippet) reveals the page even if the engine hasn’t finished, and

  • if the engine can’t load at all, for example because an ad blocker or a content security policy stops it, the page is revealed straight away.

5. Conversions and revenue flow back to your dashboard

As visitors convert, their goals and metrics are recorded against the variant they saw. Revenue can come from your checkout or CRM too: ClickFunnels, HighLevel, WooCommerce, SamCart or your own server can all report orders, and Splitlab credits each one to the buyer’s variant using their Splitlab visitor ID.

6. You stay in control from the dashboard

Launching, pausing and editing a test all happen in Splitlab. The engine simply fetches whatever is active for the page, so there’s nothing to redeploy on your site.

For the technical detail, see How it works in the developer docs.

7. Still stuck?

Not sure whether the snippet is running on your site? Get in touch through our contact page or email team@splitlab.io and tell us which page or integration you’re working on.

Still stuck?

Email team@splitlab.io or send us a message.

Contact us


Start optimizing for revenue today not just conversion rates.

Run experiments, track revenue per variation, and scale what actually makes you money.

We’ll increase your conversion rate by 30% or you don’t pay. Terms apply.


Start optimizing for revenue today not just conversion rates.

Run experiments, track revenue per variation, and scale what actually makes you money.

We’ll increase your conversion rate by 30% or you don’t pay. Terms apply.


Start optimizing for revenue today not just conversion rates.

Run experiments, track revenue per variation, and scale what actually makes you money.

We’ll increase your conversion rate by 30% or you don’t pay. Terms apply.