@inContext Directive Enhances Privacy-Compliant Checkouts

@inContext Directive Enhances Privacy-Compliant Checkouts

Shopify Updates: 

Introducing the VisitorConsent Parameter

The @inContext directive now includes a visitorConsent parameter, empowering developers to pass buyer consent preferences seamlessly. These preferences may include analytics, marketing, sale of data, and general user preferences, ensuring a privacy-first approach.

How It Works

Consent data is automatically encoded into the checkout URL using the _cs parameter. This simplifies compliance with privacy regulations while supporting a smooth and efficient checkout experience.

Key Features

  • Support for optional consent fields such as analytics, marketing, sale of data, and user preferences.
  • Automatic encoding of buyer consent preferences into checkout URL via the _cs parameter.
  • Fully compatible with existing cart mutations and queries in Checkout Kit and other integrations.

Why This Matters

By automating the collection and transmission of buyer consent, developers can ensure compliance with global privacy regulations without compromising the user experience. This enhancement allows businesses to maintain transparency and foster customer trust.

Learn More

Explore the capabilities of the @inContext directive and how visitorConsent can benefit your Shopify store by visiting the official documentation.

Back to blog