Run A/B tests on your site
Stop guessing what works. Test it with real users and let the data decide.
Tools that power the Run A/B tests on your site stack
- 1PostHog
Install posthog-js in your project with npm install posthog-js. Initialize it with your PostHog API key. In the PostHog dashboard, go to Experiments and create a new A/B test. Define your control and variant, set the rollout percentage, and add the feature flag check in your code to render the correct version for each user.
Open PostHog - 2Mixpanel
Install the Mixpanel SDK and instrument the key conversion events you want to measure (for example, Signed Up, Upgraded, or Completed Checkout). In your Mixpanel Funnels report, segment by the PostHog feature flag property to compare conversion rates between your control and variant groups.
Open Mixpanel - 3Vercel
For server-side variant assignment, use Vercel Edge Middleware to read the PostHog feature flag via the PostHog Node SDK before the page renders. This eliminates any flicker from client-side flag evaluation and ensures each user consistently sees the same variant across sessions and devices.
Open Vercel
Estimated Monthly Cost
Estimates based on publicly listed pricing. Actual costs may vary — always verify on each tool's pricing page.
Frequently asked questions
Costs depend on your scale. Most tools in this stack offer a free tier to start. Open the cost calculator on this page to estimate monthly cost based on your users and revenue.
This stack uses 3 tools: PostHog, Mixpanel, Vercel. Each tool is picked to work well with the others and to cover a specific part of the workflow.
Yes. The stack is a recommended starting point. You can replace any tool with an alternative you already use. Check the setup guide first to confirm the integration points you'll need to rebuild.
Most makers finish the 3-step setup in under an hour. Creating accounts and connecting the first integration takes the most time.
Related stacks
Set up feature flags
Ship features without sweating the launch. Roll out gradually, kill instantly if needed.
Shares: PostHog (relevance score 5)
See the full Set up feature flags workflowTrack MVP user behavior
See what your users actually do, not what you hope they do. Set up in an afternoon.
Shares: PostHog (relevance score 4)
Track MVP user behavior setup guideShip landing page today
Go live today, not next week. From blank page to launched in hours.
Shares: Vercel (relevance score 3)
Explore the Ship landing page today stackAuto-deploy every code push
Push code and relax. Every deploy is tested and shipped automatically.
Shares: Vercel (relevance score 3)
How to build Auto-deploy every code pushBrowse more stacks by category
Have a better stack?
Share your favorite tool combination and help other builders.