Create segments for experiment variants
- Experiment Name
- Experiment ID
- Experiment ID with Variant
The Variant dimension will be deprecated shortly.
While the primary focus of an experiment is to find the variant that gives you the specific improvement you want (e.g., more goal conversions, lower bounce rate, etc.) you can also examine how behavior differs between variants and learn about their individual advantages and disadvantages in the process. For example, while the focus of an experiment might be on increasing conversions for a specific goal, you might discover that users in another variant spend more money overall.
Experiment dimension scope
Experiment dimensions are session-scoped. However – unlike most session-scoped dimensions – if a user is included in multiple experiments in the same session, the experiment dimensions will have multiple values that don’t overwrite the others. The experiment dimension values will be set on all experiment sessions.
Use segments to analyze experiment data
Some ways to use experiment data in segments include:
- Use Experiment ID to create a segment that includes everyone in your experiment.
- Use Experiment ID with Variant to create a segment that includes everyone in a specific variant.
To build a segment that includes everyone in a specific variant, use a condition-based segment filtered by Experiment ID with Variant:
- Sign in to Google Analytics.
- Navigate to your view and reports, or create a new custom report.
- Click + Add Segment.
- Click + NEW SEGMENT.
- Click Advanced > Conditions.
- Click on the search box and search for "exp".
- Select Experiment ID with Variant.
- Select the exactly matches match type.
- Enter the Experiment ID with Variant.
- Complete your segment configuration.
- Click Save.
To build a segment that includes everyone in a specific experiment use a condition-based segment, filtered by Experiment ID, that exactly matches your experiment ID, e.g.
Using what you learned above you can also create Analytics segments that includes multiple experiments or variants by using the "OR" operator and adding more filters to your condition.
As with all Analytics segments, if you include Users instead of Sessions, all sessions for the user in the date range will be returned as long as one session was part of the desired experiment.