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.
How do I install the CookieChimp script?
You can install CookieChimp two ways. Direct HTML is the recommended approach — it guarantees CookieChimp loads before Google Tag Manager and any other scripts, so it can set consent defaults before any tag fires.- Direct HTML (Recommended)
- Via Google Tag Manager
Add your website’s CookieChimp JS snippet at the top of the Replace
<head> tag in your HTML, before the Google Tag Manager script and any other scripts.abc123 with your website’s unique CookieChimp ID.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.How do I block tags with Google Tag Manager?
Enable Google Consent Mode
Navigate to “Integrations” from the sidebar and enable the Google Consent Mode integration.

Add/Edit Tag
Create or update a tag and add an additional consent check so the tag only fires once the matching vendor has consent.Navigate to “Advanced Settings” > “Consent Settings”. Select “Require additional consent for tag to fire” and enter the name of the category or service that the tag needs to fire on.

- Recommended
- Alternative
Enter the exact vendor name as it appears in your CookieChimp Vendor Library, e.g
Google Analytics, Hotjar, or Facebook Pixel. CookieChimp sends the consent state of each vendor to Google, so the tag will only fire when that specific vendor has been granted consent in the banner.This is the recommended approach because your visitors can opt in or out of individual vendors inside a category, and a tag should usually only fire when its own vendor is allowed, not just when the broader category has consent.How does CookieChimp map to Google consent types?
GTM supports 7 different default consent types. CookieChimp maps these Google consent types into the following categories:| CookieChimp Category ID | Google Consent Type |
|---|---|
| essential | functionality_storage, security_storage |
| marketing | ad_storage, ad_user_data, ad_personalization |
| analytics | analytics_storage |
| personalization | personalization_storage |


