This article helps you:
Understand what experiment templates are and when to use them
Create experiment templates from existing experiments
Use templates to quickly create new experiments
Manage and update your experiment templates
Experiment templates capture the configuration of an experiment. Templates include goals, metrics, audience targeting, and variants so you can reuse it for future experiments. Templates are particularly useful when you:
- Run similar experiments across different features or time periods.
- Want to enforce consistent experiment standards across your team.
- Need to quickly launch new experiments with proven configurations.
- Test variations of the same feature with different audiences.
Permissions
To create, edit, or delete experiment templates, you need the Manage Experiments permission. For more information, review Manage feature flags and feature experiments.
Template notes and caveats
- Templates are only available on Feature Experiments.
- Templates are project-specific.
- Templates can't be applied to pre-existing experiments.
- You can't convert a template back into an active experiment.
- Template changes don't sync to experiments already created from that template.
Creating templates
Create a template from an experiment
To create a template from an existing experiment:
- Navigate to the experiment you want to save as a template.
- Click More options (three dots) and select Use as a template.
- Enter a Template name and optional Description.
- Select which components to include in the template:
- Click Use as a template.
Your template automatically appears in the Templates library.
Create a template from the Templates library
- Navigate to Experiments > Templates.
- Click Create Template.
- Enter the name you want for your template.
- Select the project where you want the template applied.
Templates can only apply to a single project.
- Optionally, enter a description of the template.
- Click Create.
Create an experiment from a template
To use a template when creating a new experiment:
- From the Experiments page, click Create Experiment > Feature Experiment. For more information, go to Create a new experiment.
- Enter information about your experiment.
- In the Apply a template section, select the template you want from the drop-down menu.
- Click Create.
- Make any adjustments you want to the experiment.
- When you ready, click Start Experiment.
The new experiment inherits the template configuration but operates independently. Changes to the template don't affect experiments that were created from it.
Manage experiment templates
View all templates
Navigate to Experiment > Templates to view your organization's template library. The Templates page shows:
- Template name and description
- Number of experiments created from this template
- Last modified date
- Goals
- Evaluation mode
- Number of segments in the template
- Bucketing type
Edit a template
- Navigate to Experiment > Templates.
- Click the name of the template you want to edit.
- Modify the configuration as needed.
- Click Save.
Changes to a template only affect future experiments created from it. Existing experiments created from the template aren't updated.
Archive a template
- Navigate to Experiment > Templates.
- Open the template you want to archive.
- Click the three-dot menu icon and then click Archive.
- Confirm the archive.
Archiving a template doesn't affect any experiments that were created from the template.
Template components
Templates can include the following experiment configurations:
Experiment settings
Goals and metrics
For more information about defining experiment goals, go to Define your experiment's goals.
Audience targeting
For more information about audience targeting, review Define your experiment's audience.
- Segment definitions
- Property-based targeting rules
- Geographic or demographic filters
- User ID targeting
Best practices
- Name templates descriptively: Use names that clearly indicate the template's purpose, like "Product Page Conversion Test" or "Mobile Onboarding Experiment."
- Add detailed descriptions: Include guidance on when to use the template and any special considerations.
- Review templates regularly: Archive or update templates that are outdated or no longer align with your experimentation standards.
- Start with successful experiments: Create templates from experiments that have proven configurations and clear learnings.
- Document template variations: If you create multiple similar templates, document the differences between them.