Setup

@wix/site-window

To use the Consent Policy API, install the @wix/site-window package.

Follow the installation instructions for your development environment.

Development environmentInstallation method
Wix sites (editor or IDE)Use the package manager.
Wix sites (local IDE)Run wix install @wix/site-window using the Wix CLI.
Blocks appsUse the same installation method as Wix sites.
CLI and self-hosted appsRun npm install @wix/site-window or yarn add @wix/site-window.

To import the package in your code:

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