# A/B Testing Surveys

You can use Zigpoll's percentage targeting to run A/B tests between two or more surveys. By assigning each survey a percentage of your traffic, you can compare how different questions, formats, or flows perform against each other.

Percentage targeting is **consistent per visitor** — the same person will always see the same survey across page loads and sessions. This makes it reliable for A/B testing, since visitors won't flip between variants on refresh.

***

#### How It Works

When multiple surveys are assigned to the same page, Zigpoll evaluates them in order from top to bottom. Each survey's percentage targeting controls what share of visitors see it. To set up an A/B test, you layer two surveys on the same page with complementary percentages:

* **Survey A** — Set to **50%** targeting. Half of your visitors will see this survey.
* **Survey B** — Set to **100%** targeting. This acts as the fallback — anyone who doesn't see Survey A will see Survey B instead.

Because Survey A is checked first, it captures its share of visitors. Survey B picks up everyone else. The result is a clean 50/50 split.

***

#### Step 1: Create Your Two Surveys

Create two surveys and assign them to the same page or URL path. You can use different questions, different formats, or any other variation you want to test.

#### Step 2: Set Percentage Targeting on Survey A

1. Open **Survey A** and go to the **Targeting** tab.
2. Under **Percentage**, set the value to **50%** (or whatever split you want).
3. Press **Save**.

#### Step 3: Set Survey B to 100%

1. Open **Survey B** and go to the **Targeting** tab.
2. Under **Percentage**, leave it at **100%** (the default).
3. Press **Save**.

#### Step 4: Order Your Surveys

Make sure **Survey A** appears above **Survey B** in your survey list. Zigpoll evaluates surveys top to bottom — Survey A's percentage check runs first, and Survey B catches the remaining visitors.

***

#### Adjusting the Split

You can adjust the percentage on Survey A to control the split:

| Survey A | Survey B (at 100%) | Result      |
| -------- | ------------------ | ----------- |
| 50%      | 100%               | 50/50 split |
| 30%      | 100%               | 30/70 split |
| 10%      | 100%               | 10/90 split |

{% hint style="info" %}
Each visitor's assignment is consistent — they will always see the same variant, even across multiple visits and page refreshes. This means your data won't be polluted by the same visitor responding to both surveys.
{% endhint %}

#### Three-Way Tests

You can extend this to three or more variants:

* **Survey A** — 33%
* **Survey B** — 50%
* **Survey C** — 100%

Survey A captures 33% of visitors. Of the remaining 67%, Survey B captures half (roughly 33%). Survey C catches the rest (roughly 34%).

***

#### Comparing Results

Once both surveys have collected enough responses, compare them on their respective **Results** pages. Look at response rates, completion rates, and answer distributions to determine which variant performed better.
