Skip to main content

AB Testing

Many A/B testing tools work with Next.js, using the middleware capabilities built into recent versions of Next.js is becoming an increasingly attractive option to run performant tests with minimal complexity.

Built-in Capabilities

Vercel has demonstrated how to use middleware for A/B testing on their own site to great effect.

The middleware transparently redirects users to different variants, which can be used to assess the impact on metrics.

This allows running tests at the edge for optimal performance.

Open Source

Open source tools like GrowthBook and PostHog are also great choices.

GrowthBook

GrowthBook is an open source platform for feature deployment and A/B testing.

It's a great tool for experiment reporting, tracking features, and integrating with data sources like Google Analytics and SQL databases.

PostHog

PostHog provides an experimentation tool that makes it easy to set up A/B tests in Next.js apps.

It allows implementing tests on both the client-side and server-side in Next.js.

Commercial Tools

Eppo

Eppo is considered one of the most complete experimentation platforms, going beyond just website A/B testing. It enables self-serve experimentation for any team with an intuitive interface while still providing advanced features.

AB Tasty

AB Tasty is an affordable and user-friendly tool for companies just getting started with conversion optimization. It offers A/B testing, split testing, multivariate testing, and more with a visual editor.