Skip to main content

Dynamic Yield Triggers

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

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

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

  2. Copy the event name given to you in the Trigger 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

How to create an experience in Dynamic Yield - Dynamic Content

  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 trigger ID. This should trigger the campaign.

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

Did this answer your question?