đManaging visitor consent
đ Definition
Depending on the different privacy rules of each country (ie: GDPR and CNIL), you may have a legal obligation to ask your visitors for their explicit consent before tracking them and collecting their personal information.
A variable displayed in your SDK enables you to manage data collection, depending on whether a visitor accepts to be tracked or not.
Accepting to be tracked (data collection consent) generally means accepting a websiteâs cookies (often in the form of a banner).
âď¸ Configuration
Data collection can be managed via a parameter, directly in the SDK code of your Flagship implementation.
â Good to know
The visitor consent parameter is available for the following SDKs:
Android
iOS
Java
Flutter
Variable set to true
By default, the .withVisitorConsent variable is set to true, meaning that you will be able to collect visitor data. Donât forget to change that default behavior if the visitor does not consent to data collection. Here is an example with the Android SDK:

Variable set to false
You can change this parameter to false to block the data collection when a visitor has not given their consent. In this case, a hit will be triggered to specify that this visitor didnât consent to data collection.
Flagship will still be able to send data but wonât receive any from the visitor.
When setting the variable to false, you wonât be able to know if the visitor has been assigned to a flag and you wonât see the results of their actions on the website or application (if any).This parameter only impacts data collection, but has no effect on use cases display. Even if your variable is set to false, your visitors will still see the use cases theyâre affected to.
To know the implementation methods according to your stack, please refer to our technical documentation.
â Good to know
This option isnât retroactive. If you have collected data before the variable was set to false, it wonât be deleted. However, new data wonât be collected.
Need additional information?
Submit your request at [email protected]
Always happy to help!
Last updated
Was this helpful?