Home > @snowplow/browser-tracker > disableAnonymousTracking
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.
Signature:
declare function disableAnonymousTracking(configuration?: DisableAnonymousTrackingConfiguration, trackers?: Array<string>): void;| Parameter | Type | Description |
|---|---|---|
| configuration | DisableAnonymousTrackingConfiguration | The configuration for disabling anonymous tracking |
| trackers | Array<string> | The tracker identifiers which the event will be sent to |
Returns:
void