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
In your Dynamic Yield Campaign Settings, choose Event as the Trigger type
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 fieldSet up the rest of your campaign in Dynamic Yield as usual
Initialise experiments using segment executions - Dynamic Content
Dynamic Content campaigns do not support
In your Dynamic Yield Campaign Settings, choose Wait For | External Component in the Advanced Settings section
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
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 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:
β