I used the following documentation to set up and send out an A/B test.
However, the Delivery item after the script didn't have clear directions on how to configure. I had the following options checked, and I got an error saying, "The transition does not specify a content identifier". How should the delivery object be configured to send out correctly?
Specified in the transition
Specified by the inbound event(s)
Specified by the inbound event
Configured in the delivery
Actions to perform
Prepare and start
You should use these the option computed by a script in the delivery and provide the name of the script as vars.deliveryId.
This variable is defined in the JS script prior to the delivery.
The content should be specified in the delivery as we are duplicating the winner template already and that will have the content selected.
Find below a screenshot of the correct A/B test configuration.
It works for me on the second option. (to define everything inside Initialization Script of the winner delivery activity.)
The first option (to create a JS activity right after the Wait activity in the winner transition) A/B testing doesn't work for me. It always sent to campaign A even campaign B has higher open rate. My question is, do I need to configure the Delivery item if I use this method? This tutorial A/B testing doesn't mention anything about the Delivery item configuration, I assume there is no configuration needed?
There are multiple ways to calculate and assign a value to the deliveryId variable. Once way is to create a JS activity right after the Wait activity in the winner transition. This page explains the aforesaid process A/B testing
Another way is to define everything inside Initialization Script of the winner delivery activity. Here you can copy the entire code of JS activity into the Initialization script section of winner delivery Advanced tab.
Hope I've been able to answer your query.
What do you exactly mean by "This variable is defined in the JS script prior to the delivery."
Do you mean we need to add a "js" activity that will gather the related variable?
If yes, could you give us an example of the js script to use?
Sure , let me know how it goes .
Thank you for this information, Adhiyan. This makes sense. i will test it out and see how it goes!