Skip to main content

browser-tracker.setcookiepath

Home > @snowplow/browser-tracker > setCookiePath

setCookiePath() function

Set first-party cookie path

Signature:
declare function setCookiePath(path: string, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
pathstringThe path which will be used when setting cookies
trackersArray<string>The tracker identifiers which will be configured
Returns:

void