CookieBot, Google Tag Manager and N.Rich Tag

Last updated: July 6, 2026

This guide walks you through creating a consent trigger in GTM using CookieBot. Once the trigger is in place, the N.Rich Standard tag will know exactly when a visitor has granted marketing consent — and activate accordingly.

Prerequisites: You have Google Tag Manager installed on your website and you use CookieBot as your Consent Management Platform. If you're not sure which CMP you use, see Pre-check: do you use cookies — and which CMP?

CookieBot has a detailed guide of their own on setting this up — Conditionally loading tags in Google Tag Manager. The steps below follow the same approach in a more beginner-friendly format.


Step 1: Add the CookieBot template to GTM

  1. In GTM, select Templates from the left-hand menu.

  2. Under Variable Templates, click Search Gallery.

  3. Search for Cookiebot Consent State, select it, and click Add to WorkspaceAdd.


Step 2: Create a variable

  1. From the left-hand menu, go to Variables and click New under User-Defined Variables.

  2. Give it a name — for example, Cookie Consent.

  3. Click the brick icon to choose a variable type and select Cookiebot Consent State.

  4. Click Save.


Step 3: Create a consent trigger

  1. From the left-hand menu, go to Triggers and click New.

  2. Give it a name — for example, Marketing Consent Granted.

  3. Click the trigger type icon and choose Custom Event.

  4. Set This trigger fires on to Some Custom Events.

  5. In the condition row, select the Cookie Consent variable, set the middle dropdown to contains, and enter marketing in the text field.

  6. Click Save.

GTM is now configured to detect when CookieBot passes a marketing consent signal. The N.Rich Standard tag will use this trigger to know when to activate.


What's next

Your CookieBot consent trigger is ready. Head back to Activating Standard mode (cookie consent) to add the Standard tag and complete the setup.


Need help? Reach out via the chat in the bottom-left corner of the N.Rich platform - our support team is happy to walk you through it.