I'm creating an Event Based Rule in DTM and need help understanding each of the different event types.
Solved! Go to Solution.
Views
Replies
Total Likes
Here’s a list of the different built-in Event Types we can use in Event Based Rules, and how they’re defined:
Event | Definition |
---|---|
click | A pointing device button has been pressed and released on an element. |
mouseover | A pointing device is moved onto the element that has the listener attached or onto one of its children. |
keypress | A key is pressed down and that key normally produces a character value (use input instead). |
focus | An element has received focus (does not bubble). |
blur | An element has lost focus (does not bubble). |
submit | A form is submitted. |
change | An element loses focus and its value changed since gaining focus. |
ended | Playback has stopped because the end of the media was reached. |
loadeddata | The first frame of the media has finished loading. |
play | Playback has begun. |
pause | Playback has been paused. |
stalled | The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. |
volumechange | The volume has changed. |
% complete | Emits an event given a specified percentage of total playing time. Example: entering 10% indicates this rule will only fire when 10% of the total length of the video has been played. |
time complete | Emits an event given a specified duration of playing time. For example, entering 10 indicates this rule will only fire when 10 seconds of the total length of the video has been played. |
orientationchange | The orientation of the device (portrait/landscape) has changed. |
zoomchange | When a pinch or spread gesture is performed on a mobile device. |
enters viewport | When the element first comes into the view of the visitor. If the element is in view immediately upon page load, it will be triggered right away, if it only comes in view after scrolling, it will fire then. An optional delay can be specified in the rule which determine how long the element has to be in view for before the event is triggered, of which the default value is 1 second. |
element exists | When an element of a specified selector comes into existance – either because it’s in the page markup or dynamically injected later on. Each rule only fires once. |
For more info, please see this blog post or the documentation.
Views
Replies
Total Likes
Here’s a list of the different built-in Event Types we can use in Event Based Rules, and how they’re defined:
Event | Definition |
---|---|
click | A pointing device button has been pressed and released on an element. |
mouseover | A pointing device is moved onto the element that has the listener attached or onto one of its children. |
keypress | A key is pressed down and that key normally produces a character value (use input instead). |
focus | An element has received focus (does not bubble). |
blur | An element has lost focus (does not bubble). |
submit | A form is submitted. |
change | An element loses focus and its value changed since gaining focus. |
ended | Playback has stopped because the end of the media was reached. |
loadeddata | The first frame of the media has finished loading. |
play | Playback has begun. |
pause | Playback has been paused. |
stalled | The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. |
volumechange | The volume has changed. |
% complete | Emits an event given a specified percentage of total playing time. Example: entering 10% indicates this rule will only fire when 10% of the total length of the video has been played. |
time complete | Emits an event given a specified duration of playing time. For example, entering 10 indicates this rule will only fire when 10 seconds of the total length of the video has been played. |
orientationchange | The orientation of the device (portrait/landscape) has changed. |
zoomchange | When a pinch or spread gesture is performed on a mobile device. |
enters viewport | When the element first comes into the view of the visitor. If the element is in view immediately upon page load, it will be triggered right away, if it only comes in view after scrolling, it will fire then. An optional delay can be specified in the rule which determine how long the element has to be in view for before the event is triggered, of which the default value is 1 second. |
element exists | When an element of a specified selector comes into existance – either because it’s in the page markup or dynamically injected later on. Each rule only fires once. |
For more info, please see this blog post or the documentation.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies