Consent
Consent is essential to us because we respect users' privacy and strive to protect it. This commitment is one of the primary reasons we developed this product. All events sent from our system are protected by consent, meaning we do not share any data without proper consent.
The consent function should be called every time the user changes the consent.
You need to provide consent for each provider or consent category. At least one needs to be provided!
Parameters
consent
Record<string, boolean> | null
Yes / No
Tells which provider was consented to and which not.
categories
Record<string, boolean>
Yes / No
No Tells which categories are consented to and which are not. See categories below
options
{ destination?: string }
No
See below
Categories
necessary
advertising
analtyics
share_pii
functional
Options
Destination: We recommend specifying the destination, especially if multiple EdgeTag instances exist on the website. If you do not, we will trigger the same event to multiple destinations. The destination value should be the EdgeTag URL.
Examples
Last updated
Was this helpful?

