Skip to main content

@inContext directive supports visitor consent for privacy-compliant checkouts

The @inContext directive now includes a visitorConsent parameter, allowing developers to pass buyer consent preferences—such as analytics, preferences, marketing, and sale of data—to cart operations. This consent information is automatically encoded into the resulting checkoutUrl, ensuring privacy compliance throughout the checkout process.

This enhancement allows developers using Checkout Kit and other integrations to seamlessly collect and transmit buyer consent, thereby supporting privacy regulations and maintaining a smooth checkout experience.

Key features:

  • Optional consent fields for analytics, preferences, marketing, and sale of data
  • Automatic encoding of consent into checkout URL via the _cs parameter
  • Compatibility with existing cart mutations and queries

Learn more about the @inContext directive and visitor consent →

Was this section helpful?