browser-tracker.disableanonymoustracking
Home > @snowplow/browser-tracker > disableAnonymousTracking
disableAnonymousTracking() function
Disables anonymous tracking if active (ie. tracker initialized with anonymousTracking
) For stateStorageStrategy override, uses supplied value first, falls back to one defined in initial config, otherwise uses cookieAndLocalStorage.
declare function disableAnonymousTracking(configuration?: DisableAnonymousTrackingConfiguration, trackers?: Array<string>): void;
Parameters
Parameter | Type | Description |
---|---|---|
configuration | DisableAnonymousTrackingConfiguration | The configuration for disabling anonymous tracking |
trackers | Array<string> | The tracker identifiers which the event will be sent to |
void