Get started – free
  • Home
  • Self-driving product
  • Context warehouse
  • Pricing
  • Docs
  • Demo
  • Talk to a human
  • Why PostHog?
  • Changelog
  • Company handbook
  • Store
  • Careers
  • Trash
  • Home
  • Self-driving product
  • Context warehouse
  • Pricing
  • Docs
  • Demo
  • Talk to a human
  • Why PostHog?
  • Changelog
  • Company handbook
  • Store
  • Careers
  • Trash
Experiments
Overview
Getting started
Start here
Installation
Creating an experiment
Adding your code
Testing and launching
Analyzing results
Managing lifecycle
No-code experimentsBeta
Concepts
Traffic allocation
Exposures
Metrics
Running time
Bayesian statistics
Frequentist statistics
CUPED
Holdouts
Guides
A/B testing promptsBeta
Tracking long-term metrics
Changing distribution after rollout
Experiments without Feature Flags
New user experiments
A/A testing
A/B/n testing
Holdout testing
Redirect testing
Fake door test
LLM A/B tests
Data Warehouse experimentsBeta
Tutorials and framework guides
PostHog AI
Analyze experiments with PostHog AI
Create experiments with MCP
Resources
Best practices
Troubleshooting
Changelog

Install experiments with PostHog

Contents

AI wizard

Install PostHog in seconds with our wizard by running this command in your project directory with your terminal (it also works for LLM coding agents like Cursor and Bolt):

Learn more

Wait for it to finish and test the setup once the wizard is complete.

Platforms

  • .NET
  • Android
  • Angular
  • Astro
  • Bubble
  • Django
  • Flutter
  • Framer
  • Go
  • iOS
  • Laravel
  • Next.js
  • Node.js
  • Nuxt
  • PHP
  • Python
  • React
  • React Native
  • React Router
  • Remix
  • Ruby
  • Rust
  • Svelte
  • Vue
  • Web
  • Webflow

To run an experiment using our API (without any SDK), see our docs on how to run experiments without feature flags.

Community questions

Was this page useful?

Jump to: