Broadcast A/B tests

Split a broadcast's test share across variants, choose a winner metric and send the winner to the remaining recipients.

A broadcast can test subject or content variants on part of its recipients before sending a winner to the rest. Human clicks per delivered email are the default measure. Enable click tracking on the sending domain to measure clicks.

Configure variants and the test share

The broadcast's main subject and content are variant position 0. Add variants and ab_test when creating or editing the draft:

{
  "variants":[{"subject":"This month's product changes"}],
  "ab_test":{"test_percent":20,"metric":"clicks","wait_seconds":3600,"fallback":0}
}

Each extra variant can override subject, html, text and preview_text. Omitted fields inherit the broadcast's values when written. variants and ab_test need each other. Check the draft before sending; every variant must pass the checks, including its unsubscribe link.

test_percent is the total share for the test, split evenly among variants after a seeded shuffle of contacts. The other recipients wait. wait_seconds starts after the test messages have all delivered or ended, not when the API accepted them. A/B tests cannot be combined with send_at_local.

Winner metric

metric accepts clicks, opens or manual. A measured winner has the highest number of first human clicks or opens per delivered email; ties select the first variant. Machine hits are excluded. Opens are flagged unreliable because image proxies can fetch mail without a person reading it. An open-based test needs open tracking enabled.

For a manual pick, call POST /broadcasts/{id}/winner with {"variant":1} while the test is waiting for its winner. The number is the variant's position, not its id. If the wait ends without a manual pick, the configured fallback wins.

Small tests and results

When any variant has too few delivered messages for a measured result, exx.sh uses the fallback position, or position 0 if you omitted it. Stats flag too_small instead of presenting that choice as a measured winner. The remaining recipients get the winner.

GET /broadcasts/{id}/stats shows per-variant recipients, delivered, opened and clicked, plus metric, unreliable, winner_variant_id, winner_source and too_small. GET /broadcasts/{id} also shows test settings and completion time.

To remove a test from a draft, PATCH it with {"variants":[],"ab_test":null}. Duplicate the broadcast to run another test with a new recipient snapshot.

On this page