DTM Examples- Event-Based Rules using Custom Events

DTM can listen for JavaScript Custom Events that developers may already be using.

For example, in the below example, the developer has hijacked the event I want to track (the click of the button) with their own event-listener. I will have DTM listen to the Custom Event that already exists on the form to create a confirmation message.

Example Custom Event
First name:

Last name:

For this setup, the rule looks like this in DTM: