Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 670 Bytes

File metadata and controls

25 lines (15 loc) · 670 Bytes

Home > @snowplow/browser-tracker > setUserId

setUserId() function

Set the business-defined user ID for this user.

Signature:

declare function setUserId(userId?: string | null, trackers?: Array<string>): void;

Parameters

Parameter Type Description
userId string | null The business-defined user ID
trackers Array<string> The tracker identifiers which will be configured

Returns:

void