> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript SDK: Environment data

> Filter or disable the environment data attached to tickets with the Gleap JavaScript SDK. Follow the integration code examples.

Gleap automatically attaches environment data, such as the browser, the screen size and the current page URL, to every ticket and conversation. Your team sees it in the **Env data** tab of a ticket in the dashboard.

You can leave out individual fields or turn off environment data entirely. Both settings can be changed at any time, before or after `Gleap.initialize`, and apply to the next ticket.

<Info>
  Available from SDK v18.1.0.
</Info>

## Ignore individual fields

Pass the keys of the fields you want to leave out. They are removed before a ticket or conversation leaves the browser. Keys must match exactly and are case-sensitive. See [Collected fields](#collected-fields) for all keys.

```javascript theme={null}
Gleap.setEnvDataPropsToIgnore(["currentUrl", "userAgent"]);
```

Each call replaces the previous list. Pass an empty array to send all fields again.

<Note>
  `currentUrl` is the page URL shown in the ticket sidebar, and `innerWidth` / `innerHeight` size the replay player when a replay has no dimensions of its own. Ignoring these keys, or disabling environment data, removes that context.
</Note>

## Disable environment data

Stop collecting environment data altogether. The SDK then gathers no environment data, and tickets arrive with an empty **Env data** tab. Pass `false` to turn it back on.

```javascript theme={null}
Gleap.setDisableEnvData(true);
```

## Collected fields

The JavaScript SDK collects the following fields:

`browserName`, `userAgent`, `browser`, `systemName`, `buildVersionNumber`, `releaseVersionNumber`, `sessionDuration`, `devicePixelRatio`, `screenWidth`, `screenHeight`, `innerWidth`, `innerHeight`, `currentUrl`, `language`, `mobile`, `sdkVersion`, `sdkType`, `environment`

The `environment` field holds the value set with [`setEnvironment`](/documentation/javascript/environment).

## Exclude environment data per form

The **Exclude data** → **Env data** switch of a form in the [Gleap dashboard](https://app.gleap.ai) keeps working in addition to these methods. It removes the environment data from every ticket submitted through that form.
