ABSplits

A/B testing on Netlify

Netlify can inject a script into every page for you, so you can add AB Splits without touching your repository. After that, tests are started and stopped from the dashboard, with no redeploys.

Free plan · 1,000 visitors / month · no card

Set up in 3 steps

  1. 01In Netlify, open your site's configuration and find Snippet injection (under build and deploy post-processing).
  2. 02Add a snippet, insert it before </head>, and paste the AB Splits script.
  3. 03Trigger a new deploy so the snippet is included, then click Check install in AB Splits.

Snippet injection, before </head>

<script src="https://absplits.com/s.js" data-key="YOUR_SITE_KEY"></script>

Your real site key is shown in the dashboard after you add your site.

What to test on Netlify

All 56 examples →

AI writes variants

Choose a headline or button and AI reads your real page to write 3–5 alternatives, each with its reasoning.

Honest stats

Chance to beat the original, 95% intervals, and a plain keep-running or stop verdict. No p-value guesswork.

Results in GA4

Every tested visitor is tagged in GA4, so any report can be split by variant.

Questions

Is this the same as Netlify split testing?+

No. Netlify's built-in split testing sends traffic to different Git branches, so each variant is a full deploy. AB Splits changes elements on one deploy, with AI-written variants, goals and a verdict.

Do I need to redeploy for each test?+

No. Once the snippet is live, every test is configured in AB Splits and fetched by the snippet.

Will visitors see the original flash before the variant?+

The snippet is 8 KB (about 3.5 KB compressed) and hides the page for at most 0.8 seconds while it applies the variant. Returning visitors get their version from a local cache almost instantly.

A/B testing on other platforms