Skip to content
A/MR

Analytics · · 2 min read

GA4 User-ID Takes Your Own ID of Up to 256 Characters, Can’t Contain Personal Data, and Doesn’t Rewrite the Past

GA4 User-ID connects a signed-in person's activity across devices. IDs must be unique, 256 characters or less, contain no personally identifiable information, and don't apply to past data.

Diagram: GA4 User-ID takes your own unique ID of up to 256 characters; keep email, name and phone out of the ID

hi, i’m amr. on b2b sites where buyers log in to a portal, a demo account or a client area, GA4 can connect their visits across devices with User-ID. google’s help page sets a few hard rules about what that ID can contain.

what google says, in its own words

  • the feature “lets you associate your own identifiers with individual users”, so you can connect behavior across sessions, devices and platforms
  • “Each user ID must be 256 characters or less.”
  • “Ensure unique User IDs for each user”. giving two people the same ID merges their activity
  • you must avoid “impermissible personally identifiable information”, and give “appropriate notice of your use of identifiers in your Privacy Policy”
  • “Repeatedly setting a blank or dummy user ID can lead to inaccurate data (including permanent data loss)”
  • data collected before you start sending IDs “won’t be reprocessed and associated with a user ID”
  • your property needs a reporting identity that includes User-ID: blended or observed
  • events earlier in a session, before login, are linked to the ID once it’s set. after logout, send null, not a dummy value
  • with BigQuery linked, user IDs are exported “regardless of the consent status” of users

the page doesn’t define impermissible PII with examples, and doesn’t explain how to find duplicate or dummy IDs that are already in a property.

my reading, not google’s wording: the safest ID is the internal record number your CRM or login system already uses, not anything a person would recognize, like an email address.

what to check this week

  • check what your site sends as user_id. it should be an internal ID, not an email, name or phone number
  • make sure logged-out visitors get null, not a placeholder like “guest” or “0”
  • confirm your reporting identity is blended or observed, so the IDs are used in reports
  • update the privacy policy to mention the identifiers, as google requires
  • my post on GA4 reporting identity explains the three options

where this stops applying

app tracking and server-side sending are covered in google’s developer guides, not this page. this isn’t legal advice on privacy rules. i haven’t audited any property for this post.


start scaling — if your GA4 user counts look inflated for people who log in, a short User-ID review usually finds the gap. let’s connect.

Sources: Google Analytics Help, “[GA4] Measure activity across platforms with User-ID” (support.google.com/analytics/answer/9213390). Figures are published product documentation, not verified results from Amr’s own client accounts.

Leave a reply