Attribute: on - evolv-ai/metrics GitHub Wiki

The on attribute provides a way of listening to a specific event before processing a metric. This currently supports listening to events on dom elements and on-async events.

dom

If the source is dom and there is no event to listen to, then the metric will apply as soon as the element is available in the dom. In addition to the standard dom element events, there is also a special iframe:focus event to observe iframe engagement.

on-async

If the source is on-async then the "on"...

Examples

dom

{
}

on-async

{
}