Cookieless sessions

3x does not need cookies or device storage to count sessions. Before consent the browser keeps its ids in memory only; the server links the requests of one visitor with a hash that changes every day and cannot be recomputed later.

In the browser

  • Every page load creates a random session id (UUID v4) and a random id per pageview. Both live in memory. Navigation inside a single-page app keeps the session id.
  • The session id rotates after 30 minutes without a send.
  • A tab hidden for more than 30 minutes starts a new pageview (nav = resume) and a new session when it becomes visible again. A restore from the back/forward cache starts a new pageview with nav = back_forward.
  • Pageviews are finalized before they turn 24 hours old.
  • After consent the session id is kept in sessionStorage (<prefix>tsid), so a full reload within 30 minutes continues the session in the browser itself.

On the server

Each batch carries the client session id and a flag fresh (generated on this page load). The server resolves the session of every new pageview, oldest first:

  1. Personal pages (for example personalized QR-letter URLs, configured as personal paths) get an isolated session with a random id – no hash, no referrer, no attribution, hour-truncated times.
  2. Alias: a session of the same client session id that is still alive (last seen < 30 min) and has the same campaign → stitch memory (SPA navigation) or storage (restored after consent).
  3. Hash: only when the id is fresh – the latest session with the same visitor hash, alive, started less than a day ago, same campaign → stitch hash.
  4. Otherwise a new session (id = the client id unless taken).

A new campaign starts a new session: when the URL carries attribution (UTM parameters or click ids) that differs on any of the 13 keys from the session's entry attribution.

The visitor hash

visitor_hash = first 32 hex of sha256(daily_salt ‖ ip ‖ "\n" ‖ user_agent ‖ "\n" ‖ project_id)
  • The salt is random, per project and per calendar day in the project time zone. Salts of past days are deleted on every salt access and by the cleanup job, so yesterday's hashes cannot be recomputed – not even by the operator.
  • The scope is the project: all hosts of a project stitch, but a visitor can never be linked across projects or tenants.
  • IP and user agent are used for the hash and for rate limits only and are never stored. The user agent is reduced to device class, browser family and OS family.
  • The hash is computed only for batches that contain a non-personal pageview.

Visitors

Visitors are an estimate: distinct (local day, visitor hash) pairs plus sessions without a hash. A visitor who returns on another day counts again – that is the price of not storing identifiers. Sessions of the same person can still be linked into a customer journey: with consent through a first-party visitor id, without consent only through ad click ids, hashed identities from forms and – the same day – this hash.

That is why the dashboard reports „Ø Besucher pro Tag“ (complete days only) and calls a range total of visitors „Besuchertage“, and why a return is counted with its basis: the same day for everyone (only when the visit starts at least 30 minutes after the previous one ended, filter visitor_type=same_day_repeat), across days only with consent or for known people. See Visitors and traffic.

Seen and the badge

The dashboard lists every visit under Sitzungen (/<org>/<project>/sessions; the former „Verhalten › Besuche“ – old links such as /behavior/visits?… and /behavior/visits/<id> redirect with every query parameter). Each user has their own gesehen state per visit:

  • Opening a visit or playing its recording marks it as seen; the eye button of a row, the bulk buttons of selected rows and „Alle als gesehen markieren“ (every visit of the current view, at most 50,000) mark by hand, and „Als ungesehen markieren“ takes it back. Seen rows are shown lighter, unseen ones bold with a dot. Teammates keep their own state; the read-only demo does not mark.
  • The segment Alle · Ungesehen · Gesehen is the table filter f.seen=eq:false|eq:true – it shows as a filter chip, travels in shared links and goes into the CSV. Default is Alle, so a link always shows the same rows whatever the badge says.
  • The badge on the menu item counts the visits you have not seen that started in the last 7 days (the range „Letzte 7 Tage“: today and the 6 days before in the project time zone), are not test traffic and score at least the lower bound of the tier Neugierig of the project's interest model (default 10) – cold visits never count. „Nur diese zeigen“ above the list opens exactly that view. A fixed window keeps the number honest across devices and teammates, unlike „since your last visit“, which resets whenever the dashboard is opened.

API: GET /v1/projects/{project}/sessions/unseen (the badge), POST …/sessions/seen (sessionIds, seen) and POST …/sessions/seen-all (the view as query parameters of sessions.list); sessions.list carries seen per row and filters with f.seen. MCP: sessions_list with seen, sessions_mark_seen. The state belongs to the user behind a dashboard login or an MCP OAuth grant (both share it); a secret key has its own. It is deleted with its visit.

One list, playlists and play

Sitzungen shows every visit in one table; there is no separate list of recordings. Every row with ▶ can be played: the player takes the visit's recording when there is one (and you may see recordings), otherwise it redraws the visit from its clicks, scrolling and page changes. A visit without either (older script, capture level without click data, the health preset without consent) has no ▶.

  • Playlists above the table count the visits of the chosen period and filters: „Heiß ohne Anfrage“ (interest from „heiß“, paid, no lead, last 24 hours), „Abbruch im Quiz“, „Wutklicks“, „WhatsApp ohne Lead“, „Angefragt“ (lead or goal) and your own playlists („Eigene Playlist“ saves the current filters). A click filters the table (?playlist=…), a second click clears it. „Alle abspielen“ and „Highlights abspielen“ play the playable visits of the view in its order (at most 200).
  • Columns: Beginn (▶, time, length, device), Kanal (campaign, ad, landing page), Verlauf (mini timeline: enquiries, rage clicks, dead clicks, quiz and form steps, CTAs), Interesse, Reibung (0–100 with rage and dead clicks), Auffällig weil (the visit's own inquiry, goal reached, „heiß“, high friction, dropped quiz or WhatsApp without inquiry – the first that holds), Seiten and Mit Anfrage by default; Gerät, Land, Dauer gesamt, Lead and every other column under „Spalten“. All sort, filter and go into the CSV.
  • Old links with ?rec=1, ?rec=0 or recordings columns redirect to the list with the same filters; ?play=<visit> keeps opening the player.

API: sessions.list carries playable, friction, rage, dead and notable per row, markers=true adds the mini timeline (markers, ≤ 12 per visit), playlist= filters like the dashboard (lost_leads, quiz_drop, rage, whatsapp_no_lead, inquired, frustrated; „this ad“ is the filter ad_id) and queue=true returns what „Alle abspielen“ plays (queue.n, queue.durationS, queue.firstId). The columns playable, timeline, friction, rage, dead and notable sort and filter like every other (timeline only in the CSV). MCP: sessions_list with playlist and markers.

Behind proxies and CDNs

Stitching needs the visitor's real IP. If events reach the API through a proxy that does not forward it, all visitors look alike and are merged. Use the first-party proxy, which forwards the IP with a proxy key, or make sure the API sees the client address (X3_TRUSTED_IP_HEADERS). The dashboard warns when more than 30 % of a day's sessions share one visitor hash.

Stitch kinds in reports

Every session records how it was linked (new, memory, storage, hash) – filter with stitch= or break down by stitch to see how much of your traffic relies on hashing.

Test traffic and opt-out

  • ?x3_test=1 anywhere in a document's lifetime marks all its batches as test traffic. Reports exclude it unless include_test=true.
  • ?x3_notrack=1 stores an opt-out flag in this browser (localStorage, the one write allowed without consent because the user explicitly asked for it); ?x3_notrack=0 removes it. The dashboard's exclude own devices box has both links.
  • Parameter names are configurable per project (testParams, notrackParam).