To use the MarketingConsent API, install the @wix/marketing package using npm or Yarn:
@wix/marketing
1
or
Then import { marketingConsent } from @wix/marketing:
{ marketingConsent }