• Why PostHog?
  • Products
  • Pricing
  • Docs
  • Community
  • Company
Get started
  • Product OS
  • Product analytics
  • Web analytics
  • Session replay
  • Feature flags
  • Experiments
  • Error tracking
  • Surveys
  • Data pipelines
  • Data warehouse
  • LLM observability
  • Feature flags

  • Overview
  • Installation
  • Creating feature flags
  • Adding your code
  • Testing your flag
  • Best practices
  • Troubleshooting and FAQs
  • Tutorials and guides
  • Cutting costs
  • Features

  • Server-side local evaluation
  • Client-side bootstrapping
  • Remote config
  • Early access feature management
  • Multi-project feature flags
  • Scheduled flag changes

Getting started

Feature flags

Toggle features for cohorts or individuals to test the impact before rolling out to everyone.

Create your first feature flag

Questions? Ask Max AI.

It's easier than reading through 637 pages of documentation

Resources

Real-world use cases to get you started

  • Guide

    Best practices for feature flags

    Contains 9 examples

  • Guide

    Feature flags API

    Evaluate and update with the /decide/ endpoint

  • Guide

    Canary releases

    Gradual rollouts to a subset of users

  • Guide

    Bootstrapping feature flags in React

    Available at client-side load time

  • Guide

    How to set up one-time feature flags

    Show a component or content just once

  • Guide

    Cookie-based feature flags

    Storing feature flag values locally

Explore guides

Nifty things you can do with feature flags

Some use cases you may not have thought of

  • Add popups to a React app

    Using payloads to send arbitrary data to your frontend

  • Location-based site banner

    Regional announcements or country-based alerts

  • Sampling with feature flags and local evaluation

    Use flags to capture a subset of events for analysis

Visit the manual
  • Products

  • All products
  • Product analytics
  • Web analytics
  • Session replay
  • Feature flags
  • Error tracking
  • Experiments
  • Surveys
  • Product OS
  • Data connections
  • Customer stories
  • PostHog vs...
  • For startups
  • Pricing
  • How we do "sales"
  • Founder stack
  • Product OS

  • New? Start here.
  • SDKs
  • Framework guides
  • Data management
  • SQL access
  • Toolbar
  • API
  • Docs

  • Product analytics
  • Session replay
  • Feature flags
  • Error tracking
  • Experiments
  • Surveys
  • CDP
  • Data warehouse
  • Migrate
  • Community

  • Questions?
  • Guides
  • Integrations
  • Dashboard templates
  • Founders
  • Product engineers
  • Tracks
  • Merch
  • Contributors
  • Newsletter
  • PostHog FM
  • PostHog on GitHub
  • Cool tech jobs
  • Handbook

  • Why we're here
  • Our story
  • How we work
  • Values
  • Tips for working here
  • Team structure
  • Engineering
  • Design
  • Marketing
  • Company

  • About
  • Roadmap
  • Changelog
  • People
  • Small teams
  • Blog
  • Investors
  • Press
  • FAQ
  • Security
  • Support
  • Careers
© 2025 PostHog, Inc.
  • System status
  • 👉Generate a DPA👈(It's guaranteed fun!)
  • SOC 2
  • HIPAA
  • Privacy policy
  • Terms
  • Product OS
  • Product analytics
  • Web analytics
  • Session replay
  • Feature flags
  • Experiments
  • Error tracking
  • Surveys
  • Data pipelines
  • Data warehouse
  • LLM observability
  • Why PostHog?
  • Products
  • Pricing
  • Docs
  • Community
  • Company