--- title: VisitorConsent - Storefront API description: >- The visitor's consent to data processing purposes for the shop. true means accepting the purposes, false means declining them, and null means that the visitor didn't express a preference. api_version: 2025-10 api_name: storefront type: input-object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/latest/input-objects/VisitorConsent' md: >- https://shopify.dev/docs/api/storefront/latest/input-objects/VisitorConsent.md --- # Visitor​Consent input\_object The visitor's consent to data processing purposes for the shop. true means accepting the purposes, false means declining them, and null means that the visitor didn't express a preference. ## Fields * analytics [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean) The visitor accepts or rejects the analytics data processing purpose. * marketing [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean) The visitor accepts or rejects the first and third party marketing data processing purposes. * preferences [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean) The visitor accepts or rejects the preferences data processing purpose. * sale​Of​Data [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean) The visitor accepts or rejects the sale or sharing of their data with third parties. *** ## Map No referencing types