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
- Install the CookieHub app from the Shopify App Store.
- Open Online Store → Themes → Customize.
- In the Theme Editor, enable the CookieHub app embed.
- 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.
Consent synchronization
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:
- Automatic cookie scanning
- Cookie declaration generation
- Banner layout and position
- Brand colors
- Dark mode
- Page blocking until consent is provided
- Default and automatic language detection
- Google Consent Mode v2
- Automatic Cookie Blocker
- Compliance framework selection
All changes are published immediately.
Compliance Frameworks
Choose the compliance framework that best matches your requirements.
| Framework | Description | Availability |
|---|---|---|
| Strict Compliance | Requires explicit consent from every visitor regardless of location. | All plans |
| Global Smart Compliance | Applies consent rules based on visitor location, such as opt-in in Europe and opt-out where permitted. | Basic and higher |
| IAB TCF v2.3 | Supports 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.
| Plan | Monthly Sessions | Includes |
|---|---|---|
| Free | 1,000 | Cookie scanning, cookie declaration, Shopify Customer Privacy synchronization, Google Consent Mode v2 |
| Starter | 5,000 | Global Privacy Control (GPC), proof of consent, consent reports |
| Basic | 30,000 | Multilingual banner, geolocation-based compliance, automatic language detection |
| Business | 120,000 | Remove 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_requestcustomers/redactshop/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:
- Retrieve your CookieHub implementation code by following steps 1-4 in the Inline HTML tag guide.
- Log into Shopify and navigate to Online Store → Themes.
- Click the three dots next to Customize and select Edit Code.
- Under the Layout section, open the theme.liquid file.
- Paste the CookieHub implementation code just after the opening <head> tag.
- Click Save.
- Ensure Automatic Cookie Blocking is enabled in your CookieHub dashboard to allow CookieHub to send consent events to Shopify’s Customer Privacy API.
Disable Shopify’s built-in cookie banner
To ensure CookieHub correctly manages consent and prevents duplicate banners, you need to disable Shopify’s built-in cookie banner. Follow these steps:
- In Shopify, go to Settings (bottom left corner).
- Click Customer Privacy.
- Open the Cookie banner section.
- Click More actions → Remove cookie banner to disable Shopify’s built-in banner.
- Confirm by clicking Remove.
- Click Edit in the Regions section.
- Select all countries where the CookieHub consent dialog should be displayed. This list should match the regions configured in your CookieHub dashboard.
- Click Save.