Skip to main content

AB Tasty Trigger

Charley Bader avatar
Written by Charley Bader
Updated over a week ago

When you create a third party trigger for AB Tasty, the Made with Intent client script will dispatch custom DOM events that can be used to trigger AB Tasty campaigns.

How to create an experience in AB Tasty

  1. Configure your AB Tasty campaign as normal

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

  3. Copy and paste the execution code shown to you in the trigger modal. It looks like this:

    document.addEventListener( 
    'intent.campaign.66d0200adf3681065c0eeb19',
    function(e) {
    abResolve(true)
    }
    );

  4. The abResolve() function in this code is triggered when your Made with Intent experience fires

  5. Save the Third Party trigger, and complete the set-up of your campaign

Did this answer your question?