A session ID is a unique identifier that identifies a single visit (session) on a website. It's assigned when a page is called up and persists for the duration of the visit, usually via a cookie or a URL identifier, and increasingly server-side in consent-compliant setups.

The session ID is the technical foundation for attributing multiple pageviews to the same visit, for example to reconstruct click paths or attribute a sale to a specific advertising source (attribution). Without functioning session tracking, you can neither analyse a clean funnel nor bill affiliate marketing correctly.

Important for GDPR-compliant tracking: session IDs often count as personal data, so collecting them requires a valid consent basis, see Consent Mode v2 in our FAQ.

With third-party cookies gradually being phased out, server-side tracking (server-side tagging via your own subdomain) is gaining importance, because session data is exchanged directly between server and analytics platform instead of via client-side scripts in the browser, which browsers and ad blockers increasingly restrict. This improves data quality and load time, but doesn't change the underlying consent requirement.

Related terms

A clean tracking foundation

You'll find more on GDPR-compliant tracking in our FAQ on Consent Mode v2.