Divi A/B testing
Divi has its own split testing tool, Divi Leads. AB Splits is an alternative that works on any page, without duplicating modules, with AI writing the variants and results going to GA4.
Free plan · 1,000 visitors / month · no card
Set up in 4 steps
- 01In WordPress, go to Divi → Theme Options → Integration.
- 02Paste the snippet into Add code to the < head > of your blog, and make sure head code is enabled.
- 03Give the module you want to test a CSS ID under Advanced → CSS ID & Classes.
- 04Create a test in AB Splits with that selector, for example #hero-title.
Divi → Theme Options → Integration → 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.
- Tests never run inside the Divi Builder or while you're logged in to WordPress, so editing your pages is unaffected.
What to test on Divi
All 56 examples →Lead with the outcome, not the product category
Say what happens next on the button
Cut the form to the fields you actually use
Remove the navigation from landing pages
Make the lead magnet title specific
Add risk-reversal microcopy under the button
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
How is this different from Divi Leads split testing?+
Divi Leads tests Divi modules by duplicating them inside the builder. AB Splits works on the live page from one snippet, writes variants for you, and reports a Bayesian chance to win plus GA4 events.
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.
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