snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.clearuserdata.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; [clearUserData](./browser-tracker.clearuserdata.md)

## clearUserData() function

Clears all cookies and local storage containing user and session identifiers

<b>Signature:</b>

```typescript
declare function clearUserData(configuration?: ClearUserDataConfiguration, trackers?: Array<string>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  configuration | ClearUserDataConfiguration |  |
|  trackers | Array&lt;string&gt; | The tracker identifiers which the event will be sent to |

<b>Returns:</b>

void