Copy your CookieChimp snippet
Log in to your CookieChimp dashboard and copy your website’s JS snippet. It looks like this: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.Block scripts & cookies
To ensure compliance with privacy regulations, you need to block non-essential scripts and cookies until the user gives consent.
Refer to our Scripts Management Section for detailed instructions.
Allow users to update their preferences
CookieChimp provides a floating privacy icon (Privacy Trigger) that allows users to manage their cookie preferences at any time.
You can enable this in the banner settings.Optionally, you can open the preferences modal with a custom link or button by adding a button with the data attribute
data-cc="show-preferencesModal":Troubleshooting
- Make sure the domain is allowed in the Settings page on the CookieChimp dashboard.
- 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.