> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/feature-experimentation-and-rollout/sdk-and-environments/managing-visitor-consent.md).

# Managing Visitor Consent

Depending on the privacy regulations applicable in each country (such as GDPR or CNIL), you may have a legal obligation to ask visitors for explicit consent before tracking them or collecting personal data.

Feature Experimentation and Rollout (FE\&R) allows you to control data collection through a variable exposed in the SDK. This variable determines whether visitor data can be collected depending on the consent status.

Accepting tracking (data collection consent) typically means that a visitor has accepted the website’s cookies, usually via a cookie banner or consent management platform.

### Configuration

Visitor data collection can be managed through a parameter set directly in the SDK code of your Feature Experimentation and Rollout implementation.

{% hint style="success" %}
The visitor consent parameter is currently available in the following SDKs:

* Android
* iOS
* Java
* Flutter&#x20;
  {% endhint %}

#### Variable set to `true`

By default, the `.withVisitorConsent` variable is set to **`true`**, meaning that visitor data can be collected.

If a visitor does not consent to data collection, you should update this parameter accordingly in your implementation.

Example using the Android SDK:

![](https://195542843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPLcJUpntQruhbI1jQ2kr%2Fuploads%2Fgit-blob-eed727e99ac094662c89b2a6d43457ba4782faef%2F431d5aa2927d7920d6b04cc774e5ddd4.png?alt=media)

#### Variable set to `false`

You can set this parameter to **`false`** to block data collection when a visitor has not given their consent.

When the variable is set to `false`:

* A hit is sent to indicate that the visitor did not consent to data collection
* FE\&R will still send technical data but will not collect visitor data

In this case:

* You cannot determine whether the visitor has been assigned to a flag
* You will not see the results of the visitor’s actions on the website or application

However, this parameter only impacts data collection. It does not affect campaign delivery. Visitors will still experience the campaigns they are eligible for, even if consent is set to `false`.

{% hint style="warning" %}
This setting **is not retroactive**. Data collected before the variable was set to `false` will not be deleted, but **no new visitor data will be collected afterwards**.
{% endhint %}

To learn more about implementation details for your specific stack, refer to the [**technical documentation**](https://docs.abtasty.com/server-side/sdks/key-features/managing-visitor-consent)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.abtasty.com/feature-experimentation-and-rollout/sdk-and-environments/managing-visitor-consent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
