> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatically rollback an experiment

> Set up rollback conditions to automatically pause a web experiment when a goal's performance drops below a threshold you define.

An underperforming experiment can hurt the user experience before you notice the drop in results, and catching that drop usually means monitoring the Results page yourself. That manual monitoring is especially difficult while you are away, such as during vacation periods.

Rollback conditions remove the need for manual monitoring. Define a performance threshold for a goal, and Kameleoon automatically pauses the experiment when the goal's performance crosses that threshold, so you can launch experiments with confidence even when you are not watching them.

## Set up a rollback condition

Define one or more rollback conditions to automatically pause an experiment when a goal's performance drops below, or rises above, a threshold you set. Each condition tracks the performance of one goal.

This condition lives in the **Rollback** tab of the [Goals step](./finalizing-an-experiment#define-goals) during experiment finalization.

<Frame>
  ![](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/experimentation/web-experimentation/configure-and-launch/we-rollbacks/we-goals-rollbacks.png)
</Frame>

To add a rollback condition:

1. On the Finalization page, click **Goals**.
2. Click the **Rollback** tab.
3. Click **Add a condition**.
4. Select the performance indicator to check, such as **Conversion rate**.
5. Set the comparison: choose whether the indicator **is higher than** or **is lower than** a percentage, and enter that percentage.
6. Select the **goal** to evaluate this indicator for. You can choose from any goal you created for this project.
7. Enter the minimum number of **visitors** that must reach the experiment before Kameleoon evaluates the condition, for example 20,000.
8. Choose the scope for the visitor count: **the whole experiment** or a specific variation.
9. Click **Save**.

Repeat these steps to add more conditions. Kameleoon evaluates every condition you define and pauses the experiment as soon as one condition triggers.

### Condition fields

| Field                        | What it does                                                                                    |
| ---------------------------- | ----------------------------------------------------------------------------------------------- |
| **Performance indicator**    | The metric Kameleoon checks against the threshold, such as conversion rate.                     |
| **Comparison and threshold** | Sets whether the indicator must be higher than or lower than the percentage you enter.          |
| **Goal**                     | The goal Kameleoon evaluates the indicator for.                                                 |
| **Minimum visitors**         | The number of visitors that must reach the experiment before Kameleoon evaluates the condition. |
| **Scope**                    | Whether Kameleoon counts visitors across the whole experiment or a specific variation.          |

### Set up email alerts

To receive an email when a rollback occurs, select the checkbox next to **Enter e-mail and press Enter**, type an email address, and press Enter. Repeat to add more recipients. Click **Save** to finalize the condition.

## How rollback checks work

After you save a rollback condition, Kameleoon monitors it automatically:

* Kameleoon checks each condition approximately every 5 minutes.
* Each check compares the goal's current performance against the threshold and confirms whether the visitor count has reached the minimum you set.
* When a condition triggers, Kameleoon immediately pauses the experiment.
* If you configured email alerts for that condition, Kameleoon sends an email with the rollback details to the recipients you added.
