WebmasterID logoWebmasterID
Event tracking

Idle and active state signals

Idle and active signals separate time a user is actually interacting from time the page is merely open. Analytics derives an active state from recent interaction (clicks, keypresses, scroll) and treats prolonged silence as idle, so engagement time does not inflate. This is a derived concept built from input events and visibility, not a single named GA4 event. It keeps engagement-based metrics meaningful.

Partially verified

How active state is derived

The common rule is: the user is 'active' if any qualifying interaction (pointer, key, scroll, or focus) occurred within a recent window; otherwise 'idle'. The window length is a convention you choose. Browsers also expose an Idle Detection API for OS-level idle, but most analytics derive activity from input events plus the Page Visibility state. The formula is: active = (now − last_interaction) < window AND visible.

Why it matters for metrics

Engagement time, engaged sessions, and bounce-like signals all degrade if idle time is counted as engagement. By accruing time only while active and visible, you keep these metrics representative of attention rather than of an open tab. Choose the idle window deliberately — too short under-counts genuine reading; too long over-counts abandonment — and document it so reports are interpretable.

How it appears in analytics and logs

Implausibly long engagement times often mean idle periods are being counted as active; tightening the active-window definition usually corrects them.

Diagnostic use case

Keep engagement time honest by counting it only while the user is active — recent interaction within a window — and pausing during idle stretches.

What WebmasterID can help detect

WebmasterID can bound engagement using an active-state rule plus visibility, so engagement figures reflect real attention without capturing input content.

Common mistakes

Privacy and accuracy notes

Active/idle state is derived from the presence of interaction, not its content. Record only that interaction occurred, never keystrokes or pointer paths that could identify someone.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.