Stay organized with collections
Save and categorize content based on your preferences.
User IDs are your own unique identifiers that you assign to individual users.
This guide explains how to send user IDs to Google Analytics, so you can connect
user behavior across different sessions, devices, and platforms.
To avoid issues with your reporting and data accuracy, make sure you follow
these best practices:
Don't set custom dimensions based on user IDs. Setting custom dimensions
based on user IDs leads to dimensions with too many unique values. Having
too many unique values causes issues with Google Analytics data and
reporting accuracy. Learn more about best practices for setting custom
dimensions.
Don't send a user ID when a user isn't signed in. If a user isn't signed in,
don't pass the user ID parameter, or leave the value as undefined. Don't set
a custom value, like "empty" or "NA". Setting the same value for all
sessions without a user signed in causes issues with the accuracy of your
reporting.
Before you begin
Before you can send user IDs, make sure you've completed the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["User IDs, assigned by you, enable tracking user behavior across sessions, devices, and platforms in Google Analytics."],["To send user IDs to Google Analytics, ensure you have a Google Analytics account, a web data stream, and the Editor role or higher."],["Avoid setting custom dimensions based on user IDs and sending user IDs when a user isn't signed in to maintain data accuracy."],["Before implementing user IDs, review the best practices and guides linked in the document to avoid potential issues."]]],["User IDs are unique identifiers assigned to users to track their behavior across sessions, devices, and platforms within Google Analytics. To ensure data accuracy, avoid using user IDs for custom dimensions and only send them when users are signed in; do not set placeholder values. Before sending user IDs, establish a Google Analytics account and web data stream, and ensure the Editor role is assigned.\n"]]