Creating funnel optimization experiments
Read time: 4 minutes
Last edited: Nov 20, 2023
This topic explains how to set up and configure a funnel optimization experiment in LaunchDarkly.
Configuring a funnel optimization experiment requires five steps:
- Creating metrics for your funnel,
- Creating a funnel group,
- Building an experiment,
- Turning on the feature flag, and
- Starting an iteration.
These steps are explained in detail below.
Metrics measure audience behaviors affected by the flags in your experiments. You can use metrics to track all kinds of things, from when end users enter their contact information to how often end users purchase a product. You can reuse metrics in multiple experiments, or create new ones for your funnel optimization experiment. To learn how to create a new metric, read Metrics.
A metric group is a reusable, ordered list of metrics you can use to standardize metrics across multiple experiments. You must create a funnel metric group before you build a funnel optimization experiment. To learn how, read Metric groups.
You can view all of the experiments in your environment on the Experiments list.
To build an experiment:
- Navigate to the Experiments list.
- Click Create experiment.
- The "Experiment details" step opens. Enter a Name.
- Enter a Hypothesis.
- Select the Funnel optimization experiment type.
- Click Next. The "Choose randomization unit and attributes" step opens.
- Choose a context kind from the Randomization unit menu.
- (Optional) Choose up to five context attributes to slice results by.
- Click Next. The "Select metrics" step opens.
- Choose a funnel group, or click Create funnel group.
- (Optional) Choose additional metrics from the Secondary metrics menu.
- Click Next. The "Choose flag variations" step opens.
- Choose a flag to use in the experiment from the Flag menu.
- Click Next. The "Set audience" step opens.
- Choose which targeting rule to run the experiment on.
- If you want to restrict your experiment audience to only contexts with certain attributes, create a targeting rule on the flag you include in the experiment and run the experiment on that rule.
- If you don't want to restrict the audience for your experiment, run the experiment on the flag's default rule. If the flag doesn't have any targeting rules, the flag's default rule will be the only option.
- Enter the percentage of traffic for each variation you want to include in the experiment. You must include at least two variations for the experiment to be valid.
- Select which variation you want LaunchDarkly to serve to the remaining population.
- (Optional) Advanced: We strongly recommend leaving the Advanced options on their default settings. To learn more, read Understanding variation reassignment.
- Click Finish. You are returned to the experiment's Design tab.
After you have created your experiment, the next steps are to toggle on the flag and start an iteration.
For an experiment to begin recording data, the flag used in the experiment must be on. To learn how, read Turning flags on and off.
You can build multiple experiments on the same flag, but you can run only one of those experiments on the flag at a time.
After you create an experiment and toggle on the flag, you can start an experiment iteration in one or more environments.
To start an experiment iteration:
- Navigate to the Experiments list in the environment you want to start an iteration in.
- Click on the name of the experiment you want to start an iteration for. The Results tab appears.
- Click Start.
- Repeat steps 1-3 for each environment you want to start an iteration in.
Experiment iterations allow you to record experiments in individual blocks of time. To ensure accurate experiment results, when you make changes that impact an experiment, LaunchDarkly starts a new iteration of the experiment.
To learn more about starting and stopping experiment iterations, read Managing experiments.