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:
- 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.