Update time: June 26, 2025
Feature
|
||
---|---|---|
Definition
|
A random identifier for a browser-device pair, generated by GA4.
|
A unique identifier for a logged-in user, assigned by your system.
|
Scope
|
Device and browser-specific.
|
Cross-device and cross-platform.
|
Automatic or Manual
|
Automatically generated by GA4.
|
Requires manual setup and integration.
|
Use Case
|
Tracks anonymous users and sessions on a single device/browser.
|
Tracks authenticated users across multiple devices and sessions.
|
Storage
|
Stored in the _ga cookie (first-party).
|
Stored in your database and sent to GA4 via events or user properties.
|
Privacy
|
Anonymous and does not require user consent beyond cookie acceptance.
|
Requires careful handling to avoid PII and comply with privacy policies.
|
Persistence
|
Persists for up to 2 years unless cookies are cleared or browser changes.
|
Persists as long as the user account exists and is sent to GA4.
|
Example
|
GA1.1.1744161673.1625097600
(includes a timestamp).
|
18bf92n3823bf283
(a custom ID from your database).
|
Read More: