Set GDPR consent

Prev Next

This method allows you to set your users' consent to collect data. You can call this method after the SDK initialization at every step where you request your users' consent.

Parameter

Type

Description

Required

consented

Boolean

true = granted
false = revoked

Yes

setGDPRConsent(consented: boolean) : Promise<void>
await window.insider.setGDPRConsent(true);