Deploy with Vercel

A/B Testing with NextJS, Vercel, and Statsig

Your bucket: control

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. A page that matches the name of the control bucket also exists. The middleware pulls the bucket names using the Statsig SDK and redirects traffic to the corresponding pages.

You are currently assigned to the control bucket. Click the button below and refresh the page to be put in a different bucket. The button resets the cookie. Upon refreshing the page, the middleware will run and re-bucket you.