Usually, firing a custom event requires implementing some JS code into your site code.
Dynamic Yield lets you skip making code changes to your website, using a Custom Code campaign template called Fire Event. Not only does it save you the time, effort and dev resources, but you can also limit it to fire only upon defined triggers (for example, hovering over an element or exit intent) and targeting conditions (for example, a user belongs to a specific audience or is using an iPhone).
To fire events based on the Fire Event template:
- Go to Site Personalization › New Campaign and click Custom Code.
- Specify the campaign settings, such as trigger, frequency, and advanced settings, and then click Next.
- Name your experience, and then click New Variation. From the template list, select Fire Event.
- Specify the Event Name. This is the name that is passed in the event.
- Save the variation.
Now, select a primary metric, set your targeting, and publish the experience as with any other campaign.