> For the complete documentation index, see [llms.txt](https://docs.humblytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humblytics.com/split-testing-overview/how-to-setup-a-split-test.md). Agents can also search and read this documentation through its [MCP server](https://docs.humblytics.com/~gitbook/mcp).

# How to Set Up a Split Test

Create and launch an A/B test in three steps.

{% hint style="info" %}
**Before you start:** the Humblytics tracking script must be installed on the page you want to test. See [Getting Started](https://docs.humblytics.com/how-to-get-started.md).
{% endhint %}

Go to **Optimize → Experiments** and click **New test**. A page picker opens: choose the page you want to test (search by path, or pick one of your top pages). From here the default is an **element test**, built in the visual editor. To compare two different live URLs instead, choose **Split by URL**.

Setup has three steps: **Setup**, **Variants**, and **Review**. Your progress saves as a draft, so you can leave and click **Continue** on it later from the **Planned** column.

## Step 1: Setup

**1. Name the test** and, if you like, write your hypothesis in the notes, for example *"If we shorten the form, more people will submit it, because it looks faster."*

**2. Pick what to optimize.** This is the goal that decides the winner. Pick one.

| Group      | Goal                                                                                                                                                                     | Counts as a win when a visitor...                            |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
| Conversion | [Form submissions](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/conversion-goals/increase-form-submissions.md)        | submits a form on the page                                   |
| Conversion | [Any click on the page](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/conversion-goals/increase-click-through-rate.md) | clicks anything on the page, navigation and logo included    |
| Conversion | [Destination page](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/conversion-goals/reach-destination-page.md)           | reaches a page you choose, like `/thank-you`                 |
| Conversion | [Click to another site](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/conversion-goals/reach-external-destination.md)  | follows a link to a URL on another site, like a booking page |
| Conversion | [Payments (Stripe)](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/conversion-goals/increase-revenue.md)                | pays through your connected Stripe account                   |
| Engagement | [Visit time](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/engagement-goals/increase-session-time.md)                  | spends longer on the page                                    |
| Engagement | [Bounce rate](https://docs.humblytics.com/split-testing-overview/creating-a-b-page-variants-for-split-testing/engagement-goals/reduce-bounce-rate.md)                    | goes on to see a second page                                 |

**Destination page** and **Click to another site** ask for the destination URL. You can use `*` as a wildcard, for example `/blog/*` or `https://book.example.com/*`.

{% hint style="info" %}
You can look at the results through any goal after launch, and star a different one as the primary goal. The goal you pick here is the one the test is planned around.
{% endhint %}

Click **Continue**.

## Step 2: Variants

**Element test**

1. Click **Open editor**. Humblytics loads your live page in a preview. Click an element to edit its text, styles, image, visibility, or order in the **Element** panel. The **AI** sidebar in the editor can suggest copy or styling variations.
2. The **Changes** panel lists every edit for this version. Remove one, or revert to an earlier point. Changes save as you go.
3. When you're finished, close the editor to return to the Variants step. Make at least one change, or Variant B will be identical to the control.

Reopening the editor on the same draft replays your saved edits onto a fresh copy of the page, so you can keep working where you left off.

**Split by URL**

1. Enter the URL for each version. The first one is your **Control (Original)**.
2. Click **Add variant** to test more than one alternative.
3. Optional: add notes or screenshots so you remember what changed.

URLs are normalized as you type, so `/pricing` and `/pricing/` are treated as the same page. Make sure each URL loads on your live domain with the tracking script installed. [How to build a variant page](https://github.com/Humblytics/humblytics-docs/tree/main/split-testing-overview/creating-a-b-page-variants-for-split-testing/README.md).

**Optional settings (both test types)**

| Setting                 | Options                                                                                                                                                                                                                                      |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Traffic split**       | How visitors are divided. Default is 50% / 50%. Set a custom split if you want, for example, 80% on the control. Shares must add up to 100%.                                                                                                 |
| **Visitor assignment**  | **Per visit (Default)**: each visit is assigned again. Faster results, best for high-traffic, short tests. **Sticky visitor:** a person always sees the same version. Best for pricing, multi-step journeys, and longer tests.               |
| **Audience & location** | Limit the test to certain device types, traffic sources, or countries. Leave it alone to include everyone. See [Audience & Location Restrictions](https://docs.humblytics.com/split-testing-overview/audience-and-location-restrictions.md). |
| **Maximum run**         | Tests stop on their own after 30 days by default. Shorten it here if you want.                                                                                                                                                               |

Click **Review**.

## Step 3: Review and launch

Humblytics summarizes the test and checks your setup before launch:

* A goal is set.
* Every version has a page URL.
* Variant B has at least one edit (element test) or its own URL (Split by URL).
* Traffic shares add up to 100%.
* The audience, if restricted, is shown as one line.
* The sample target is realistic for your traffic. If not, you'll see a low-traffic warning. You can still launch, but consider a higher-traffic page or a bigger change.

Click **Start experiment**. Visitors start being split right away.

{% hint style="info" %}
**Tests created by your AI agent** through the API or MCP are never served automatically. They appear in the list as **Awaiting approval**. Open the test, review the **Proposed changes** for each version, and click **Activate test**. To decline it, choose **Archive** from the **⋯** menu.
{% endhint %}

## Troubleshooting

**Saved text or styles don't show when I reopen the editor.** Reopening the editor should replay your edits on the preview automatically. If the preview looks like the original page, hard-refresh the Humblytics dashboard (**Cmd+Shift+R** on Mac, **Ctrl+Shift+R** on Windows) so you're on the latest app, then open the editor again. Check the **Changes** panel to confirm your edits were saved.

**A variant gets no traffic.** Almost always a URL mismatch. Check `www` vs. no `www`, `http` vs. `https`, and that the page loads on your live domain with the tracking script installed.

**The traffic split looks uneven.** A variant probably links back to the control page, for example a `#start` anchor that points to the control URL. Visitors leave the variant and land on the control. Use links that stay on the variant's own page.

**Launching failed.** The message says what went wrong. A **server** or **connection** error keeps your draft, so click **Try again** or relaunch from the Review step. A **validation** error highlights the field to fix (a missing URL, goal, or version).

**How long does a test run?** Until you stop it or call it, or until it reaches its maximum run (30 days by default). Tests never stop on their own at significance, so you decide when to call a winner. See [Deciding How Long to Run an A/B Test](https://docs.humblytics.com/split-testing-overview/deciding-how-long-to-run-an-a-b-test.md).

**Can I pause a test?** No. You can **Stop** it (data is kept, and it can't be restarted) or **Archive** it. To run the same idea again, create a new test.

**Can I run several tests at once?** Yes, up to your plan's active-test limit: 5 on Business, unlimited on Scale, and unlimited on Free start and Agents. Avoid testing overlapping elements on the same page, or you won't know which change caused the result.

**Will a test slow down my site?** No. Changes load through the same small script, and a short snippet hides the page for a moment (2 seconds at most) so visitors don't see the original flash before their version.

Next: [How to Analyze Split Test Data](https://docs.humblytics.com/split-testing-overview/how-to-analyze-split-test-data.md).
