Integrations
Three ways to add the consentdone banner — none of them needs an API key: your configuration is matched server-side automatically via your domain.
1. One-line snippet (any website)
Add this line as high up in your page's <head> as possible —
before any analytics or marketing tags:
<script src="https://cdn.c-done.com/cmp.js"></script> The script sets Google Consent Mode v2 to "denied" immediately, loads your banner config and records consent — that's all you need.
2. WordPress plugin
The plugin injects cmp.js early into the <head> and ships
a [consentdone_revoke] shortcode for a "change cookie settings" link.
- In WordPress go to Plugins → Add New → Upload Plugin, pick the ZIP and install it.
- Activate the plugin — the CMP is live, no further configuration needed.
- Optionally check Settings → consentdone; a self-hosting URL can be set there.
- Optionally place the shortcode
[consentdone_revoke label="Change cookie settings"]in a page or footer.
3. Google Tag Manager template
A GTM custom template that loads cmp.js through Tag Manager — for sites
where you don't want to touch the source code.
- In GTM open Templates → under "Tag Templates" click New → three-dot menu → Import → select the .tpl file → Save.
- Under Tags → New pick the consentdone CMP template; leave the cmp.js URL unchanged.
- Use the Consent Initialization – All Pages trigger — this guarantees the CMP loads before any other tag.
- Test via Preview, then publish.
If "Consent Initialization" is not visible: enable it under
Container Settings → Enable consent overview.
Consent Mode v2 (default "denied", update after consent) is handled by
cmp.js itself — no extra consent tags needed in GTM, just use the
built-in consent checks on your tags.
Questions? meikel@korfmacher.at