Documents

Viewer analytics events

The viewer events Wellfriend records, how they are checked, and how sessions group them.

Event types

TypeExamplesMeaning
Sessionstarted, endedThe viewer session began or ended
Visibility and focusvisible or hidden, focused or unfocusedWhat the browser reported about the tab
Page and viewportpage or viewport changesWhere the viewer navigated
Actionsdownload requested, print requestedAn action the viewer asked for, if the link allows it
Collaborationform or annotation activityA separate action tied to a version

How events are checked

  • Every event belongs to an authorized viewer session.
  • Only known event types with bounded payloads are accepted.
  • States and viewport numbers are validated.
  • Document content, secrets and free-form metadata are rejected.
  • Repeated events with the same client event ID in a session are counted once.

Batches

The viewer sends events in batches, but each event is still checked on its own. Batches have count and size limits, keep their order, and are retried with the same event IDs so nothing is counted twice.

When analytics are off

If a link turns analytics off, the viewer records no engagement events and none are inferred from other activity. Security and delivery records are kept separately from engagement analytics.