--- 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 metadata: effectiveApiVersion: 2025-10 affectedApi: - displayName: Storefront GraphQL API handle: storefront-graphql primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2025-08-25T14:18:02-04:00' postedAt: '2025-09-02T12:00:00-04:00' updatedAt: '2025-08-26T09:29:17-04:00' effectiveAt: '2025-08-26T12:00:00-04:00' --- 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)