Skip to main content

browser-tracker.setuseridfromreferrer

Home > @snowplow/browser-tracker > setUserIdFromReferrer

setUserIdFromReferrer() function

Set the business-defined user ID for this user using the referrer querystring.

Signature:
declare function setUserIdFromReferrer(querystringField: string, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
querystringFieldstringName of a querystring name-value pair
trackersArray<string>The tracker identifiers which will be configured
Returns:

void