trackr

trackr and GA4 metrics

What users, sessions, engagement and channels mean in trackr, and where they differ from Google Analytics 4.

The trackr dashboard and the /stats API use GA4’s terms. The rules follow GA4 where trackr has the data; where it has less, because nothing is stored on the visitor’s device, this page says so.

Term GA4 trackr
Users distinct client IDs from a cookie distinct daily session IDs; over several days the sum of daily users
Sessions events of a user with gaps under 30 minutes the same rule on the daily session ID
Views page_view events pageviews
Engaged session longer than 10 seconds, 2+ page views, or a key event more than 10 visible seconds, 2+ pageviews, or a custom event
Engagement rate engaged sessions ÷ sessions the same
Bounce rate sessions that are not engaged ÷ sessions the same
Average engagement time visible time per active user visible seconds per session
Default channel group rules on source, medium, campaign and click IDs the same rules on the first pageview’s referrer and UTM parameters
Events eventName custom events from track()

Users

GA4 recognises a returning browser by the client ID in its cookie. trackr stores nothing on the device: the session ID is a salted hash of IP, User-Agent and site with a salt that changes every day (Privacy). Within a day, a visitor is one user; on the next day the same visitor is a new one. A range of several days therefore shows the sum of daily users, which is higher than GA4’s deduplicated count.

Sessions and engagement

A session is every event of one visitor (pageviews, custom events, engagement events) with gaps of at most 30 minutes, and at least one pageview. It is engaged when it has two or more pageviews, a custom event, or more than 10 visible seconds. Every other session is a bounce.

Visible time comes from the client: when a page is hidden (tab switch, navigation, closing), it sends an engagement event with the seconds the page was visible, at most 1800 per event. Time in a background tab does not count. A page that is still open when the day ends counts toward the day its event arrives.

GA4 counts any key event as engagement; trackr counts every custom event, so events that fire without the visitor doing anything (for example on load) make sessions engaged.

Channels

Each session gets one channel from its first pageview: the referrer host and the utm_source, utm_medium and utm_campaign parameters. channelGroup() from @casoon/trackr/server applies GA4’s rules and returns one of its groups (Direct, Paid Shopping, Paid Search, Paid Social, Paid Video, Display, Paid Other, Organic Shopping, Organic Social, Organic Video, Organic Search, Email, Affiliates, Referral, Audio, SMS, Mobile Push Notifications, Unassigned).

  • A referrer on one of the site’s own domains counts as no referrer, so such a session is Direct.
  • Search engines, social networks, video and shopping sites are matched by name in the host (google.de, m.youtube.com); the lists cover the common sites, not GA4’s full lists.
  • trackr has no ad click IDs (gclid), so paid traffic needs UTM parameters.

The channel is computed when the numbers are read, so it applies to older data and to daily totals as well. Days imported from GA4 keep the channel GA4 computed (Import GA4 history).

Edit this page on GitHub