When you create a trigger 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 the segment method and trigger conditions are met.
It will also create an external component
intent.dycomponents.IDENTIFIER
How to create an experience in Dynamic Yield - Event Triggers
In your Dynamic Yield Campaign Settings, choose Event as the Trigger type
Copy the event name given to you in the Trigger 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
How to create an experience in Dynamic Yield - Dynamic Content
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 trigger ID. This should trigger the campaign.
This mimics the setting of the external components by the Intent services.