--- title: "Enable IP collection" slug: "webview-enable-ip-collection" description: "Set user consent for IP address collection in the WebView SDK using enableIpCollection. Required before location-based features work." updated: 2026-02-11T11:17:59Z published: 2026-02-11T11:17:59Z canonical: "academy.insiderone.com/webview-enable-ip-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 IP collection This method allows you to set the user's consent status for collecting IP 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 enableIpCollection(consented: boolean) : Promise ``` **Method example** ```typescript await window.insider.enableIpCollection(true); ```