api-docs/docs/browser-tracker/markdown/browser-tracker.setoptoutcookie.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [setOptOutCookie](./browser-tracker.setoptoutcookie.md)
## setOptOutCookie() function
Sets the opt out cookie.
<b>Signature:</b>
```typescript
declare function setOptOutCookie(name?: string | null, trackers?: Array<string>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| name | string \| null | of the opt out cookie |
| trackers | Array<string> | The tracker identifiers which will be configured |
<b>Returns:</b>
void