A/B testing on WordPress: how to do it without a heavy plugin
A/B testing on WordPress has two enemies: cache plugins, which serve the old version and flicker the page, and page builders, which generate different HTML than you see in the editor. You can do it right with a light snippet, no extra heavy plugin.
WordPress renders with themes and page builders (Elementor, Divi, Beaver, Bricks) and almost always has a cache plugin in front (WP Rocket, LiteSpeed). A poorly installed A/B test flickers: the cache serves the original page and the variation only shows up after. Donnu solves it with an anti-flicker snippet under 6KB that applies the variation before the screen paints, and you do not need to install another optimization plugin.
How to install Donnu on WordPress
- With WPCode (recommended). Install the free WPCode plugin, create a header snippet and paste the Donnu line. It injects into the <head> of every page, with no manual theme editing.
- Via Google Tag Manager. If you already use GTM on the site, add Donnu as a Custom HTML tag on all pages. Zero theme editing.
- Tune the cache. Mark the Donnu snippet so the cache plugin does not defer or combine it. That makes it load early and the anti-flicker work. Donnu has a checker that confirms the install.
What to test on WordPress
Headline and first fold
Test the headline promise and the hero subtitle. It is the highest-leverage change on any page built with a page builder.
Call to action
Test the text and color of the main button (buy, subscribe, contact). Donnu edits it right on the page, even inside Elementor blocks.
Form
Test how many fields the form asks for and the text above it. Less friction usually means more leads.
Frequently asked questions
- Do I need an A/B testing plugin on WordPress?
- You do not need a dedicated A/B testing plugin. Donnu is a snippet you paste via WPCode or fire via GTM. That keeps the site lighter than running another heavy PHP plugin.
- Does it work with Elementor, Divi and other page builders?
- Yes. Donnu edits the final HTML the visitor receives, so it works regardless of the builder. The visual editor selects any text, image or button on the rendered page.
- Does WordPress cache interfere with the test?
- Only if the snippet is deferred or combined by the cache plugin. Just exclude it from those optimizations. Donnu anti-flicker avoids the flash typical of testing on a heavily cached site.