Skip to content
Console
On this page

Browser engagement

Measure engaged time per page or session.

Set engagement: true when you initialize Signal. The feature is off by default and requires explicit analytics consent. Withdrawal or Global Privacy Control stops collection. Page-view tracking is unchanged.

A visible pointer press, key press or wheel event starts counting. Counting pauses when hidden or after 30 seconds without input. Signal emits engagement every 15 seconds while active and flushes on hide or page exit if at least 1,000 ms remain unsent. At 60 events per document (including flushes), sending and measurement stop. properties.engaged_ms is a delta, not a running total; properties.path is the pathname only, with no query string or fragment.

An SPA pathname change flushes the previous path’s sampled time once detected.

Query engaged time

Send this body to the analytics query endpoint with a server-side read key. Use day or hour.

JSON
{
  "start_time": "2026-11-27T00:00:00Z", "end_time": "2026-11-28T00:00:00Z",
  "rollup": { "interval": "day", "event_names": ["engagement"],
    "group_by_properties": ["path"], "sum_property": "engaged_ms" }
}

Each bucket's property_sum is total engaged milliseconds for dimensions.path. For the average per view, repeat the query for page_view without sum_property for the same window and population. Strip query strings from those page-view paths, combine event_count by pathname and bucket, and divide the engaged milliseconds by the matching count. A zero view count has no average.