Feature Flags for Web

Use feature flags to control the availability of content or functionality on your website, without deploying new code.

Our initial release of feature flags was for mobile apps. Today’s release adds support for websites.

The format of a feature flag is a conditional if statement you add to your website code. It contains your flag name and wraps around the website code you want the flag to control.

After adding the flag to your website, you can manage the feature’s audience and schedule from the Airship dashboard. If something unexpected happens with the feature, or if you have reason to end access before its scheduled end time, you can turn it off for all users instantly, without having to update your website code.

Use feature flags for:

  • Premium features — Provide premium feature access only to paid users based on membership tiers.
  • Phased releases — Release features to segments of your audience over time to prevent a strain on resources, such as database queries, support tickets, or limited initial product supply.
  • Time-limited promotions — Turn on and off features that are meant to be time-restricted, manually or using an automated schedule, such as displaying a promotional banner only during a sale weekend.
  • Testing — Test features with a small segment of your audience before releasing the feature to the rest of your audience.


The following is the general workflow for using feature flags.

  1. Create a flag in the dashboard, defining:

  2. In the Review step when creating the flag, copy the code snippets and docs link, then give them to your developer.

  3. Add the flag to your website. This step is usually performed by a developer.

After you update your website with the flag code, the feature will be available to the configured audience the next time they visit the site, according to the flag’s schedule. Manage the flag from the Airship dashboard.

Requirements and documentation


Feature Flags are available for Airship customers participating in our special access program. Sign up here

Get all the details in the user guide.