Skip to content
Theme code install

Add COKIQ to a Shopify store

Add the COKIQ consent banner to a Shopify store by pasting the universal script into the head of your theme.liquid file. COKIQ is not a Shopify App Store app; the theme code path works on any Shopify plan.

Install in 3 steps

  1. In Shopify admin open Online Store > Themes, click the three dots next to your live theme and choose Edit code.
  2. Open layout/theme.liquid and paste the COKIQ universal script directly after the opening <head> tag, with your site key.
  3. Save, then open the store in a private window to check the banner on home, product and cart pages.

Universal script

Works on any site that allows custom code in the head. Replace YOUR_SITE_KEY with the key from your COKIQ dashboard. Use one install path per site.

<script src="https://cokiq.com/api/s/YOUR_SITE_KEY" data-key="YOUR_SITE_KEY" async></script>

Check that it works

  • The storefront loads https://cokiq.com/api/s/{siteKey} once per page.
  • The banner does not cover the cart drawer or checkout buttons.
  • Consent choices appear in the COKIQ dashboard.

Questions

Is there a COKIQ app in the Shopify App Store?

No. COKIQ is installed with theme code on Shopify, which works on every plan.

Will it slow my store down?

The script is small and loads from cokiq.com. Keep only one consent banner on the store.