Deploy with Vercel

A/B Testing with NextJS, Vercel, and Statsig

Your bucket: test

Performant experimentation with Statsig

In this template we use Statsig's Server SDK at the edge to pull experiment variants and show the resulting allocation. We leverage the edge config integration to pull Statsig configurations from the edge. As long as you have a bucket assigned you will always see the same result, otherwise you will be assigned a bucket to mantain the odds specified in the experiment.

The variation's bucket is statically generated at build time in a /bucket page. All changes for the experiment should be made in this page. The root page is the control in the experiment. The middleware pulls the bucket names using the Statsig SDK and redirects traffic to the corresponding page based on which bucket a visitor is assigned to.

You are currently assigned to the test bucket. Click the button below to reset your cookie and refresh the page. Clicking the button will trigger the middleware to run and will re-bucket you.