[Sample] Migrating A/B tests to Statsig without pausing experiments
Sticky bucketing, server-side reads, and running both tools in parallel.
[Body copy. Serif at 20px on a 680px measure. Headings inside articles switch back to Geist. Links in prose, like this one, get the highlighter on hover.]
Read the variant on the server
// sample · resolve once per request so the page never flashes control
const exp = await statsig.getExperiment(user, 'pdp_gallery')
const layout = exp.get('layout', 'control') Demo · Astro island