Sets the current site visitor's consent policy regarding allowed cookies and data transfer to 3rd parties, such as for GDPR or CCPA purposes.
Changes to the consent policy take affect after the page is refreshed.
An object representing the cookies of the site visitor's consent policy.
successCallback(policyDetails: PolicyDetails): void Optional callback function called on success with PolicyDetails
errorCallback(errorData: string): void Optional callback function called on error with error message
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.