Create an A/B test on a site
Defines a test of one page as a draft. Nothing changes on the live site until the test starts. Then write each version into the page’s code: read (await headers()).get("x-crevio-variant") ?? "control" and render that version, treating any unknown value as control. Deploy, and preview every version with ?crevio_preview=<key>:<variant> on the page’s URL before starting the test.
Headers
Body
What counts as a conversion. purchase counts orders placed through the site's checkout. Any other value is a tracker event name the site fires with window.crevio("<goal>"), such as lead_submitted or booking_requested: a visitor converts by firing it on the site after first seeing the page. pageview is refused.
^[a-z0-9_]{1,40}$Response
The draft test
How each version is doing, from visitors who saw only that version and what they did after first seeing it: the orders they placed for a purchase goal, or whether they fired the goal event. Null in lists, while the test is a draft, and when results are briefly unavailable. Recomputed at most every 5 minutes while running; frozen when the test ships.

