What are _ga4 cookies? _ga versus _gid and its bigquery export mapping; ga4 cookies explained

If you work with GA4 BigQuery exports, one of the biggest sources of confusion is this: “Where did cookies go and how do they map to users and sessions?”

The answer is simple but critical: GA4 does NOT export cookies into BigQuery. Instead, it converts browser cookies into stable analytics identifiers.

This guide breaks down exactly what each identifier means and how they connect in BigQuery.

GA4 uses first-party cookies set by Google Analytics, and the raw event data is exported into Google BigQuery.

Before diving into individual fields, here’s the mental model:

Browser Cookies → GA4 Processing → BigQuery Fields
Browser Layer

_ga
_gid
_ga<container-id>
GA4 Processing Layer

User identity stitching
Session grouping
Event enrichment
BigQuery Export

user_pseudo_id
ga_session_id
event_params
Key insight: GA4 does NOT expose cookies directly in BigQuery — it transforms them into event-level identity fields.

GA4 Cookie → BigQuery Identity Mapping

_gaIdentifies returning browser/deviceuser_pseudo_idGA1.2.123456789.17123456781876543210.1712345678Primary anonymous user identifier
_gidShort-term user differentiationNot used_gid=GA1.2.987654321.1712345678Legacy cookie with little analytical value
_ga_<container-id>Property/session continuityga_session_id, ga_session_number_ga_ABC123XYZSession logic becomes event-based
user_pseudo_idUser identity in GA4 exportNative BigQuery field1876543210.1712345678Main identifier for user analysis
ga_session_idGroups events into sessionsStored in event_params1748123456Usually derived from session start timestamp
ga_session_numberCounts user sessionsStored in event_params3Indicates the user’s 3rd session

Quick Browser → BigQuery Translation

Browser CookieTransformed Into in BigQuery
_gauser_pseudo_id
_ga_<container-id>ga_session_id + ga_session_number
_gidUsually ignored in GA4 analysis

Discover more from GA4 BIGQUERY ANALYTICS

Subscribe to get the latest posts sent to your email.

Discover more from GA4 BIGQUERY ANALYTICS

Subscribe now to keep reading and get access to the full archive.

Continue reading