Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users.
Always use a hashed value for this ID.
Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality.
The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
userAgent
string
User agent as included in the HTTP header.
The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-07 UTC."],[[["The provided JSON representation details the structure for user information, including `userId` and `userAgent`."],["`userId` is a unique identifier for logged-in users, recommended to be a hashed string value and not be the same for different users to avoid mixing event history."],["`userAgent` is the user agent string from the HTTP header, with specific limitations on when it should not be set, such as when using client-side event reporting or when `UserEvent.direct_user_request` is set."],["Both the `userId` and the `userAgent` fields must be UTF-8 encoded strings, and they each have specific length limits, 128 and 1000 characters, respectively."]]],[]]