--- title: "@inContext directive supports visitor consent for privacy-compliant checkouts - Shopify developer changelog" description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/incontext-directive-supports-visitor-consent-for-privacy-compliant-checkouts md: https://shopify.dev/changelog/incontext-directive-supports-visitor-consent-for-privacy-compliant-checkouts.md --- [Back to Developer changelog](https://shopify.dev/changelog) September 2, 2025 Tags: * Storefront GraphQL API * 2025-10 # `@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`](https://shopify.dev/docs/api/storefront/latest/objects/Cart#field-Cart.fields.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 →](https://shopify.dev/docs/api/storefront#directives)