Template import or Custom HTML
Install COKIQ with Google Tag Manager
Add COKIQ to a Google Tag Manager container by importing the COKIQ tag template file into Templates, or with a Custom HTML tag that fires on all pages.
The Community Template Gallery listing is in review by Google. Import the template file from the public repository today.
Install in 3 steps
- Download template.tpl from the COKIQ GTM template repository, then in GTM go to Templates > Tag Templates > New > menu > Import.
- Create a tag from the COKIQ template (or a Custom HTML tag with the universal script), paste your site key and set the trigger to Consent Initialization - All Pages.
- Check it in GTM Preview, then Submit and Publish the container.
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"></script>
Check that it works
- GTM Preview shows the COKIQ tag firing once per page, before other tags.
- The browser loads https://cokiq.com/api/s/{siteKey}.
- An accept or reject click appears in the COKIQ dashboard.
Questions
Is COKIQ in the GTM Community Template Gallery?
Not yet. The listing is in review by Google; until it is approved, import the template file from the repository or use a Custom HTML tag.
Which trigger should I use?
Consent Initialization - All Pages, so the consent defaults are set before other tags fire.