api-docs/docs/browser-tracker/markdown/browser-tracker.setcookiepath.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [setCookiePath](./browser-tracker.setcookiepath.md)
## setCookiePath() function
Set first-party cookie path
<b>Signature:</b>
```typescript
declare function setCookiePath(path: string, trackers?: Array<string>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| path | string | The path which will be used when setting cookies |
| trackers | Array<string> | The tracker identifiers which will be configured |
<b>Returns:</b>
void