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
- 01Add the snippet to your theme's html.html.twig inside <head>, or use a module that injects scripts into the page head.
- 02Clear Drupal's cache, then click Check install in AB Splits.
- 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 →Lead with the outcome, not the product category
Cut the form to the fields you actually use
Say what happens next on the button
Offer a lower-commitment step than 'Book a demo'
Swap a generic testimonial for one with a result
Promise a response time
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