Consent
Detailed Edgee Consent Mapping guide
Edgee provides a flexible consent management system that allows you to control data collection and anonymization based on user consent status.
Declare the consent status with the JavaScript SDK
You can set the user’s consent status using the edgee.consent()
method:
Declare the consent status with the Data Layer
Alternatively, you can set the initial consent status using the Edgee data layer:
Consent States
There are three possible consent states:
pending
: Initial state when user hasn’t made a choice yetdenied
: User has explicitly denied consentgranted
: User has explicitly granted consent
Default Consent
If no consent is explicitly set:
- The default consent state is
pending
- Or, you can configure the default consent state for each component in the Edgee Console
Go to your project > Data Collection > Your component, then configure the default consent status.
Data Anonymization
The consent status affects how Edgee handles user data:
-
When consent is
granted
:- Data anonymization is disabled
- Full user data is collected and forwarded to components
-
When consent is
pending
ordenied
:- Data anonymization is enabled by default
- Sensitive user data is anonymized before being forwarded (see Privacy Documentation)
- But you can override this behavior by clicking on
Anonymization
button in the component configuration.
What do components with consent status do?
Each component can have different behavior based on the consent status. Some components will simply do nothing with it,
and some will adapt their rules.
For example, the Piano Analytics component will activate an “exempt” mode when consent is denied or pending.
Google Analytics will change some of its query parameters (for example, npa
to 1
and gcs
to G101
) when consent is denied or pending.
To know more about how each component works with consent status, please refer to each component’s documentation.
Best Practices
- Always set explicit consent based on user choice
- Configure appropriate default consent for each component
- Only disable anonymization when absolutely necessary
- Review privacy implications when changing consent settings
- Document consent collection in your privacy policy
Was this page helpful?