When you create a segment execution for AB Tasty, the Made with Intent client script will dispatch custom DOM events that can be used to trigger AB Tasty campaigns.
Initialise experiments using segment executions
Configure your AB Tasty campaign as normal
In your ABTasty campaign editor, click the code option from the where section
Copy and paste the execution code shown to you in the segment execution modal. It looks like this:
document.addEventListener(
'intent.campaign.66d0200adf3681065c0eeb19',
function(e) {
abResolve(true)
}
);The abResolve() function in this code is triggered when the segment matches subject to the method and trigger chosen within the segment execution modal
Save the segment execution
Previewing the Experiment
Open the preview link in the Edit Segment Execution modal - this will force bucket you into the segment we want to execute the experience for
Preview your campaign using AB Tasty
Publishing the Experiment
If the campaign is active, the campaign is activated when a segment matches according to the following flow:
โ