Skip to Content

Shopify Cookie Banner & Consent Management

CookieHub integrates with Shopify to help your store comply with GDPR, CCPA/CPRA, and other privacy regulations. The official Shopify app automatically installs CookieHub, synchronizes visitor consent with Shopify’s Customer Privacy API, and configures your store’s privacy settings without requiring manual code changes.

If your theme does not support app embeds, you can also install CookieHub manually by adding the implementation code to your storefront.

ℹ️

If you’re using Google Tag Manager, follow these Google Tag Manager instructions instead.

Install the CookieHub App

The recommended way to install CookieHub is through the Shopify App Store .

During installation, CookieHub automatically:

  • Creates your CookieHub account using your Shopify store information.
  • Creates a CookieHub domain for your storefront.
  • Connects your store to CookieHub.
  • Configures Shopify’s Customer Privacy settings.
  • Installs CookieHub as a Theme App Embed.

No separate registration, API keys, or manual code snippets are required.

Installation

  1. Install the CookieHub app  from the Shopify App Store.
  2. Open Online Store → Themes → Customize.
  3. In the Theme Editor, enable the CookieHub app embed.
  4. Click Save.

Your consent banner is now active and visitor consent will automatically be synchronized with Shopify.

Shopify Customer Privacy API

CookieHub integrates directly with Shopify’s Customer Privacy API to ensure a single source of truth for visitor consent.

Whenever a visitor accepts, rejects, or updates their consent preferences, CookieHub automatically calls:

Shopify.customerPrivacy.setTrackingConsent(...)

This ensures that Shopify-managed services, Web Pixels, and compatible third-party apps immediately receive the updated consent status.

Privacy policy synchronization

When the app is installed, CookieHub automatically configures Shopify’s Customer Privacy settings.

The default configuration applies:

  • Opt-in consent for visitors from the EU, EEA, United Kingdom, and Switzerland.
  • Data sale opt-out requirements for supported US privacy law regions, including California, Colorado, Connecticut, Nevada, Utah, Virginia, Florida, Oregon, Montana, and Texas.

No manual configuration in Shopify’s Customer Privacy settings is required.

Configure CookieHub

Open the CookieHub app from Shopify Admin to customize your consent banner.

Available settings include:

All changes are published immediately.

Compliance Frameworks

Choose the compliance framework that best matches your requirements.

FrameworkDescriptionAvailability
Strict ComplianceRequires explicit consent from every visitor regardless of location.All plans
Global Smart ComplianceApplies consent rules based on visitor location, such as opt-in in Europe and opt-out where permitted.Basic and higher
IAB TCF v2.3Supports the IAB Transparency & Consent Framework for advertising and programmatic consent.Business

Data Subject Requests (DSAR)

Business plans and higher include Data Subject Request management.

You can generate an embeddable HTML form directly from the CookieHub app and add it to any Shopify page.

Incoming requests are managed from the CookieHub dashboard, where you can track requests, deadlines, and responses.

Pricing

CookieHub subscriptions are managed through Shopify Billing.

There is no separate CookieHub subscription or payment method.

PlanMonthly SessionsIncludes
Free1,000Cookie scanning, cookie declaration, Shopify Customer Privacy synchronization, Google Consent Mode v2
Starter5,000Global Privacy Control (GPC), proof of consent, consent reports
Basic30,000Multilingual banner, geolocation-based compliance, automatic language detection
Business120,000Remove CookieHub branding, custom CSS, IAB TCF v2.3, Data Subject Requests

Plans can be upgraded or downgraded at any time from the Plans & Billing section of the app.

Privacy and Data Handling

CookieHub stores anonymous consent records associated with a visitor identifier. Consent records are never linked to Shopify customer accounts, email addresses, or order information.

The app implements Shopify’s required GDPR privacy webhooks:

  • customers/data_request
  • customers/redact
  • shop/redact

Because CookieHub does not store customer-identifiable information, customer data requests return that no personal customer data is held. When a store is removed or the app is uninstalled, the associated CookieHub domain and all consent records are permanently deleted.

Manual Installation

If your Shopify theme does not support Theme App Embeds, CookieHub can also be installed manually by adding the CookieHub implementation script to your storefront theme.

See Install CookieHub below for manual installation instructions.

Install CookieHub

Follow these steps to install CookieHub on your Shopify store:

  1. Retrieve your CookieHub implementation code by following steps 1-4 in the Inline HTML tag guide.
  2. Log into Shopify and navigate to Online Store → Themes. Edit theme in Shopify  
  3. Click the three dots next to Customize and select Edit Code. Edit theme code in Shopify  
  4. Under the Layout section, open the theme.liquid file. Opening the theme.liquid file in Shopify  
  5. Paste the CookieHub implementation code just after the opening <head> tag. theme.liquid source in Shopify  
  6. Click Save.
  7. Ensure Automatic Cookie Blocking is enabled in your CookieHub dashboard to allow CookieHub to send consent events to Shopify’s Customer Privacy API.

To ensure CookieHub correctly manages consent and prevents duplicate banners, you need to disable Shopify’s built-in cookie banner. Follow these steps:

  1. In Shopify, go to Settings (bottom left corner). Shopify Settings  
  2. Click Customer Privacy. Shopify Customer Privacy  
  3. Open the Cookie banner section. Shopify Cookie banner  
  4. Click More actions → Remove cookie banner to disable Shopify’s built-in banner. Shopify Disable cookie banner  
  5. Confirm by clicking Remove. Shopify Disable cookie banner - confirmation  
  6. Click Edit in the Regions section. Shopify Edit regions  
  7. Select all countries where the CookieHub consent dialog should be displayed. This list should match the regions configured in your CookieHub dashboard. Shopify Select countries to show cookie banner  
  8. Click Save.
Last updated on