FreeWeb GTM tags

Shopify Customer Privacy API tag

The Shopify Customer Privacy API tag by Stape is a free web GTM tag designed to pass consent preferences from your consent banner or GTM setup to Shopify’s Customer Privacy API. It comes in handy when your consent management platform does not natively integrate with Shopify, or doesn’t support the options you need. Instead, the tag sends consent preferences directly from your Google Tag Manager web container to Shopify's Customer Privacy API, helping ensure customer choices are consistently respected.

The tag supports both Google Consent Mode and manually configured consent states for analytics, marketing, and personalization. It also supports custom metafields and headless Shopify storefronts, making it a flexible solution for both standard and custom Shopify implementations.

Benefits of the Shopify Customer Privacy API tag

  • Reliable consent synchronization: automatically keeps Shopify's consent preferences aligned with your GTM consent settings.
  • Flexible consent configuration: use Google Consent Mode mappings or manually define consent states for analytics, marketing, and preferences.
  • Support for headless Shopify stores: configure consent for custom storefronts using checkout and storefront domains together with the Storefront API access token.
  • Custom metafield support: send additional consent-related data to Shopify through metafields available in Checkout UI extensions.

Related to this solution

Consent mode in server Google Tag Manager
Oct 3, 2025

Blog

Consent mode in server Google Tag Manager

In this guide, learn what consent mode is, why it’s crucial to implement it, and how to use consent mode in the server Google Tag Manager container.

We have more than 200 000 happy clients

Try Stape for all things server-side