Main content area

Integrating Cookie Control with the Shopify CMS Platform

Shopify Banner

Civic Cookie Control is a flexible cookie consent tool that can easily replace Shopify’s native banner for more customization and compliance options. While Shopify includes a built-in cookie solution, Civic allows for greater control over user consent and cookie categories.

How to add Cookie Control with Shopify CMS platform

Step 1: Disable Shopify’s native cookie banner

  • Go to Settings > Customer Privacy in your Shopify dashboard.

Shopify steps 1
  • Remove cookie banner
Shopify steps 2
  • Save your changes.

Step 2: Add the Cookie Control script

  • Go to Online StoreThemes.
Shopify steps 3
  • Click the three-dot menu next to Customize and choose Edit Code.

Shopify steps 4
  • Open the theme.liquid file.
Shopify steps 5
  • Locate the closing </body> tag.
  • Just before the tag, paste the following code:

<!-- Latest Stable Version of Cookie Control core script -->
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js" type="text/javascript"></script>

<!-- Cookie Control configuration -->
<script>
 var config = {
   apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   product: 'XXX'
 };
 CookieControl.load(config);
</script>

Shopify steps 6
  • Replace 'xxxxxxxx...' and 'XXX' with your license’s API key and product type.

Step 3: Save and verify

  • Save the file.

  • Use the View your store button to preview the changes and confirm the banner is displaying correctly.

 

Need Help?

For full documentation on all configuration options, visit our official documentation: Cookie Control Available Options 

 

If you encounter any issues or need support, please contact us via our help page: Cookie Control Support