• Product
  • Pricing
  • Docs
  • Using PostHog
  • Community
  • Company
  • Login
  • Overview
  • Top features
    • Product analytics

    • Funnels
    • Graphs & trends
    • Path analysis
    • Team collaboration
    • Visualization

    • Session recording
    • Heatmaps
    • Experimentation

    • Feature flags
    • Experiments
    • Correlation analysis
  • Apps
  • Event pipelines
  • Data warehouse
  • Self-hosting
  • API
  • Overview
  • Top features
    • Product analytics

    • Funnels
    • Graphs & trends
    • Path analysis
    • Team collaboration
    • Visualization

    • Session recording
    • Heatmaps
    • Experimentation

    • Feature flags
    • Experiments
    • Correlation analysis
  • Apps
  • Event pipelines
  • Data warehouse
  • Self-hosting
  • API

Feature flags

Experiments

Feature flags

Test, rinse, repeat. Roll out features safely.

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

Roll out new features safely

Deploy with feature flags to test updates with users, then rollback easily if there’s an issue.

Test multiple variants at once

Test many ideas at once, then breakdown analytics by feature flag to understand the impact.

Target users with any criteria

Roll out to a percentage of users, or target based on criteria like LTV, or users’ behavior.

How do PostHog Feature Flags compare?

Swipe right to compare.

LaunchDarklyOptimizelyFlagsmithGrowthBookPostHog
Platform 
Free plan
Open source
Self-hostable
Cloud hosting
Product analytics
Feature Flags 
Target by percentage
Target by user properties
Flag scheduling
Experimentation
Multivariate flags
Unlimited flags for free
3rd party plugins for free
Activity logs
Data export
Multi-environment support
  • Ian Vanagas
    Ian Vanagas
Jan '23
How to do a canary release with feature flags in PostHog
  • Yakko Majuri
    Yakko Majuri
Jan '23
Analyzing user behavior with cohorts
  • Ian Vanagas
    Ian Vanagas
Jan '23
Setting up Django analytics, feature flags, and more with PostHog
  • Neil Kakkar
    Neil Kakkar
Jan '23
How to run Experiments without feature flags
  • Ian Vanagas
    Ian Vanagas
Jan '23
Running experiments on new users
  • Yakko Majuri
    Yakko Majuri
Jan '23
How to track key B2B product metrics

Feature flags documentation

  • Learning resources
  • Creating feature flags
  • Persisting feature flags across authentication steps
  • Implementing the feature flag
  • Ensuring flags are loaded before usage
  • Bootstrapping flags
  • Forcing feature flags to update
  • Server-side local evaluation
  • Using locally
  • Roll out the feature flag
  • Roll out to a percentage of users or groups
  • Filter by user or group properties
  • De-activating properties
  • Feature flag persistence
  • Multivariate feature flags (beta)
  • Creating a feature flag with multiple variants
  • Using multivariate feature flags in your code
  • getFlagVariants
  • onFeatureFlags
  • Querying data by multivariate feature flag values
  • Experimentation
  • Further reading

Where else can you get self-hostable product analytics, session recording, feature flags, A/B testing, heatmaps, a library of 50+ apps, event pipelines, a data warehouse, and an API... all in one place?

For all the tools you need with the modern data stack you want, just use

.

Try PostHog Cloud - free
orSchedule a call
  • Product

  • Overview
  • Pricing
  • Product analytics
  • Session recording
  • A/B testing
  • Feature flags
  • Apps
  • Customer stories
  • PostHog vs...
  • Docs

  • Quickstart guide
  • Self-hosting
  • Installing PostHog
  • Building an app
  • API
  • Webhooks
  • How PostHog works
  • Data privacy
  • Using PostHog

  • Product manual
  • Apps manuals
  • Tutorials
  • Community

  • Questions?
  • Product roadmap
  • Contributors
  • Partners
  • Newsletter
  • Merch
  • PostHog FM
  • PostHog on GitHub
  • Handbook

  • Getting started
  • Company
  • Strategy
  • How we work
  • Small teams
  • People & Ops
  • Engineering
  • Product
  • Design
  • Marketing
  • Customer success
  • Company

  • About
  • Team
  • Investors
  • Press
  • Blog
  • FAQ
  • Support
  • Careers
© 2023 PostHog, Inc.
  • Code of conduct
  • Privacy policy
  • Terms