Next.js A/B Testing Demo

Using Next.js Middleware

Using middleware to route to different SSG endpoints

Using Google Optimize

Same content where A/B tests deployed via client-side optimize.js library

Baseline

Without any A/B testing as a baseline