1. N.Rich Knowledge Base
  2. Website Tag Installation

The N.Rich Tag - CookieYes

Configuring Google Tag Manager and CookieYes for the N.Rich Tag Installation

Prerequisites: You use Google Tag Manager and the CookieYes Consent Management Platform

In this guide we will go through the steps needed to configure Google Tag Manager and CookieYes CMP in order to be able to install N.Rich Cookieless and Standard tags. 


In case you have just set up Google Tag Manager, it is important to create a new trigger that will inform the tags you install (like N.Rich) whether or not a user visiting your site has given consent to cookies (and which kind of cookies did they consent to).


This article from CookieYes does a great job at explaining how to go about setting this up.  

Do you already have a trigger in Google Tag Manager tracking whether a visitor to your website has given marketing consent?
Then skip this guide entirely and return to the primary article. 


Here, we'll simply rehash what the team at CookieYes masterfully explained:

 1. Start off by navigating to Google Tag Manager and from the left-hand side, choose Variables.

2. From the User-Defined Variables section, choose New

3. Give the variable a name, for example "Cookie Consent" and click on the Lego-like brick icon in the center of the screen to choose a variable 1st Party Cookie

4.  In the Cookie Name text box, enter the name of the cookie for which you need to retrieve the value as cookieyes-consent  and click Save

Screenshot 2025-08-29 at 14.30.54

5. WIth our variable ready, its time to create a trigger. From the left-hand menu, choose Triggers and New on the right-hand side. 


6. Give your trigger a name, for example, "Analytics Consent" and click on the icon in the center to begin setting up your trigger - from the list that appears on the right, choose Custom Event


7. Set the Event Name to cookie_consent_update , check the Use regex matching checkbox. 

8. Set This trigger fires on: to Some Custom Events and from the first drop-down on the left, choose the Cookie Consent variable we have created earlier. Keep the middle dropdown to Contains and input analytics:yes into the text box on the right: 

Screenshot 2025-08-29 at 14.38.06

9. Finally, click Save


Well done!

Your Google Tag Manager is now configured to pass whether or not your users have granted consent to your website via CookieYes - N.Rich can leverage this to determine when to load the Cookieless and Standard versions of our tag. 

Return to the main article to complete the installation.