Skip to content

servoice/nextjs-vercel-edge-ab-test-example

Repository files navigation

Next.js + Vercel Edge Functions + Amplitude A/B Test

This sample app shows you how to set up a simple A/B test with Vercel Edge Functions. In this example, we run a simple 50/50 split experiment with button colors and log the results to amplitude for analysis.

Example App

Amplitude Dash

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Git clone this repository, add in your NEXT_PUBLIC_AMPLITUDE API key in a .env.local file

npm install && npm run dev

Releases

No releases published

Packages

No packages published