Analytics

Every number in the dashboard is computed from the events your SDKs send (and the guide sessions and step interactions derived from them as they arrive). Nothing is hard-coded.

Event schema

Each event carries eventId (client idempotency key), name, customName (for custom), occurredAt, anonymousId, userId, accountId, sessionId, guideId, guideVersion, stepId, stepIndex, url, properties and SDK name/version. Duplicate eventIds within a project are ignored.

Lifecycle names: guide_viewed, guide_started, step_viewed, step_completed, guide_completed, guide_skipped, guide_dismissed, guide_abandoned, guide_video_clicked (properties: videoUrl), checklist_task_completed, checklist_completed, checklist_dismissed, survey_displayed, survey_submitted, survey_dismissed, resource_center_opened, article_viewed, howto_shown, howto_viewed, howto_walkthrough_started (how-tos in the messenger: howToId or articleId, source, and guideKey for walkthroughs), messenger_opened, conversation_started, conversation_handed_off, scout_answered, page_view, identify, custom. Autocapture and error tracking add page_leave, click, rage_click, heatmap and exception, mobile apps add app_install, app_update, app_open and app_background (mobile.md), and server-side SDKs send custom events with properties.$source = "server" (server-sdks.md); their properties, the page metrics, error grouping, and funnel and retention definitions are in product-analytics.md. Events with a URL also store its pathname in path (not when URL collection is off).

Definitions (denominators)

