snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.browsertracker.disableanonymoustracking.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [BrowserTracker](./browser-tracker.browsertracker.md) &gt; [disableAnonymousTracking](./browser-tracker.browsertracker.disableanonymoustracking.md)

## 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.

<b>Signature:</b>

```typescript
disableAnonymousTracking: (configuration?: DisableAnonymousTrackingConfiguration) => void;
```