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
The endpoints exposed by this API
Gets the visitor's consent policy regarding allowed cookies and 3rd-party data transfer, such as for GDPR or CCPA purposes.
Sets the function that runs when a visitor's consent policy was changed using setConsentPolicy() or reset using resetConsentPolicy().
Removes the current policy from the visitor's browser and resets the visitor's consent policy to the default policy for the site.
Sets the current visitor's consent policy regarding allowed cookies and data transfer to 3rd parties, such as for GDPR or CCPA purposes.