Note: The APIs in @wix/site-window.ConsentPolicy can only be used in frontend code.
This API allows you to manage site visitors' consent policies. Consent policies help site and app developers comply with GDPR and CCPA regulations, and allows site visitors to control their information.
A visitor consent policy is a custom consent policy defined by a visitor, such as through a cookie consent banner. It overrides the default consent policy of a site, which is assigned to all visitors on arrival.
For more information about how to manage consent policies in an app, see About Consent Apps.
Site owners can set up cookie consent banners in their site's Privacy Center, to help visitors manage their level of consent.