---
title: "A/B Test WordPress Popups Without Cookies – Modal Kit"
description: "A/B test a modal’s words, style or timing with Modal Kit Pro. Visitors are split in the browser with no cookies, and a winner is only called at the end."
language: "en-US"
canonical_url: "https://modalkitwp.com/ab-testing/"
source_url: "https://modalkitwp.com/ab-testing/"
content_type: "text/markdown"
---

A/B testing · Pro

# Test it. Keep what *works*.

Modal Kit Pro tests a modal’s words, style or timing against up to three variants. Visitors are split in the browser and keep their variant, with no cookies, so tests run on static exports too. A winner is only called at the end.

[Get Pro](https://modalkitwp.com/pricing/)

[How a test works](#how)

4

**Variants per test**

A, plus up to three more. More variants need more traffic to reach a result.

7

**Days, the shortest run**

Run for 7, 14 or 28 days. Nothing is called before the end.

80%

**Certainty by default**

Pick 75%, 85% or your own, up to 99%, for each test.

0

**Cookies**

Each visitor’s variant is kept in the browser’s localStorage.

How a test works

## Set up in the editor, in one dialog

Variants live inside the modal, so B starts as a copy of A and you change only what you want to test.

01

**Add a variant**

Choose **+ Variant** under the canvas. In **Start an A/B test**, pick what will change, the **Goal**, the **Traffic split**, how long to **Run for** and the **Certainty needed**. **Create variant B** copies A.

02

**Edit B in place**

Switch between **A** and **B** under the canvas. While B is there, the bar says **Editing B only** and the modal has a dashed frame, so you always know which one you’re changing.

03

**Publish**

Publishing the modal starts the test. The **Modal Kit A/B Test** sidebar shows the split, what differs and the results so far, with **Pause test** and **End test without a winner**.

04

**Choose at the end**

When the test ends, the modal’s author gets an email. With a winner, **Apply B** or **Keep A**. With no clear winner, **Run 7 more days** or keep the one you prefer.

![The Start an A/B test dialog over a modal in the block editor. Content is switched on under What will change, with Style and Timing off; the Goal is Signed up (form sent) and the Traffic split slider is at 50 / 50. The + Variant button sits under the canvas.](https://modalkitwp.com/content/modules/modalkitwp-blocks/assets/docs/ab-testing.webp)




		Start an A/B test, opened from + Variant under the canvas.

What a variant can change

## Words, style or timing

Pick one or more in **What will change**, then a **Goal**: **Signed up (form sent)**, **Clicked a button**, **Played**, **Coupon used** or **Added to cart**.

**Content**

Words, images, blocks

Change the heading, the offer, the image or the button. Multi-step modals work too: each variant keeps its own steps.

**Style**

Style, accent, fonts

**Block → Styles** shows **Style · Variant B**. Picking a style, accent or fonts there changes B only, and **Use A’s style** goes back.

**Timing**

Trigger and delay

Give a variant **Its own trigger**: after the page loads, after time on the site, after scrolling, when leaving the page or after inactivity.

The layout, size, closing, overlay, colours and spacing are shared by every variant, so the test compares one thing at a time. In the **Modal Kit A/B Test** sidebar, give each variant a **Name** to find it on the results.

Split in the browser

## Each visitor gets one variant, and keeps it

The page carries every variant. The visitor’s browser picks one at the split you set and remembers it, so opening and showing the modal never waits on WordPress.

**No cookies**

The variant is kept in localStorage. Clearing site data removes it.

**Caches and static exports**

The choice is made in the browser, so cached pages and static exports run the test too.

**Search engines see A**

So do logged-in users in the roles under **Always show A to** (Administrator unless you change it).

**The variant on every event**

Results counts each variant separately, and events sent to Plausible, DataFast, Kobbe or GA4 carry `variant`.

**Pause any time**

**Pause test** shows everyone A and counts nothing per variant until you resume.

**About 1 KB**

Gzipped, and loaded only when a modal on the page has a test running.

No early winners

## A winner is called at the end, not before

Early days swing wildly. Until the test has run its full length, **Modal Kit → A/B Tests** says **Too early to call**, however far ahead one variant looks.

The page shows each variant’s shown, conversions, rate, the likely range and its chance of being the best, with a running-total chart and **Export CSV**: one row per day and variant.

Editing a running test starts a new round. The clock restarts, and earlier totals stay under **Before edit**.

Winner checks

**Enough conversions.** 100 in each variant by default. Change it with **Conversions per variant before calling**.

**Even split.** The shares must match the split you set, give or take what luck explains. If they don’t, the page says so and suggests looking for a cache or plugin serving one variant.

**Full test length.** 7, 14 or 28 days, so a good or bad weekday can’t decide it.

**The certainty you set.** The leader’s chance of being the best must reach your bar, 80% unless you change it. It’s checked once, at the end.

Lower certainty calls a winner sooner but is wrong more often: at 80%, about 1 in 5 calls could be luck.

### When it ends

**A winner**

**Apply B** makes it the modal’s only content; the version with every variant stays in its revisions. Or **Keep A**.

**No clear winner**

The page says why: too little certainty, too few conversions or an uneven split. **Run 7 more days**, or keep the one you prefer.

**Switch on its own**

Set **When it ends** to **Switch to the winner if there is one**, and the winner is applied for you. Otherwise both keep showing until you choose.

![The A/B Tests page for the Welcome offer modal after 14 days: a green banner says B wins with 35% more clicks, with Keep A and Apply B buttons; a table shows each variant’s shown, clicked, rate, likely range and chance of being best; below, a chart of the clicked rate as a running total.](https://modalkitwp.com/content/modules/modalkitwp-blocks/assets/docs/ab-tests.webp)




		The A/B Tests page when a test ends with a winner (sample figures).

Static exports

## Tests run on the export too

Variants are picked in the browser, so an exported site splits visitors like a live one. There’s no site behind it to count on, so you bring the totals from your analytics tool and get the same verdict.

`modal_converted · modal: welcome-offer · variant: b`

**1 · Read the variants**

Events carry the variant to Plausible, DataFast, Kobbe or GA4. Read each one’s views and conversions there.

**2 · Enter the totals**

Type them into **Totals from your analytics tool** on the A/B Tests page, or **Upload a CSV** with a variant column, views and conversions.

**3 · Check the result**

**Check the result** gives the same verdict as on a live site, from the totals you entered.

[More about static sites →](https://modalkitwp.com/static-sites/)

In the docs

[A/B testing →](https://modalkitwp.com/docs/ab-testing/)

[Results and analytics →](https://modalkitwp.com/docs/results/)

[Static exports →](https://modalkitwp.com/docs/static-exports/)

## Test the modal. Keep the one that works.

[Get Pro](https://modalkitwp.com/pricing/)

[Compare Free and Pro](https://modalkitwp.com/free-vs-pro/)
