ABSplits

Drupal A/B testing

AB Splits works on any Drupal version that outputs HTML. Add the snippet once and test any page, without new content types or duplicated nodes.

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

Set up in 3 steps

  1. 01Add the snippet to your theme's html.html.twig inside <head>, or use a module that injects scripts into the page head.
  2. 02Clear Drupal's cache, then click Check install in AB Splits.
  3. 03Create a test with a CSS selector for the element you want to change.

html.html.twig, inside <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 Drupal

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

Does Drupal's page cache affect tests?+

No. Variants are applied in the visitor's browser, so cached pages split correctly. You only need to clear the cache once, after adding the snippet.

Will A/B testing hurt my SEO?+

No, not when it's done properly. AB Splits shows each human visitor one version, and search bots and crawlers always see your original page. Tests on separate URLs keep your canonical tags, so ranking signals stay on the original page. End tests when you have a result and ship the winner.

A/B testing on other platforms