---
title: "How Session-Based Cookieless Tracking Works"
description: "How session-based tracking replaces cookies: the daily-rotating session identifier, no IP storage, retention and data flow in Sealmetrics' architecture."
summary: "Sealmetrics computes a session identifier in the browser from a hash of standard device characteristics. It is never stored on the device; before anything is stored, the server re-keys it with a daily salt that is destroyed on rotation, so the stored identifier changes every day and two days of the same device cannot…"
canonical_url: "https://sealmetrics.com/blog/cookieless-tracking-technical-deep-dive/"
lang: "en"
author: "Rafa Jiménez"
author_url: "https://sealmetrics.com/authors/rafa-jimenez/"
date_modified: 2026-12-03
content_type: "blog"
owner: "content"
llm_priority: "useful"
last_verified: "2026-12-03"
source: https://sealmetrics.com/blog/cookieless-tracking-technical-deep-dive/
publisher: Sealmetrics
---

Technical

# How Session-Based Tracking Works: Cookieless Architecture Explained

December 1, 2025 12 min read By [Rafa Jiménez](https://sealmetrics.com/authors/rafa-jimenez.md) Updated December 3, 2026

How session-based tracking replaces cookies: a session identifier computed in the browser and re-keyed daily, no IP storage, aggregated reports and 24-month retention.

## Introduction

**The problem**: cookie-based analytics loses the visitors who drop out at the banner through [cookie rejections and banner ghosting](https://sealmetrics.com/blog/cookie-banner-ghosting-data-loss.md) — how many depends on your sector, brand strength and traffic sources. Cookieless analytics measures them by working without cookies, without a consent banner for its own analytics and without storing IP addresses.

**What you'll learn**:

- How cookieless tracking works technically
- Why it measures the visits cookie-based tools miss
- The session-based architecture behind Sealmetrics
- Implementation differences from cookie-based analytics
- The legal position: minimal, pseudonymised data under legitimate interest (Art. 6(1)(f))

**Key takeaways**:

- Cookieless tracking uses session identifiers instead of persistent cookies
- Nothing stored on the device and no data that identifies anyone (no consent banner needed for Sealmetrics' own analytics, self-assessed; in Germany an open question — see [Germany](https://sealmetrics.com/docs/compliance/germany-ttdsg-self-assessment.md))
- 24-month retention on aggregated, non-identifying reports
- Sealmetrics measures the visits a cookie-based tool loses to the banner: [ghosted users](https://sealmetrics.com/blog/cookie-banner-ghosting-data-loss.md) and cookie rejecters

For an overview, see the [cookieless analytics guide](https://sealmetrics.com/blog/cookieless-analytics-guide.md).

## How Cookies Work (and Where They Fall Short)

### The Cookie-Based Approach

Cookie-based analytics tools set a first-party cookie with a unique identifier and send it with every hit. GA4's `_ga` cookie, for example, lasts two years by default ([Google, cookie usage](https://support.google.com/analytics/answer/11397207), checked 3 December 2026). Simplified:

```
// Cookie-based approach (simplified, not any vendor's code)
// A cookie that persists across visits
document.cookie = "client_id=" + generateUUID() + "; max-age=63072000"; // 2 years

// Every hit carries the same client ID
sendHit({ clientId: getCookie('client_id'), page: location.href });
```

**What happens**:

1. JavaScript runs on page load
2. Creates a persistent cookie on the device
3. Sends the cookie value with every pageview
4. The server ties hits from the same browser together across visits

### Why This Falls Short in the EU

**Cookie rejection**: many EU visitors reject the consent banner **Banner ghosting**: a large share of visitors ignore consent banners entirely, making no choice — usually a bigger group than the rejecters **Browser restrictions**: Safari's ITP caps script-set cookies at 7 days ([WebKit](https://webkit.org/tracking-prevention/)), so returning visitors look new after a week away

**Result**: [cookie-based analytics loses the visitors who reject or ignore the cookie banner](https://sealmetrics.com/blog/google-analytics-vs-sealmetrics.md). The loss is smaller than the raw rejection rate — Consent Mode models part of the gap back in as estimates — and it is still enough to distort decisions, because it is not spread evenly across your channels.

**The core issue**: setting or reading a non-exempt cookie requires consent under ePrivacy Article 5(3), with the GDPR defining what valid consent is. When users reject or ignore the banner, cookie-based tracking stops.

## Cookieless Architecture Explained

### The Fundamental Shift

**Cookie-based** → one persistent ID across all visits **Cookieless** → no persistent ID: the stored session identifier changes every day

```
COOKIE-BASED:
Visitor arrives → cookie ID "abc123" stored on the device for 2 years
Same browser returns 3 months later → same ID "abc123"
= Can follow the browser over time

COOKIELESS:
Visitor arrives (Nov 14, 2pm) → browser computes a device hash,
  server stores a daily pseudonym "sess_1234"
Session ends after ~2h of inactivity
Visitor returns (Nov 20, 3pm) → new daily salt → different pseudonym "sess_5678"
= Cannot link across days, only within a single visit
BUT = no consent-driven loss (no banner needed for its own analytics, self-assessed)
```

### Why This Changes the Consent Question

See the [GDPR framework guide](https://sealmetrics.com/blog/gdpr-compliant-analytics-framework.md) for the full argument. In short, cookieless analytics can be designed to need no consent for its own analytics because:

1. No persistent identifiers: the session identifier rotates daily and, once rotated, cannot be reconstructed
2. No IP addresses stored
3. Sessions reset: no cross-session profiling
4. Nothing written to the device (standard browser properties are read only to compute the session identifier — see the [consent exemption requirements](https://sealmetrics.com/docs/compliance/analytics-cookies-exemption.md) for how ePrivacy Article 5(3) applies)

On our own assessment, Sealmetrics measures all the traffic you lose today to the cookie banner, without one for its own analytics (Germany: open question). The short-lived pseudonymised data it handles relies on legitimate interest, GDPR Article 6(1)(f), and reports are always aggregated.

## Session-Based Tracking Deep Dive

### What Is a Session Identifier?

A **session identifier** is computed in the browser on each page load and re-keyed daily on the server, so nothing stored links a device across days:

1. **In the browser**: a hash of standard device characteristics (user agent, timezone, languages, screen resolution, colour depth and similar) plus the site's account ID
2. **Never stored on the device**: no cookies, no localStorage, no sessionStorage
3. **On the server**: re-keyed with a secret and a daily salt that is destroyed on rotation, and never stored as sent
4. **Sent with each pageview and event**, together with the page URL, the referrer and the browser timezone (used for the country, instead of the IP)

Details of each field: [what we track](https://sealmetrics.com/docs/security-privacy/what-we-track/#6-session-identifier).

### The Dual System

**System 1: session-ID tracking** (primary)

- Pageviews in the same visit share the session identifier
- The session ends after ~2 hours of inactivity
- Used for session-level metrics: entrances, pages per session, bounce rate, engagement

**System 2: isolated hits** (fallback)

- If a session identifier can't be computed, the tracker still sends the pageview as an isolated hit
- No session linking: each one is counted as a new entrance

**Result**:

- Pageviews without a session identifier are still counted, as isolated hits
- Visits where the JavaScript never runs (JavaScript disabled, some ad blockers) are not measured — there is no server-side capture of pageviews

## No IP Storage

### Why IP Storage Matters for the GDPR

IP addresses can be **personal data** under the GDPR (CJEU, *Breyer*, C-582/14), and hashing them is pseudonymisation, not anonymisation (Recital 26). Storing them needs a legal basis and safeguards.

### Sealmetrics: No IP in the Analytics Data

We don't store IPs. To filter bots we check the IP in flight against a public list of automated-traffic IPs, and don't keep it.

- No IP in the analytics database (there is no IP column)
- No IP hashing
- No IP linked to any hit, session or metric
- No geolocation from the IP: country comes from the browser timezone ([country detection](https://sealmetrics.com/docs/security-privacy/country-detection.md))

```
GDPR chain:
Personal data = requires an Article 6 legal basis
Cookieless tracking with no IP = pseudonymised session ID, rotated daily
                               = unrecoverable after rotation, reports aggregated
                               = legitimate interest, Art. 6(1)(f)
```

For a fuller comparison of [cookieless vs cookie-based analytics](https://sealmetrics.com/blog/cookieless-analytics-vs-cookie-based.md), see the technical guide.

## Data Protection by Design

### The Legal Foundation

**GDPR Recital 26 — anonymous information**:

> "The principles of data protection should therefore not apply to anonymous information, namely information which does not relate to an identified or identifiable natural person."

Pseudonymised data is still personal data, and a daily-rotating session identifier is a pseudonym while its key and salt exist. Sealmetrics keeps that window to one day: after the rotation not even Sealmetrics can reconstruct the identifier, and reports are always aggregated.

| Requirement | What it asks | How Sealmetrics does it |
| --- | --- | --- |
| Lawful basis | Needed if personal data is processed | Legitimate interest, Art. 6(1)(f), for short-lived pseudonymised data |
| Minimal identifier | Session-only | Session identifier re-keyed daily, never stored as sent, unrecoverable after rotation |
| No IP storage | Avoid identifying data | IPs checked in flight, not stored |
| Data minimisation | Collect only what is necessary | Only what's needed to measure the visit |
| Storage limitation | Don't keep longer than needed | Per-hit log 1 day, hourly aggregates 90 days, daily aggregates 24 months |
| Transparency | Privacy policy | Disclose Sealmetrics to users |
| Contract | Processor agreement | DPA included |

### GDPR Article 25 — Data Protection by Design and by Default

Retention is fixed for all plans and enforced by database TTLs:

```
Per-hit log:               1 day
Hourly aggregates:        90 days
Daily aggregates and
conversion events:        24 months
```

Purpose: analytics and bot filtering only — never advertising, profiling or cross-site tracking.

## How the System Fits Together

```
┌─────────────────────────────────────────────────────────┐
│                    WEBSITE VISITOR                      │
└────────────────────────┬────────────────────────────────┘
                         │ page loads
                         ▼
┌─────────────────────────────────────────────────────────┐
│              SEALMETRICS TRACKER (t.js)                 │
│  1. Compute session hash (never stored on device)       │
│  2. Collect pageview data and timezone                  │
│  3. No cookie, no device storage                        │
└────────────────────────┬────────────────────────────────┘
                         │ HTTPS
                         ▼
┌─────────────────────────────────────────────────────────┐
│              COLLECTION ENDPOINT (EU)                   │
│  • Validates the request                                │
│  • Checks the IP in flight for bots, does not keep it   │
│  • Re-keys the session hash with the daily salt         │
└────────────────────────┬────────────────────────────────┘
                         ▼
┌─────────────────────────────────────────────────────────┐
│              AGGREGATION AND RETENTION                  │
│  • Aggregates by date, page, source, device, country    │
│  • Per-hit log purged after 1 day                       │
│  • 24-month maximum on aggregates                       │
└────────────────────────┬────────────────────────────────┘
                         ▼
┌─────────────────────────────────────────────────────────┐
│              DASHBOARD, API AND EXPORTS                 │
│  • Entrances, pageviews, bounce rate, engagement        │
│  • Conversions and revenue, last click                  │
│  • Exports, API, BigQuery                               │
└─────────────────────────────────────────────────────────┘
```

Analytics data is hosted and processed only in the EU (Dublin).

## Data Accuracy

### Where the Extra Visits Come From

**Cookie-based analytics**: only the visitors who accept the banner are measured. Those who reject it or ignore it are lost, and browser protections such as Safari's ITP shorten what is kept for the rest. How large the gap is depends on the site — measure it side by side. In the [Incapto case](https://sealmetrics.com/case-studies/incapto.md) (one Shopify store, not a benchmark), GA4 did not record 29% of real visits.

**Sealmetrics (cookieless)**: there is no banner to reject or ignore for its own analytics. Visits whose browser runs the tracker are measured — most visits with a session identifier, and the few without one as isolated hits (each counted as a new entrance). Visits where the JavaScript never runs (JavaScript disabled, or an ad blocker that stops it) are not measured.

| Metric | Cookie-based analytics | Sealmetrics |
| --- | --- | --- |
| **Data capture (EU)** | Only visitors who consent | **No consent-driven loss** |
| **Consent banner** | Yes | **No for its own analytics (self-assessed)** |
| **Identifier lifetime** | Cookie, often up to 2 years | **Session, re-keyed daily** |
| **GDPR position** | Consent | **Legitimate interest, identifier unrecoverable after one day** |

## Comparison: Cookieless vs Cookie-Based

### Timeline of One Browser

**Cookie-based**

```
Day 1: visit
├─ Cookie created (e.g. 2-year expiry), stored on the device
└─ Requires consent in the EU

Day 30: same browser returns
└─ Same visitor recognised (if the cookie survived)

Safari, after 7 days without a visit:
└─ Script-set cookie expired: counted as a new visitor
```

**Cookieless (Sealmetrics)**

```
Day 1: visit
├─ Session computed (in-browser hash, re-keyed daily on the server)
├─ Nothing stored on the device; session ends after ~2h of inactivity
└─ No consent banner for its own analytics (self-assessed)

Day 1: same visitor browses 3 pages
└─ All 3 pages in the same session

Day 2: same visitor returns
├─ New stored identifier (new daily salt)
└─ Counted as a new entrance — no returning-visitor metric
```

### What Each Approach Answers

| Question | Cookie-based | Cookieless |
| --- | --- | --- |
| How many visits? | Only visitors who consent | **Visits whatever the consent choice** |
| Pages per session? | On the consenting sample | **On all measured sessions** |
| Which pages and channels convert? | Biased toward visitors who accept cookies | **Last click, on all measured sessions** |
| Are users returning? | For visitors who accept cookies | **Not measured — each entrance counts as new** |
| Where do visitors from Germany go? | Only German visitors who consent | **German traffic, whatever the consent choice** |

## Conclusion: Why Cookieless Analytics Matters

**The problem today**:

- Cookie-based analytics loses the visitors who reject or ignore the cookie banner, and not at random
- Cookie banners interrupt the first visit
- Decisions are made on a self-selected sample

**What Sealmetrics does**:

- Cookieless tracking measures **all the traffic you lose today to the cookie banner**
- No consent banner needed for its own analytics (self-assessed)
- No IP storage, so no hashed-IP debate to have
- Reports based on visitors whatever their consent choice

**Implementation**:

1. Copy the tracking snippet
2. Paste it in your site's `<head>`
3. See visits arrive in the dashboard, typically within 2 minutes

Installation takes 5 to 30 minutes depending on the platform. The legal reasoning is set out in [GDPR and ePrivacy explained](https://sealmetrics.com/docs/compliance/gdpr-and-eprivacy.md).

## Related reading

[Cookieless Analytics: A Guide for 2026](https://sealmetrics.com/blog/cookieless-analytics-guide.md)

16 min read

[What Is Cookieless Tracking? A Complete Guide for 2026](https://sealmetrics.com/blog/what-is-cookieless-tracking.md)

8 min read

[Cookie-Based vs Cookieless Analytics: Technical Comparison](https://sealmetrics.com/blog/cookieless-analytics-vs-cookie-based.md)

15 min read

## Technical Questions

### How does Sealmetrics work without cookies?

Sealmetrics computes a session identifier in the browser from a hash of standard device characteristics. It is never stored on the device; before anything is stored, the server re-keys it with a daily salt that is destroyed on rotation, so the stored identifier changes every day and two days of the same device cannot be re-linked — not even by Sealmetrics. A session ends after about 2 hours of inactivity.

### Why doesn't Sealmetrics store IP addresses?

IP addresses are personal data under the GDPR, hashed or not. We don't store IPs: to filter bots we check the IP in flight against a public list of automated-traffic IPs, and don't keep it. No analytics metric is calculated from an IP.

### Can I track returning visitors with Sealmetrics?

No. The stored identifier changes every day and is never used to link one visit to another. Each entrance is counted on its own — there is no returning-visitor metric. That is the trade-off that keeps the data minimal.

### How does Sealmetrics handle bot traffic?

Bots are filtered before data reaches your reports: the IP is checked in flight against a public list of automated-traffic IPs (and not kept), user agents are matched against known bot signatures, bursts of pageviews are detected, and requests are validated with an HMAC token and domain authorization. See bot detection.

### What if JavaScript is disabled in the visitor's browser?

Then that visit isn't measured. Sealmetrics counts visits through its JavaScript tracker (plus Shopify order webhooks for orders); there is no server-side capture of pageviews, so a browser with JavaScript disabled — or an ad blocker that stops the tracker — hides that visit. Unlike consent loss, this doesn't depend on a banner.

### How does Sealmetrics handle GDPR data subject requests?

Sealmetrics stores no IPs and no persistent IDs, and the session identifier cannot be reconstructed after the daily rotation. In practice, a data subject request cannot be matched to a person (GDPR Article 11): there is no stored record that can be linked to the requester, the per-hit log is purged after one day, and reports are aggregated.

### Can I integrate Sealmetrics with my other tools?

Yes. The REST API returns your reports as JSON on every plan, for example: There are also CSV exports, a BigQuery integration, webhooks (Scale and above) and an MCP server.

### How accurate is Sealmetrics compared to Google Analytics?

Sealmetrics also measures the visitors a cookie-based tool loses to the banner, so in EU markets it typically reports more traffic — by an amount specific to your site. At Incapto, GA4 did not record 29% of real visits over 48 days, while Sealmetrics recorded 95.7% of real online orders (case study). Measure your own gap by running both for 30 days and checking each against a source neither controls.

### What about subdomains?

Sessions continue across subdomains of the same site without the cookie-scoping work cookie-based tools need, because the session identifier is computed the same way on every page load.

### How does the architecture support GDPR compliance?

Sealmetrics is designed to comply with the GDPR; that is our self-assessment, not a certification.
