browser-tracker.setuseridfromcookie
Home > @snowplow/browser-tracker > setUserIdFromCookie
setUserIdFromCookie() function
Set the business-defined user ID for this user to the value of a cookie.
Signature:declare function setUserIdFromCookie(cookieName: string, trackers?: Array<string>): void;
Parameters
Parameter | Type | Description |
---|---|---|
cookieName | string | Name of the cookie whose value will be assigned to businessUserId |
trackers | Array<string> | The tracker identifiers which will be configured |
void