Setup

@wix/consent-policy

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

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

When developing with:

Copy
npm install @wix/consent-policy

or

Copy
yarn add @wix/consent-policy

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

Copy
npm install @wix/consent-policy

or

Copy
yarn add @wix/consent-policy

To import the package in your code:

Copy
import { cookieBannerSettings } from "@wix/consent-policy";
Did this help?