--- title: "Enable location collection" slug: "webview-enable-location-collection" description: "Insider's enableLocationCollection method to set a user's consent for collecting location (latitude/longitude) data, with a boolean consented parameter." updated: 2026-02-11T11:18:03Z published: 2026-02-11T11:18:03Z canonical: "academy.insiderone.com/webview-enable-location-collection" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Enable location collection This method allows you to set the user's consent status for collecting location (latitude/longitude) information. You can call this method after the SDK initialization at every step where you request your users' consent. | Parameter | Type | Description | Required | | --- | --- | --- | --- | | consented | Boolean | *true* = granted *false* = revoked | Yes | **Method signature** ```typescript enableLocationCollection(consented: boolean) : Promise ``` **Method example** ```typescript await window.insider.enableLocationCollection(true); ```