MetricDefinition
Unique users reacheddistinct anonymousId with ≥1 event in range (identified users keep their anonymous id, so nobody is double counted)
Guide views / starts / completionscount of the respective events in range
Guide sessionsguide runs started in range (one per guide run, keyed by the SDK's guideSessionId)
Completion ratesessions completed ÷ sessions started in range
Abandonmentsessions dismissed + skipped + abandoned ÷ sessions started
Step drop-off(step viewed − step completed) ÷ step viewed, per step
Checklist completion ratechecklists completed in range ÷ checklists with any progress update in range
Survey response ratesurvey_submitted ÷ survey_displayed in range
NPS% promoters (9–10) − % detractors (0–6) over all numeric answers

Comparison periods use the same definitions over the immediately preceding window of equal length.

Performance

  • The event explorer and exports are paginated (100 rows per page, streamed CSV).
  • Survey distributions and checklist per-task rates are computed over the most recent 5,000 responses.

Protections

Rate limits per key/IP, batch caps (50 events), property size caps (8 KB), sensitive-key stripping, future timestamp clamping, retention windows, and a per-project switch to turn analytics off.

Paths, workflows, Data Explorer, dashboards, accounts

Behaviour analytics built on the same events: where people go, which steps they finish, ad-hoc queries, dashboards and account-level usage.

ReportWhereSaved as
PathsInsights → Pathsinsight path
WorkflowsInsights → Workflowsinsight workflow
Data ExplorerInsights → Data Explorerinsight explore
Custom dashboardsDashboardsDashboard (widgets JSON)
Accounts, parent accountsAccountsAccount.parentId
Visitor timelineUsers → a user–
Excluded trafficSettings → Privacy & dataAnalyticsExclusion

Visitors, accounts and the report filter

  • A visitor is COALESCE(endUserId, anonymousId): identified people once across devices, anonymous visitors by their anonymous id. An account is the event's accountId (the external id the app passed to identify()); the SDK attaches it to every event once an account is known.
  • Every report below takes the same report filter: a segment (an audience's members, static or as last evaluated at identify()), an account (that account and all of its child accounts), an account trait (plan = enterprise) and/or an app version (events the SDK sent with that appVersion; (not set) for events without one, see App versions). The Pages report and page detail take it too. Active users, stickiness, KPI tiles and account metrics normally read the daily rollup; with an app version they aggregate events directly, since the rollup has no version (slower on long ranges).
  • Excluded traffic is always left out (see below).

Paths

Forward paths start at a page or event (or at each session's first step) and show the next N steps (1–8); backward paths end at one and show the N steps before it. A path is one SDK session (events without a session id are grouped per visitor per UTC day), and the anchor is the session's first matching event. Nodes are page paths (ids folded into :id when group ids is on), track events (custom:<name>) and/or clicks (click:<text>). Collapse repeats merges consecutive identical nodes (a reload doesn't use up a step); the exclude list drops nodes by label (* wildcards) before steps are counted. Each step keeps its 8 most common nodes and merges the rest into (other); sessions that end early flow into (exit) (forward) or begin at (session start) (backward). The 20 most common complete paths are listed under the Sankey.

Workflows

A workflow is 2–10 ordered steps and a completion window (1–90 days), per visitor or per account. Someone starts with their first step-1 event in the range and completes when they then do each later step in order within the window from that start (it may end after the range). Statuses: completed; in progress (started, window still open); not completed (the window closed first); not started (active in the range, never did step 1). Completion rate = completed ÷ started; the median time to complete runs from the first step to the last. Completion over time groups people by the day or week they started. At account level, different visitors of an account can complete different steps. Unlike a funnel (conversion between steps), a workflow tracks each person's status.

Data Explorer

Up to five data sources side by side: page views (optionally one page, * wildcards), track events (optionally one name), clicks (by element text and/or page), guide events (by guide and event) and all activity. Metrics: events, unique visitors, unique accounts, average events per visitor. Interval: day, week (from Monday) or month. Breakdowns: page, event name, account, browser, device type, OS, country (the event's country property; the browser SDK doesn't send one today, so it is (none) unless your events carry it), visitor_trait:<key> and account_trait:<key>; each source keeps its 10 largest values. Distinct counts are exact per bucket, per value and in total (one GROUPING SETS query per source). Compare adds the previous period of equal length, aligned by bucket. Results export as CSV (one row per series and period).

Sources are a registry (server/services/explore-sources.ts): an id, a label, its filter fields and a SQL condition over ProductEvent. Tagged pages and features register theirs with registerExploreSource().

Active users and stickiness

DAU, WAU and MAU per day are the distinct visitors (or accounts) with any event in the 1, 7 and 30 days ending that day. Stickiness is DAU ÷ MAU and WAU ÷ MAU; the summary uses averages over the range (average DAU ÷ average MAU) and leaves out today while it is incomplete. Time in app is, per day, the sum over sessions of last event − first event, each session capped at 4 hours.

Dashboards

Named grids of widgets per project: any saved insight, KPI tiles (active visitors / accounts, events, page views, sessions, average time in app, guide completions, each against the previous period), active users, stickiness, top pages, top accounts, a Product Engagement Score slot, and Scout's widgets (see Scout insights on dashboards). Widgets are a registry (components/dashboards/widget-registry.tsx; Scout's are in scout-widgets.tsx). New dashboards can start from the Product usage or Scout insights template, or blank. Workspace dashboards are visible to everyone in the workspace and editable with Manage insights & alerts; private ones only by their creator. One workspace dashboard can be the project default (the Dashboards section opens it); otherwise the built-in Overview (the project home) is the default.

Accounts and parent accounts

The account list shows, for the range, active visitors, events, time in app, active days, last active, members and chosen trait columns. Parent accounts: pass an account trait parentAccountId (the parent's external id) to identify() and the account is filed under it (the parent is created if needed), or set the parent on the account page (Edit audiences permission). Hierarchies are followed up to 10 levels and cycles are refused. Roll up lists top-level accounts with their whole family's activity, counting each visitor once. The account page shows the account's own metrics and, for parents, the rolled-up ones; its sections (visitors, activity, top pages and events, guides seen, survey / NPS responses, recordings) cover the account and its children.

Excluded traffic

Settings → Privacy & data → Excluded traffic: visitor ids, account ids, IP addresses / CIDR ranges (IPv4 and IPv6) and trait rules (a visitor or account trait equals / contains / starts with / ends with a value, case-insensitive). Managing them needs Project settings.

  • At ingest, events from an excluded IP, visitor (including their anonymous events on a device they used), account, or a visitor / account matching a trait rule are dropped and never stored.
  • At query time, visitor, account and trait rules also filter every report in this section and the Pages report, so adding a rule hides existing data at once and removing it brings it back. IP rules apply only to new events, because IP addresses are not stored with events. Funnels, retention and the Overview count what is stored (excluded events stop arriving once a rule exists). Session recordings are not affected.

Audiences from reports

A workflow status, a path node, a Data Explorer series or bar, a page or an account can be saved as a static audience (up to 10,000 visitors, a snapshot of the selection), usable for guide targeting and as a segment filter.

Performance and the daily rollup

  • Reports aggregate in SQL over the (projectId, environment, occurredAt) index; account reports use (projectId, accountId, occurredAt) and visitor timelines (endUserId, occurredAt).
  • The worker's analytics.rollup job (every 15 minutes) maintains AnalyticsActiveDay: one row per visitor, account and UTC day with event counts and time in app. Active users, stickiness, KPI tiles, account metrics and workflow "active" counts read it for whole days and aggregate raw events only for the rest (normally today). Each run re-rolls the last 3 days so late events count; the first run backfills up to 400 days; rows past the event retention are deleted.