> ## 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.

# Run your first A/B test in about fifteen minutes

> From signup to a live experiment. No coding required beyond dropping one script tag on your site.

There are seven small things to do. If you have your site's HTML in front of
you and a page you want to test, you can be looking at live results by the
time your coffee gets cold.

## 1. Sign up

Go to [app.abtestly.com](https://app.abtestly.com) and create an account.

Creating an experiment needs an active plan, so pick monthly Starter, Pro or
Business and take the [14 day trial](https://docs.abtestly.com/billing/trial.md). It is the full plan at
your own traffic, not a reduced version. A card is required when you start
the trial and the first charge lands on day 15, so cancel before then and you
pay nothing. Prices, MTU caps, and quotas for each tier live on the
[plans page](https://docs.abtestly.com/plans.md).

## 2. Connect your site

After signup you land on the **Sites** screen. Click **Add site** and type
your domain, `example.com`, without `https://` or a trailing slash.

![Sites screen with three connected sites](https://mintcdn.com/abtestly/TJFfWsOMn4uzK6iy/images/sites-dashboard.png?fit=max\&auto=format\&n=TJFfWsOMn4uzK6iy\&q=85\&s=d5523d775a2a0f31a756cbfea0626ef8)

Sites screen. Each site is independent and gets its own snippet.

> [!TIP]
>
> Each site is independent. The snippet carries a site-specific key and is
> validated against its configured domain at runtime, so if you run
> `acme.com` and `blog.acme.com`, add them as two sites and install each
> snippet on its matching host.

## 3. Install the snippet

On the site you just added, open **Settings → Snippet**. Copy the snippet.
Paste it into the `<head>` of every page you want to test, as the **first
script tag**, before any other JavaScript.

![Snippet panel with the install code](https://mintcdn.com/abtestly/TJFfWsOMn4uzK6iy/images/settings-snippet.png?fit=max\&auto=format\&n=TJFfWsOMn4uzK6iy\&q=85\&s=14bb3aaf9cb1a61c76224af4f0690ed0)

The Snippet panel. Copy from here, the snippet is built from your consent settings.

> [!WARNING]
>
> Load the snippet synchronously and place it before anything else. The earlier
> it runs, the less of the original page a visitor can see before the variant
> applies. Do not use `async` or `defer`. Do not load it through Google Tag
> Manager. If flicker on a first paint is a serious concern, tick **Add
> anti-flicker** on the panel and read
> [Install → Snippet](https://docs.abtestly.com/install/snippet.md) for the tradeoff.

## 4. Verify

Load your site in a fresh tab. Open DevTools (F12) and, in the Console, type:

```js theme={null}
window.__ABTESTLY_CONFIG__
```

You should see an object with your site id and a config version. If it says
`undefined`, the snippet did not load. The
[verify install](https://docs.abtestly.com/install/verify.md) page has the checklist.

## 5. Build the test

In the dashboard, open your site and click **New experiment**. The editor is
one screen with a checklist down the left. You do not have to fill every
section, leave anything you do not care about at its default and it stays
green.

![Experiment editor with sections listed](https://mintcdn.com/abtestly/TJFfWsOMn4uzK6iy/images/experiment-editor.png?fit=max\&auto=format\&n=TJFfWsOMn4uzK6iy\&q=85\&s=2e533fee8b3cabc0ea9b545e2054c098)

The experiment editor. Sections light up green as you fill them in.

The sections, in order:

**1. Name and basics**

Give the test a name and the URL you want to test on, and pick the
**test type**: an **A/B test** whose variations change the page with
JS and CSS, or a **Split URL** test whose variations send visitors to
another page. The type is fixed once the test is created.

**2. Traffic and split**

How much of matching traffic enters the test, and how the entered
traffic splits between variants. Defaults to 100% in, 50/50 split.

**3. Where it runs**

URL rules that decide which pages count. Pick a saved
[Location](https://docs.abtestly.com/targeting/saved-lists.md) or write rules inline.

**4. Who sees it**

Audience rules. Country, device, source, cookie value, and a few dozen
more. Leave blank to include everyone.

**5. Activation**

When the test fires. Immediately on page load, on a click, when an
element is visible, or when your own code calls
`abtestly.activate()`. See
[Activation triggers](https://docs.abtestly.com/targeting/activation-triggers.md).

**6. Variations**

The Original (control) and one or more variants. In an A/B test each
variant is a piece of JavaScript, CSS, or both, applied to matching
pages. In a Split URL test each variant carries a redirect URL
instead. See [Redirect tests](https://docs.abtestly.com/build/redirect-tests.md).

**7. What to measure**

One primary goal plus any guardrails. Two goals are attached automatically
(see [System default goals](https://docs.abtestly.com/goals/system-defaults.md)); you can add your
own from the goal library.

**8. Schedule**

Optional. Start on a specific date, stop on a date, cap the run length,
or leave blank and run until you say Stop.

> [!TIP]
>
> Before you launch, use a [preview link](https://docs.abtestly.com/preview/preview-modal.md) to see the
> variant on your live site. Preview works on drafts, never records data, and
> is safe to share with a stakeholder for sign-off.

## 6. Start it

Click **Start now** at the top-right of the editor, or **Schedule for later**
if you want it to go live at a specific time. The new config reaches every
Cloudflare edge location within about sixty seconds. Visitors get bucketed
from the first request after that.

## 7. Watch the results

Open the experiment and click **View results**. The page tells you what it
knows so far, visitors in, conversions, confidence, and a verdict written in
plain English.

![Results page for a live experiment](https://mintcdn.com/abtestly/TJFfWsOMn4uzK6iy/images/experiment-results.png?fit=max\&auto=format\&n=TJFfWsOMn4uzK6iy\&q=85\&s=013971f058a8ede724cf860bee674454)

Results page while a test is still gathering.

Most tests need to run long enough to reach a call. There is no fixed number
that fits every test, but as a rough guide you want at least a few thousand
visitors per variant before you trust a verdict. The
[reading a result](https://docs.abtestly.com/results/reading-a-result.md) page is the honest version of
that answer.

## Next

> [card] [How ABTestly works](https://docs.abtestly.com/concepts/how-it-works.md)
>
> The whole system on one page, if you want the shape before the details.

> [card] [Snippet install reference](https://docs.abtestly.com/install/snippet.md)
>
> CMS-specific notes, consent modes, and the anti-flicker tradeoff.

> [card] [Targeting overview](https://docs.abtestly.com/targeting/overview.md)
>
> Locations, audiences, activation triggers, exclusion groups.

> [card] [Read results](https://docs.abtestly.com/results/reading-a-result.md)
>
> Three statistics engines, honest verdict copy, real segments.


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