Setup

To use the MarketingConsent API, install the @wix/marketing package using npm or Yarn:

Copy

or

Copy

Then import { marketingConsent } from @wix/marketing:

Copy
Did this help?