Introduction

Note: The APIs in @wix/site-window.ConsentPolicy can only be used in frontend code.

The consent policy helps you comply with GDPR and CCPA regulations, and allows site visitors to control their information.

Set up the site consent policy and cookie consent banners in a site's Privacy Center.

To use the ConsentPolicy API, import { consentPolicy } from the @wix/site-window module:

Copy
import { consentPolicy } from "@wix/site-window";
Did this help?