Skip to main content

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.

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

Parameters

ParameterTypeDescription
configurationDisableAnonymousTrackingConfigurationThe configuration for disabling anonymous tracking
trackersArray<string>The tracker identifiers which the event will be sent to
Returns:

void