Gleap.initialize, and apply to the next ticket.
Available from SDK v18.1.0.
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 for all keys.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.Disable environment data
Stop collecting environment data altogether. The SDK then gathers no environment data, and tickets arrive with an empty Env data tab. Passfalse to turn it back on.
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.