userId property

String? userId
getter/setter pair

Unique identifier for logged-in user with a length limit of 128 bytes.

Required only for logged-in users. Don't set for anonymous users. 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.

Optional.

Implementation

core.String? userId;