Skip to Content

Shopify Cookie Banner & Consent Management

CookieHub integrates seamlessly with Shopify, enabling full compliance with privacy regulations by managing cookie consent through the Shopify Customer Privacy API. By implementing CookieHub, you can ensure that tracking scripts and cookies are only activated based on user preferences, helping your store meet GDPR, CCPA, and other data protection requirements. This guide will walk you through the installation and configuration process to optimize consent management on your Shopify store.

Install CookieHub

ℹ️

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

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