Skip to main content
All CollectionsBuilding Experiences with Intent
Dynamic Yield Segment Executions
Dynamic Yield Segment Executions
Charley Bader avatar
Written by Charley Bader
Updated over a week ago

When you create a segment execution for Dynamic Yield, the Made with Intent client script will push a custom event with the name

intent.dy.IDENTIFIER

to the Dynamic Yield platform when thes segment method and trigger conditions are met.

It will also create an external component

intent.dycomponents.IDENTIFIER

Initialise experiments using segment executions - Campaigns supporting Event Triggers

  1. In your Dynamic Yield Campaign Settings, choose Event as the Trigger type

  2. Copy the event name given to you in the Edit Segment Execution modal, e.g. intent.dy.66cda0c162b42a1e456a7eda, and paste it into the DY configuration field

  3. Set up the rest of your campaign in Dynamic Yield as usual

Initialise experiments using segment executions - Dynamic Content

Dynamic Content campaigns do not support

  1. In your Dynamic Yield Campaign Settings, choose Wait For | External Component in the Advanced Settings section

  2. Copy the component name into there as intent.dycomponents.<id> e.g.

intent.dycomponents.66cda0c162b42a1e456a7eda

Debugging

Copy and paste the following code into DevTools console:

intent.dycomponents['66cda0c162b42a1e456a7eda'] = function() { return true; }

replacing 66cda0c162b42a1e456a7eda with your segment execution ID. This should trigger the campaign:

This mimics the setting of the external components by the Intent services.

Previewing the Experience

  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 the experiment in Dynamic Yield

Publishing the Experiment

Once a segment execution is saved, custom events are dispatched into Dynamic Yield every time the segment matches. Once your DY campaign is active, the following execution flow takes place:


​

Did this answer your question?