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

# Clone an experiment

> Duplicate an experiment as a fresh draft. Same setup, new salt, new key. Goals become shared between the two, which locks them.

Cloning an experiment gives you a fresh draft that starts identical to
the original, same variants, same targeting, same goals, with three
important differences.

> [!NOTE]
>
> **Availability.** Cloning is on the **Starter plan and above**. See
> [pricing](https://abtestly.com/pricing).

## How to clone

From any experiment's detail page or from the row menu on the
experiments list, click **Clone** (or **Duplicate**). The dashboard
opens the new draft immediately so you can rename it and adjust before
starting.

## What is different in the clone

**New bucketing salt.** The clone gets its own random salt so
visitors are re-bucketed independently. A visitor who saw Variant B in
the original does not automatically see Variant B in the clone, they
are re-assigned from scratch.

**New experiment key code.** The `ABTESTLY_EXP_KEY` is regenerated so
`abtestly.activate('key')`, `onApply('key', …)`, and any code that
targets the original by key does not accidentally target the clone
too.

**Fresh status.** The clone starts as **Draft**, regardless of the
original's state.

## What carries over

* Every variant's JS, CSS, and weights.
* Traffic allocation and split.
* Locations and Audiences (references, not copies, see below).
* Activation mode and target selector.
* Goals attached (as shared references, see below).
* Hypothesis, tags, minimum detectable effect, host scope, campaign,
  and the statistics engine settings.
* Schedule fields (start, end, max days) as **cleared**, so the clone
  is not immediately scheduled.

## Goals become shared, and that locks them

Goals are not duplicated. The clone attaches to the **same goal
definitions** the original already uses, and that second attachment is
what makes them shared. The dashboard shows a toast telling you this
happened. Nothing about the original experiment is changed.

> [!WARNING]
>
> A goal definition attached to two or more experiments becomes
> **read-only**. Editing it would silently change what both experiments
> are measuring, so ABTestly refuses: the save comes back as locked and
> names the experiments holding it. This applies even when both are still
> drafts.

To change the goal for one of them only, open the goal in the library,
use **Clone to edit**, then attach the copy to the experiment you want
to differ and detach the shared one.

## Mutual exclusion groups do not copy

If the original was a member of an
[exclusion group](https://docs.abtestly.com/targeting/exclusion-groups.md), the clone is **not**
added to the group. Exclusion group membership is a deliberate,
intentional decision, cloning does not silently expand a group.

Add the clone to the group manually if that is what you want.

## When to clone

* **You want to run the "same test" on a different Audience.** Clone,
  swap the Audience, ship.
* **You want to re-run a paused winner on more traffic.** Clone the
  winner, bump allocation, ship.
* **You want to iterate a losing test with tweaks.** Clone, edit the
  variant, ship. The old data stays with the original.

## When *not* to clone

Cloning does not carry the original's data. If you want the results
page to keep counting the original's exposures under the tweaked
variant, do not clone, either **Reset data** on the original after
editing, or leave the original alone and read its results as-is.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.