Setup

@wix/consent-policy

To use the Cmp API, install the @wix/consent-policy 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/consent-policy using the Wix CLI.
Blocks appsUse the same installation method as Wix sites.
CLI and self-hosted appsRun npm install @wix/consent-policy or yarn add @wix/consent-policy.
Headless sites and appsRun npm install @wix/consent-policy or yarn add @wix/consent-policy.

To import the package in your code:

Copy
Did this help?