ConsentPolicy
The ConsentPolicy API is used to perform actions related to the user's allowed cookies and 3rd-party data transfer, such as for GDPR or CCPA purposes. Learn more.
Additional information about this section
Perform actions on an object
- getCurrentConsentPolicy( )
Gets the visitor's consent policy regarding allowed cookies and 3rd-party data transfer, such as for GDPR or CCPA purposes.
- onConsentPolicyChanged( )
Sets the function that runs when a visitor's consent policy was changed using setConsentPolicy() or reset using resetConsentPolicy().
- resetConsentPolicy( )
Removes the current policy from the visitor's browser and resets the visitor's consent policy to the default policy for the site.
- setConsentPolicy( )
Sets the current visitor's consent policy regarding allowed cookies and data transfer to 3rd parties, such as for GDPR or CCPA purposes.