Setup

@wix/consent-policy

To use the Cmp API, install the @wix/consent-policy package.

To install the package, follow the instructions below based on your development environment.

When developing with:

Copy

or

Copy

When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:

Copy

or

Copy

To import the package in your code:

Copy
Did this help?