---
title: Privacy - WebView
description: Learn how Contentsquare deals with Personal Data and related APIs
lastUpdated: 16 March 2026
source_url:
  html: https://docs.contentsquare.com/en/webview-tracking-tag/privacy/
  md: https://docs.contentsquare.com/en/webview-tracking-tag/privacy/index.md
---

Manage user consent for WebView tracking using opt-in and opt-out APIs to respect user privacy preferences.

## Handling User Consent

Collecting user consent

By default, user consent should be handled through the SDK.\
If your application context requires to collect user consent from the WebView, follow the instructions below.

Our mobile SDK considers every new user to be opted-out by default.

You are responsible for creating the UI asking users for their consent and allowing them to manage their privacy settings and then calling the appropriate Contentsquare following methods (`optin` or `opt-out`).

If you think securing user consent is not required for your app, discuss it during the implementation process with your main Contentsquare contact.

## Opt-in

Note

This command is available starting with iOS SDK `4.13.0`, Android SDK `4.10.0`, Flutter plugin `2.3.0`, React Native Bridge `3.0.0`.

Use the Opt-in API to get user consent. Calling this API generates a user ID and initiates tracking.

```javascript
window._uxa = window._uxa || [];
window._uxa.push(["optin"]);
```

## Opt-Out

Note

This command is available starting with iOS SDK `4.13.0`, Android SDK `4.10.0`, Flutter plugin `2.3.0`, React Native Bridge `3.0.0`.

When this API is called, tracking stops immediately, all settings are reset (Session number, Page number...) and all files and directories regarding Contentsquare are deleted. This means that the user ID is deleted. The SDK will never track or collect any data from the user's phone unless the Opt-in API is called again.

```javascript
window._uxa = window._uxa || [];
window._uxa.push(["optout"]);
```
