• Products
  • Pricing
  • Docs
  • Community
  • Company
Get started
  • Product OS
  • Product analytics
  • Web analytics
  • Session replay
  • Feature flags
  • Experiments
  • Surveys
  • Data pipelines
  • Data warehouse
  • AI engineering
  • Feature flags

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

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

Feature flags

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

Create your first feature flag

Resources

Real-world use cases to get you started

  • 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

  • Article

    Best practices for feature flags

    Contains 8 examples

  • 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

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

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

  • Product analytics
  • Session replay
  • Feature flags
  • Experiments
  • Surveys
  • CDP
  • Data warehouse
  • Build an app
  • Migrate
  • Community

  • Questions?
  • Guides
  • Apps
  • Dashboard templates
  • Founders
  • Product engineers
  • Tracks
  • Merch
  • Contributors
  • Newsletter
  • PostHog FM
  • PostHog on GitHub
  • Handbook

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

  • About
  • Roadmap
  • Changelog
  • People
  • Small teams
  • Blog
  • Investors
  • Press
  • FAQ
  • Security
  • Support
  • Careers
© 2024 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
  • Surveys
  • Data pipelines
  • Data warehouse
  • AI engineering
  • Products
  • Pricing
  • Docs
  • Community
  • Company