--- 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: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/input-objects/visitorconsent md: https://shopify.dev/docs/api/storefront/unstable/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/unstable/scalars/Boolean) The visitor accepts or rejects the analytics data processing purpose. * marketing [Boolean](https://shopify.dev/docs/api/storefront/unstable/scalars/Boolean) The visitor accepts or rejects the first and third party marketing data processing purposes. * metafields [\[Custom​Consent!\]](https://shopify.dev/docs/api/storefront/unstable/input-objects/CustomConsent) Key/value pairs for the metafields. The input must not contain more than `250` values. * preferences [Boolean](https://shopify.dev/docs/api/storefront/unstable/scalars/Boolean) The visitor accepts or rejects the preferences data processing purpose. * sale​Of​Data [Boolean](https://shopify.dev/docs/api/storefront/unstable/scalars/Boolean) The visitor accepts or rejects the sale or sharing of their data with third parties. *** ## Map No referencing types