Skip to main content

browser-tracker.clearuserdata

Home > @snowplow/browser-tracker > clearUserData

clearUserData() function

Clears all cookies and local storage containing user and session identifiers

Signature:
declare function clearUserData(configuration?: ClearUserDataConfiguration, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
configurationClearUserDataConfiguration
trackersArray<string>The tracker identifiers which the event will be sent to
Returns:

void