Feature flags

Safely roll out features to specific users or groups

Test changes with small groups of users before rolling out wider. Analyze usage with product analytics and session replay.

Screenshot of a feature flag in PostHog
  • cut failure rates by 90%

    "Feature flags are crucial for us. We use them as kill switches for all our features."

    Read the story
  • increased registrations by 30%

    "Enables a ‘slow rollout’ strategy... while also analyzing feature adoption and performance in the same tool."

    Read the story
  • improved feature roll-out with flags

    "The integrated insights and feature flags help us monitor how users with specific flags enabled are using features"

    Read the story
  • switched from an in-house tool

    "Feature flags immediately bought a lot of value. What’s really elegant is how flags interlink with product analytics."

    Read the story

Features

  • Release conditions

    Customize your rollout strategy by user or group properties, cohort, or trafic percentage

  • Multivariate feature flags

    Simultaneously test multiple versions against a control group

  • Test changes without touching your codebase

    JSON payloads let you change text, visuals, or entire blocks of code without subsequent deployments

  • Developer-friendly automation

    Automated usage reports, IP address resolution (for location-based targeting), and recall user properties to avoid passing them manually every time

  • Early access feature opt-in widget

    Allow users to opt in to (or out of) specified features. Or use the API to build your own UI.

  • History & activity feed

    See who hit a feature flag, the flag’s value, and which page they were on

  • Local evaluation

    Improves speed by caching a flag’s value on initial load

  • Instant rollbacks

    Disable a feature without touching your codebase

  • Bootstrapping

    Get flags and values to trigger changes immediately on page load

  • Persist flags across authentication steps

    Make sure users have a consistent experience after login

  • Flag administration

    See the history of a feature flag or control who can modify flags with user roles

  • SDKs or API

    Copy code snippets for your library of choice, or implement yourself with the API

  • Multi-environment support

    Test flags in local development or staging by using the same flag key across PostHog projects

Answer all of these questions (and more) with PostHog Feature flags.

Usage-based pricing

Use feature flags free. Or enter a credit card for advanced features. Either way, your first 1,000,000 requests are free – every month.

Note: Feature flags and A/B testing are currently packaged together and share volume limits.

Free

No credit card required

Unlimited

All features, no limitations

Requests

1,000,000/mo

Unlimited

Features

Boolean feature flags
Included
Included
Multivariate feature flags & experiments
Not included
Included
Persist flags across authentication
Included
Included
Test changes without code
Included
Included
Multiple release conditions
Included
Included
Release condition overrides
Included
Included
Flag targeting by groups
Included
Included
Local evaluation & bootstrapping
Included
Included
Flag usage stats
Included
Included
A/B testing
Not included
Included
Group experiments
Not included
Included
Funnel & trend experiments
Not included
Included
Secondary experiment metrics
Not included
Included
Statistical analysis
Not included
Included
Data retention

1 year

7 years

Monthly pricing

First 1 million requests
Free
Free
1-2 million
-
$0.000100
2-10 million
-
$0.000045
10-50 million
-
$0.000025
50 million+
-
$0.000010

FAQs

PostHog vs...

LaunchDarklyCompare to PostHog
Flagsmith
Target by percentage
Target by user properties
Flag scheduling
Experimentation
Multivariate flags
Unlimited flags for free
Free third-party plugins
Activity logs
Data export
Multi-environment support
Automatic IP resolution
Recall user properties by default

So, what's best for you?

Reasons a competitor might be better for you (for now...)

  • Triggers and workflows to enable/disable flags on other events
  • Data exports

Reasons to choose

  • Integration with other analysis products
    • View replays attached to a flag, analyze data based on a flag, etc.
  • JSON payloads
    • Flags can return JSON and trigger other in-app changes (like displaying a banner)
  • Targeting options
  • Early access management suite for toggling betas or new features

Have questions about PostHog?
Ask the community or book a demo.

Featured tutorials

Visit the tutorials section for more.

  • How to do a canary release with feature flags in PostHog

    A canary release or canary deployment is the process of rolling out a new feature to a subset of users before releasing it to a larger group. Once satisfied with tests and analysis, the feature rolls out to a larger group (or everyone).

    Read more
  • How to evaluate and update feature flags with the PostHog API

    Learn how to use the decide endpoint to evaluate your feature flags (both boolean and multivariate), get data about them, and update them.

    Read more
  • How to bootstrap feature flags in React and Express

    Bootstrapping feature flags make them available as soon as React and PostHog load on the client side. This enables use cases like routing to different pages on load, all feature flagged content being available on first load, and visual consistency.

    Read more
  • How to set up Angular feature flags

    Learn you how to set up the tools PostHog provides by creating a basic Angular app, adding PostHog, and then using it to capture events and manage feature flags.

    Read more

Install & customize

Here are some ways you can fine tune how you implement feature flags.

Explore the docs

Get a more technical overview of how everything works in our docs.

Meet the team

PostHog works in small teams. The Feature Success team is responsible for building feature flags.

(Shockingly, this team prefers their pizza without pineapple.)

Roadmap & changelog

Here’s what the team is up to.

Latest update

Feb 2024

Graphs and significance calculation added for secondary metrics

You've been able to add secondary metrics to A/B experiments in PostHog for a while, but we've now added much better reporting around them.

The new graphs and significance calculations will help you determine if there are knock-on effects to your experiments away from the primary metric.

For example, you may test a change to your sign-up flow to improve conversion as a primary metric, but you may also need to know about impact to activation as a secondary metric. Now you can understand both easily!

Up next

  • Feature Success Analysis

    Bringing together different parts of PostHog (flags, replay, surveys) to allow users to better analyse the success of a new feature.

  • Users & recordings linked to feature flags

    We want to make it easier for those who use feature flags to get information on users attached to a particular feature flag, and gather more information on those users' experience through session recordings.

Questions?

See more questions (or ask your own!) in our community forums.

  • Question / Topic

Pairs with...

PostHog products are natively designed to be interoperable using Product OS.

This is the call to action.

If nothing else has sold you on PostHog, hopefully these classic marketing tactics will.

Eco-friendly

PostHog Cloud

Digital download*

PostHog Cloud
People on G2 think we're great

Notendorsed
by Kim K

*PostHog is a web product and cannot be installed by CD.
We did once send some customers a floppy disk but it was a Rickroll.

  • Select your cloud
  • Starts at:
    $0Free>1 left at this price!!

Hurry: Tons of companies signed up . Act now and get $0 off your first order.