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

# A/B Test

> Split traffic between two paths (A and B) to compare outcomes.

<img style={{ borderRadius: "0.5rem" }} src="https://mintcdn.com/xquiz-12076fbf/DabTafNhExNz5i1G/images/testab.png?fit=max&auto=format&n=DabTafNhExNz5i1G&q=85&s=6dd67cd1de22e10bfe646bc1fd292045" width="1473" height="878" data-path="images/testab.png" />

The A/B Test function lets you distribute users between two flow paths (A and B) using a defined proportion, helping you compare the performance of different pages, offers, or sequences.

## How it works

You set a percentage for path A. Path B automatically receives the remainder up to 100%. When the user reaches this function, XQuiz chooses a path based on that distribution and continues the flow accordingly.

## How to set up

1. Add the A/B Test function to the Flow.
2. Set the percentage for path A in “Percentage A (0–100)”. Path B is calculated automatically.
3. Connect “A” to the first step of path A and “B” to the first step of path B.
4. Publish and monitor the results in your funnel or external tool.

## Best practices

* **Define a hypothesis**: what outcome are you aiming to improve (e.g., conversion, clicks, retention)?
* **Keep changes isolated**: modify just one element at a time for clear results.
* **Time and sample size**: run the test long enough and with adequate volume.
* **Avoid the same destination**: A and B should not point to the same node; the Builder prevents this link.
