Skip to main content
AB Tasty Segment Executions
Charley Bader avatar
Written by Charley Bader
Updated over 3 months ago

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

  1. Configure your AB Tasty campaign as normal

  2. In your ABTasty campaign editor, click the code option from the where section

  3. 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)
    }
    );

  4. The abResolve() function in this code is triggered when the segment matches subject to the method and trigger chosen within the segment execution modal

  5. Save the segment execution

Previewing the Experiment

  1. 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

  2. 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:


โ€‹

Did this answer your question?