Documentation Index
Fetch the complete documentation index at: https://docs.cookiechimp.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Copy your CookieChimp snippet
Log in to your CookieChimp dashboard and copy your website's JS snippet:Replace
abc123 with your website's unique CookieChimp ID.Add the snippet to your Shopify theme
- In your Shopify admin, go to Online Store → Themes.
- Click the three-dot menu (⋯) on your current theme and select Edit code.
- In the Layout folder, open
theme.liquid. - Find the opening
<head>tag and paste the CookieChimp snippet directly after it, before any other scripts. - Click Save.
The CookieChimp script needs to be the first script in the
<head> section so it can block other scripts before they run and set cookies without consent. If other scripts are added before, they may set cookies and other storage items before consent is granted.Disable Shopify's built-in cookie banner
Shopify’s Customer Privacy banner will conflict with CookieChimp. Turn it off:
- Go to Settings → Customer privacy → Cookie banner.
- Disable the cookie banner (or set it to inactive on the regions where you’ll use CookieChimp).
Block scripts & cookies
To stay compliant with GDPR and other privacy regulations, you need to actively block non-essential scripts and cookies until the user gives consent. See our Scripts Management Section for full details.
Configure checkout scripts (Shopify Plus)
Shopify’s checkout pages live on a separate domain and template. If you’re on Shopify Plus and have edited
checkout.liquid, repeat step 2 there as well so CookieChimp runs on the checkout flow.On non-Plus plans, Shopify renders checkout from a managed template you can’t edit. Consent is enforced through the Customer Privacy API, which CookieChimp talks to automatically when installed on your storefront.
Allow users to update their preferences
CookieChimp provides a floating privacy icon (Privacy Trigger) that lets users manage cookie preferences at any time. Enable it in the banner settings.To open the preferences modal from a custom button or link, add the data attribute A common pattern is to link to it from your footer menu — Shopify lets you add custom links to menus from Online Store → Navigation.
data-cc="show-preferencesModal":Troubleshooting
- Make sure the domain is allowed in the Settings page on the CookieChimp dashboard. Both your
*.myshopify.comdomain and your custom domain should be listed if you want to test on either. - If both Shopify’s banner and CookieChimp appear, the Shopify Customer Privacy banner isn’t fully disabled — re-check Settings → Customer privacy → Cookie banner.
- Clear your browser cache and cookies, then reload your store.
- Enable Debug mode from the CookieChimp dashboard and check the browser JS console for errors.
If you encounter any issues or need further assistance, please reach out to us via our chat.