Skip to content

Create a Local Evaluation Flag

Guide to creating a local evaluation flag, or migrating an existing remote evaluation flag to local evaluation.

Create a local evaluation flag or experiment

  1. Create a flag or experiment as you normally would, but select the Local option for the Evaluation Mode setting.

    Screenshot of the flag creation modal with evaluation mode setting

  2. Within your new experiment, set your server-side deployment, configure the allocation (for example, target 100% of users), and activate your flag.

Done

Your local evaluation experiment has been set up and is ready to using a local evaluation sdk.

Migrate an existing remote flag to local evaluation

You may retroactively transition a remote flag to local evaluation mode by changing the flag settings and updating the bucketing key from Amplitude ID to Device ID or User ID.

Warning

Migrating a flag from remote to local evaluation mode will change the bucketing behavior. Before migrating, your flag will need to be inactive. You need to make sure that all targeting rules abide by the limitations of local evaluation.

  1. Change the flag's "Evaluation Mode" setting to "Local" in the Advanced Settings section of the Configure tab.

    Screenshot of advanced settings with evaluation mode picker

  2. Update the "bucketed by" setting from Amplitude ID to Device ID in each "Rule Based User Segment" and "All Non-Targeted Users" Section.

    Screenshot of allocation configuration with "bucketed by" setting