Marketing & growth

A/B Testing

Create page variants, assign a traffic weight to each, and run server-side experiments without duplicating routes or adding a client-side testing layer.

A/B testing in React Bricks

What it is
A/B testing lets teams set up multiple page variants and define how traffic is distributed among them, so results can then be measured and compared in an analytics tool.
How React Bricks handles it
React Bricks lets editors create page variants, assign weights, and serve variants through official Next.js and Astro middleware.
Why it matters
Teams can test headlines, layouts, CTAs, offers, and campaign messages without duplicating routes or adding client-side testing scripts.

Experiment setup

Build every variant in the visual editor

Each variant is a complete page version. Editors can change the copy, add or remove bricks, and create an entirely different layout using the components registered for the project—all without leaving the page workflow.

  1. 01

    Create

    Add the page variants you want to compare.

  2. 02

    Weight

    Choose a 50/50, 80/20, or custom split.

  3. 03

    Publish

    Make the experiment available to visitors.

Delivery

Select variants on the server

Official middleware for Next.js and Astro selects a variant from its weight and uses a cookie to keep the visitor on the same experience across visits.

Selection happens before rendering, avoiding the flicker and layout shifts associated with client-side testing scripts.

Planning

Schedule complete experiment timelines

Combine variants with scheduled publishing to activate different sets at specific dates and times. A seasonal experiment can switch to the next campaign automatically.

Teams can prepare the sequence in advance instead of changing routes or deploying last-minute content swaps.

Ready to start building?