# Console: Banner & A/B testing

> Configure the consent banner and run statistically sound A/B tests to find the wording that converts best.

Source: https://croombit.com/en/docs/console-banner

## Banner configuration

Under **Consent → Banner** you configure what the visitor sees. Changes take effect on the next page load — no deploy needed.

| Setting | Options |
| --- | --- |
| Layout | `bar` (bottom strip) · `box` (corner) · `modal` (centre, blocks interaction) · `wall` (full-screen, forces a choice) |
| Theme | `auto` (follows `prefers-color-scheme`) · `light` · `dark` |
| Mobile layout | `compact` (default — on phones the buttons share one row and the text becomes a short scrollable block, so the banner covers about a fifth of the screen) · `desktop` (same design as on desktop, buttons stacked) |
| Position | `bottom-left` · `bottom-right` · `top` (bar only) |
| On phones | Bar or box only: a different layout and position on phones (up to 560 px), e.g. a box in the bottom-left corner on desktop and a bar along the bottom on phones. A modal or wall stays one on every screen. |
| Per-purpose toggles | Shows a toggle per category under the notice text, with "Save my choice" next to Reject all and Accept all. The notice text and the policy link stay on the first screen. |
| Button labels | Accept all · Reject all · Manage preferences — each editable per locale |
| Show decline | Toggle whether the "Reject all" button is shown (off hides it; "Manage" remains) |
| Advanced CSS | Plain CSS injected into the banner's Shadow DOM. It can't contain `<` or `@import`. |
| Links & logo | Privacy-policy link, statement links and logo must be `http://` or `https://` URLs. |

> **NOTE:** The CMP bundle reads the active config from `GET /v1/banner` on every page load. You can also update it programmatically via `PUT /admin/sites/:siteId/banner`.

## A/B testing

Run a controlled experiment on banner copy, layout or button labels. Go to **Consent → Banner → A/B tests → New test**.

1. **Create variants** — each variant is a full banner config override (different headline, layout, or button labels). Add 2–4 variants; traffic splits equally.
2. **Start the test** — the CMP bundle rotates variants by visitor (deterministic, stored in a first-party cookie) so each visitor always sees the same variant.
3. **Read results** — the console shows opt-in rate, 95% confidence interval, lift over control, and p-value per variant. Results update in real time.
4. **Pick a winner** — once a variant reaches statistical significance (p < 0.05), promote it as the active banner config. Stop the test to freeze the winner.

> **TIP:** Run tests in the **TEST** environment first to confirm the setup, then duplicate the test in LIVE. Opt-in rates differ between environments — don't compare across them.