ABSplits

WordPress A/B testing

AB Splits works on any WordPress site, whatever theme or page builder you use. Add the snippet to your site's header, pick an element, and test headlines, buttons and forms without editing your pages.

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

Set up in 4 steps

  1. 01Install any 'header and footer scripts' plugin, or add the snippet to your theme's header with a child theme.
  2. 02Paste the snippet into the header section so it loads on every page.
  3. 03Clear your caching plugin's cache, then click Check install in AB Splits.
  4. 04Create a test. Element tests use CSS selectors; right-click the element and choose Inspect to find one.

Site header

<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 WordPress

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 it work with page caching (WP Rocket, LiteSpeed, Cloudflare)?+

Yes. Variants are applied in the browser, so every visitor gets the same cached HTML and the snippet decides which version they see. Exclude s.js from JavaScript delay or defer settings so it can load early.

Can I test WordPress posts as well as pages?+

Yes. Use a URL pattern like /blog/* to run one test across every post, for example a newsletter sign-up box.

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