Tags:
- Storefront GraphQL API
- 2025-10
@inContext
directive supports visitor consent for privacy-compliant checkouts
@inContext
directive supports visitor consent for privacy-compliant checkoutsThe directive now includes a
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
, 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
Was this section helpful?