Experiment Groups and Parameters
Learn how to define a Statsig experiment's variant groups and the parameter values your code reads, and understand which parts of the group structure you can change after the experiment starts.
Groups are the variant labels in the console, such as Control or Test. Parameters are the values your code reads to change the product or feature's behavior. Configure your parameters before your groups on the experiment's Setup tab. For why your code should read parameters rather than check group names, go to Read parameters, not group names.
Add groups and set parameter values
Define the parameters first. In the Groups and Parameters section of the Setup tab, select Add Parameter, give the parameter a name such as button_label or image_size, choose its type, then select Add. Each group gets a field for that parameter's value.
To add a group, select the + (Add Variant) control to the right of the existing groups. Statsig adjusts the user allocation automatically as you add groups.
In the Groups and Parameters section, you can also name, describe, and add variant images for each group. Group names and descriptions are labels that help you identify and compare variants in the Statsig console. Your code reads parameter values through the SDK and never reads group names, so renaming a group doesn't require a code change or change what users see. Settle on group names before you start the experiment: the Group Name field locks once the experiment starts, and group names act as join keys if you forward exposures to a warehouse. Descriptions and variant images stay editable while the experiment runs.
Warehouse exposure forwarding
If you use Statsig exposure forwarding, the daily export excludes groups at 0% or 100% traffic share by default. This is the split between groups, not the experiment's overall allocation. An experiment at 100% overall allocation with a 50/50 group split passes this percentage check. Other forwarding requirements still apply.
If you need exposures from experiment groups at 0% or 100%, contact Statsig Support. For details, go to Forwarded Data.
What you can change after the experiment starts
Set the group structure before you start the experiment. After an experiment starts, you can't add or delete groups, rename them, or change their percentage splits.
| Change | After the experiment starts |
|---|---|
| Add or delete a group | Not available |
| Change a group's percentage split | Not available |
| Rename a group | Not available |
| Change a group's description | Available |
| Change which group is the control | Available until you ship with holdback |
| Replace a group's variant images | Available |
| Stop one group from serving its values | Available through Disable a Group |
| Edit a group's parameter values | Available |
| Add a parameter | Available |
| Rename, retype, or delete a parameter | Available |
To change the group structure of a running experiment, reset it or create a new experiment. Both options re-randomize assignments and end the current analysis window.
Adding a parameter or editing parameter values during a run can mix materially different treatments into a single scorecard. Parameters define the values the SDK returns. They aren't a result dimension or a version label. If the treatment's meaning changed, start a new iteration instead.
Was this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.