Control heading (e2e-test)
Control subtitle (e2e-test)
Variant heading (e2e-test)
Variant subtitle (e2e-test)
One card per experiment registered against this route. Each card lists the experiment slug, the PR that introduced it, and any audience constraints. The middleware mutates the card body for visitors bucketed into a non-baseline variation. CTAs fire the experiment's primary goal via the click registry.
Control subtitle (e2e-test)
Variant subtitle (e2e-test)
Control subtitle (e2e-audience-test)
Variant subtitle (e2e-audience-test)
Top region — control content shows by default.
VARIANT TOP
The variant component for the top socket — this region is fully replaced when bucketed into variant. The middle stays put.
Stable middle — this region never changes regardless of bucketing. It sits between two swappable regions to demonstrate independent slots within the same card.
Bottom region — a baseline marketing block. The variant swaps this entire layout for a different one.
The variant replaced the entire body — different heading, different copy, different layout. Both trees are rendered server-side; the middleware just toggles which is visible.
Stat one
Stat two
Stat three
Open DevTools → Network and watch for POST /astro-api/experiments/track
when either button is clicked.