# Test variations of an experience

URL: https://docs.ablyft.com/guides/personalizations/test-variations/

> Run an experiment inside an experience to find the best tailored version for an audience.



You do not have to know in advance which tailored version works best for an audience. An experience can have several
variations besides the holdback. ABlyft splits the visitors of the experience between them, and the results show which
version performs best for exactly this audience.

**Example:** for the experience "Returning customers" you test a personal greeting against product recommendations.

| Variation         | Traffic | What the visitor sees            |
| ----------------- | ------- | -------------------------------- |
| Holdback          | 5 %     | The regular page                 |
| Personal greeting | 48 %    | "Welcome back, Anna"             |
| Recommendations   | 47 %    | Products based on the last visit |

## Add variations

1. Open the experience.
2. In the card **Variations**, add a variation for every version you want to test, see
   [Create a variation](https://docs.ablyft.com/guides/experiments/variations/#create-a-variation).
3. Build each variation with the [Visual Editor](https://docs.ablyft.com/guides/experiments/visual-editor/), a redirect or your own code.

## Split the traffic

When you add or delete a variation, ABlyft splits the traffic of the experience automatically:

* The **holdback** keeps its share. When you add the first variation, the holdback gets the default share of 5 %.
* All other variations share the rest evenly. A remainder goes to the first of them.

To set your own shares, open the settings of the experience (gear icon in the header, or **Edit settings** in the
Experiences card) and change the **Traffic** values in the section **Traffic Split & Distribution**. The total must be
between 99 % and 100 %, as for [experiments](https://docs.ablyft.com/guides/audiences-and-delivery/traffic-allocation/#split-per-variation).

A larger holdback gives you more reliable results about the impact of the personalization, but more visitors of the
audience see the regular page. A few percent are usually enough if the audience gets a lot of traffic.

> **Decide on the split before you start:** Visitors keep the variation they were assigned to. If you change the shares while the personalization runs, only
> new visitors are affected and the results become harder to interpret.

## Let the multi-armed bandit split the traffic

Instead of setting the shares yourself, you can let the
[multi-armed bandit](https://docs.ablyft.com/guides/audiences-and-delivery/multi-armed-bandit/) shift the traffic to the variation that
performs best on the primary goal. In the settings of the experience, click **Enable Multi-Armed Bandit** in the
section **Traffic Split & Distribution**.

* The experience needs at least **two variations with traffic besides the holdback**.
* The **holdback keeps its share** and does not take part. The bandit only splits the rest between the other
  variations, so you continue to measure the impact of the personalization.
* Everything else works as for experiments: the learning phase, the minimum share per variation and the fixed traffic
  fields while the bandit is enabled. To change the share of the holdback, disable the bandit first.
* If the primary goal of the personalization changes, the learning phase starts again.

### Why the bandit suits personalizations

A classic A/B test splits the traffic evenly until you decide. For a personalization, the multi-armed bandit is often
the better choice, because it keeps improving the experience on its own:

* **A personalization has no end date.** It runs for months, not for a few weeks. The bandit shifts the traffic to the
  better variation step by step, so more visitors of the audience see the best version earlier, without anybody
  watching the results and changing the split by hand.
* **Audiences are smaller.** An experience targets a part of your visitors, so a fixed split takes long to reach a
  clear result, and the weaker variation costs conversions all that time. The bandit reduces these costs.
* **Try several ideas at once.** Test a greeting, recommendations and a discount for the same audience in parallel.
  Weak ideas automatically get less traffic, strong ones more.
* **What works changes.** Seasons, products and campaigns change the behavior of your visitors. The bandit keeps
  optimizing, and because every variation keeps a minimum share, a variation that falls behind can catch up again.
* **The holdback stays the honest benchmark.** It keeps its fixed share, so you continue to measure whether the
  personalization pays off at all. The bandit only decides which variation an audience gets, not whether
  personalizing is worth it.

> **Optimizing is not the same as measuring:** The bandit maximizes conversions while the experience runs. If you need a precise comparison of two ideas, for
> example before you roll one out to other audiences, a fixed split gives you cleaner results. See
> [Multi-Armed Bandit](https://docs.ablyft.com/guides/audiences-and-delivery/multi-armed-bandit/).

## Read the results

Click **Results** in the header of the experience. Every variation is compared against the holdback, the baseline of
the experience. The results show:

* whether a tailored version performs better than the regular page (the holdback), and
* which of the tailored versions performs best.

How to read the numbers is explained in [Interpret results](https://docs.ablyft.com/guides/results/interpret-results/).

## Keep the best version

When the results are clear, there are two ways to continue with the winner:

* **Set the traffic of the other variations to 0 %** in the settings of the experience. New visitors get the winner
  (or the holdback). Visitors who were already assigned to another variation keep it.
* **Duplicate the experience** (menu of the row in the Experiences card), delete the losing variations in the copy,
  pause the original experience and activate the copy. The copy is added with the lowest priority, so
  [move it](https://docs.ablyft.com/guides/personalizations/experiences/#set-the-priority) to the position of the original. Then all visitors
  of the audience get the winner, and the copy collects fresh results.

Keep the holdback in both cases, so you continue to measure the impact of the personalization.

If you do not want to make this decision yourself, let the
[multi-armed bandit](#let-the-multi-armed-bandit-split-the-traffic) do it: the best variation automatically gets most
of the traffic.

## Next steps

* [Start the personalization](https://docs.ablyft.com/guides/personalizations/status-and-results/) and watch the results.

