Skip to main content

useCustomerPrivacy

A hook that loads the Customer Privacy API. When using Hydrogen's request handler, the Storefront API proxy is automatically detected and used for consent requests.

You can also listen to a document event for shopifyCustomerPrivacyApiLoaded. It will be emitted when the Customer Privacy API is loaded.

Anchor to props
props
required

Was this page helpful?