To help maximize contact open rates for a draft primary email campaign, use A/B subject line testing to determine the best subject line to use when sending the email campaign to contacts.
A/B Test Properties
The following request body properties are required to create or update an A/B test:
-
alternative_subject: The alternate email subject line to use for A/B testing. Currently, A/B tests support subject line only. -
test_size: The percentage of contact recipients in the A/B Test. For example, if the integer value is 30, then 30% of contacts will receive the email campaign with subject line A, and 30% of contacts will receive the email campaign with subject line B. Valid values include5to50percent, inclusively. -
winner_wait_duration: The number of hours Constant Contact waits after the A/B test is sent before determining the winning subject line. The winner is the subject line with the highest number of contact opens. After determining the winner, Constant Contact automatically sends the email campaign with the winning subject line to all the remaining contacts that did not participate in the A/B test.
The following shows example A/B test request and response schema:
{
"alternative_subject": "Biggest Sale of the Year Coming Soon!",
"test_size": 5,
"winner_wait_duration": 6
}
A/B Test Endpoints
The following A/B test endpoints are currently available:
-
POST: To create an A/B test for a primary email campaign, make aPOSTcall toemails/activities/{campaign_activity_id}/abtest.For details, see Create an A/B Test for an Email Campaign Activity
-
GET: To get A/B test details, make aGETcall toemails/activities/{campaign_activity_id}/abtest.For details, see Get A/B Test Details for an Email Campaign Activity
-
DELETE: To revert the campaigntypefromAB_TESTtoNEWSLETTERand thetype_codefrom57to10, make aDELETEcall toemails/activities/{campaign_activity_id}/abtest.For details, see Delete A/B Test Details for an Email Campaign Activity
Send the A/B Test Email Campaign to Contacts
To schedule the A/B test email campaign activity to be sent to contacts, POST call to /emails/activities/{campaign_activity_id}/schedules endpoint. This method requires campaign send user privileges.
[]: