New: Google Consent Mode v2 built into every banner, nothing to set up. See how it works →
← All guides

How to install the cookie banner on Google Tag Manager

Step by step, in about 5 minutes.

Your script

You'll find it in the dashboard, under Installation, with your site ID already filled in.

<script id="cookigator" src="https://cdn.cookigator.com/c.js" data-site-id="TU_ID" data-blocking="auto"></script>

Steps

  1. It's best to paste the script straight into your site: that way it blocks everything from the start.
  2. If you can only use GTM: create a “Custom HTML” tag with the script.
  3. Give it the “Consent Initialization - All Pages” trigger.
  4. Cookigator turns on Google Consent Mode v2 and sends the cookigator_consent_update event for your other tags.

After installing