Skip to main content

browser-tracker.browsertracker.disableanonymoustracking

Home > @snowplow/browser-tracker > BrowserTracker > disableAnonymousTracking

BrowserTracker.disableAnonymousTracking property

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:
disableAnonymousTracking: (configuration?: DisableAnonymousTrackingConfiguration) => void;