This article helps you:
Create new variants, which will be compared to the control (or baseline)
Add additional code to your variants, to create more dynamic user experiences
The next step in designing your experiment is to create at least one variant. Amplitude Experiment compares your variants with the control, which is usually your product’s current user experience. This way, Experiment measures the performance of the variant against a known quantity, the performance of your app today.
Amplitude Experiment creates your initial variant; by default, and names it treatment
, though you can edit the variant and give it a different name if you prefer.
To add additional variants, follow these steps:
Click + Add a variant. The Create Variant panel opens.
Give your variant a name and a value. Value is a string, that by default, is a slugified version of the variant name.
When you implement the experiment on your codebase, use the value of the variant to reference it. Experiment SDKs return variant values, which are all lower case, and don't contain spaces.
Add a description of the variant. This step is optional, but recommended.
Add an optional payload. A payload is a JSON object that can dynamically change a variant’s experience without requiring you to write more code.
For example, imagine you’re testing a new splash screen on a marketing webpage. You might get early results that suggest different content might improve the performance of the splash. Instead of going into your codebase and making changes to the variant there, you can just include those changes in a payload, and Amplitude Experiment implements them automatically.
Paste or type your code into the window.
Click Apply.
There is no limit to the number of variants you can add to an experiment, but adding too many can make it harder for your experiment to reach statistical significance. Try to keep your experiments limited to a handful of variants, at most.
Amplitude Experiment uses the first variant listed as the control. You can change this by dragging a different variant to the top of the list. Whichever variant you label A when your experiment launches is the control.
Unless you specify otherwise, Amplitude Experiment splits traffic evenly between your variations. However, you can opt to send more traffic to specific variations by customizing your variant distribution. Click Customize and manually set the traffic percentages for each variation. The percentages must add up to 100%.
Sometimes, you may want to spread traffic differently for each user segment you’ve included:
This can introduce bias into your experiment results. You should generally adhere to uniform allocation ratios across all user segments in an experiment.
Non-uniform allocation ratios often happen inadvertently, when users change their rollouts and variants while an experiment is running.
Amplitude Experiment gives you the option to use stratified sampling (for example, non-uniform allocation ratios) if you need it. Just switch the Allow rollout controls per segment toggle to On. (This option will only be visible if you've selected Targeted Users.)
This switch is visible only for experiments, and not for feature flags. Amplitude disables it while your experiment is active.
When you’re ready, click Continue to move on to the rollout phase.
The next step is to set the rollout percentage for this experiment. This is the percentage of the users included in the experiment’s user segments who take part in the experiment. Find it in the Rollout section of the experiment design panel.
Manually enter the percentage of your audience that should be eligible for bucketing into the experiment. If you roll your experiment out to less than 100% of your users, the balance sees your default product experience, and aren't included in any experiment calculations.
Amplitude Experiment evaluates for users included in rule-based user segments before those not covered by a user segment. However, it evaluates for any individual user or device IDs prior to both.
Next, it's time to finalize your experiment's statistical settings.
April 30th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2025 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.