Set up a push A/B test
Send two versions of a push to one audience and compare delivery and clicks.
A/B testing is included on every plan.
channels include whatsapp and whose abTest is enabled is rejected.In the portal
- Open Messages, then Push, and create or edit a message.
- Write variant A as the title and message.
- Turn on A/B test, write variant B, and set variant A's share from 10 to 90. Variant B receives the rest.
Each device stays on one variant for that campaign, including retries. The campaign report shows delivered, clicked and click-through rate for A and for B.
From the API
Add abTest to POST /push/send. enabled must be true. variants must contain A and B. Each weight is an integer from 10 to 90, and the two weights add up to 100. Each variant payload needs title and message.
{
"abTest": {
"enabled": true,
"variants": [
{
"key": "A",
"weight": 50,
"payload": { "title": "Order shipped", "message": "Track it in the app." }
},
{
"key": "B",
"weight": 50,
"payload": { "title": "Your order is on the way", "message": "Open the app to track it." }
}
]
}
}How to read the result
The report does not choose a winner. Compare click-through rate after both variants have been delivered widely enough that a few clicks are not the whole result. Each device stays on A or B for that campaign, including a retry, so one person does not see both wordings.
The weights are shares of one audience, not two audiences. A 10 and 90 split still uses the same segment. WhatsApp cannot be one of the channels when an A/B test is turned on.