The technical information regarding the installation of the N.Rich tag
This is a technical article. In case you are non-technical, follow this guide instead.
N.Rich functionality depends on a tag/pixel being installed on all pages that N.Rich is supposed to track for engagement.
The tag has two modes of operation:
a) Cookieless or Bootstrap mode - Limited data collection prior to the user granting consent.
b) Standard or Cookie mode - Full data collection after consent is granted.
The recommended (and GDPR compliant) way of setting up the N.Rich tag is to ensure the Bootstrap tag is active on all marketing and landing pages of your platform, while the Cookie tag activates only when user user has been granted.
In case you or your legal team need to do preform due diligence prior to installing a tracking tag and cookie into your website, here you can find our legitimate interest assessment sheet, our data privacy approach as well as our privacy notice.
Where to find the tag
Head to https://app.nrich.ai/setup > Website Tag
The source code on the page is the Bootstrap version of the tag that can be safely installed to any page even before the user has granted marketing consent. Where you install the tag is up to you, the requirement on our end is primarily that the tag should be installed on every page you wish N.Rich to track. In case your landing pages are hosted separately from your primary website, make sure the N.Rich tag is installed on both platforms.
How to switch the tag between Bootstrap and Cookie mode.
Once consent has been recorded, pushing the following will switch the NRich tag into Cookie mode:
<script>
window._nrich = window._nrich || []; window._nrich.push(["enableCookies",true]);
</script>
Similarly, pushing the the same script with ["enableCookies",false]
will return the tag into the Bootstrap mode of operation.
How the N.Rich tag's Bootstrap mode is GDPR compliant
In bootstrap mode, cookies are never set to the end user’s device. The IP address is used to associate the visitor with an account and visit timestamps are used to track the website session.
The N.Rich tag's cookieless mode is engineered with GDPR's principles of data minimisation and purpose limitation in mind. While a visitor's IP address may be classified as personal data under certain circumstances, the processing is strictly limited to identifying the visitor's company for B2B analytics purposes. For controllers evaluating their lawful basis for this processing, a key consideration is the minimal privacy impact on the individual. The system is designed to aggregate data at the company level, and in a B2B context, a corporate IP address typically represents a one-to-many relationship, making the identification of a specific person a remote possibility. The fact that the tag does not process any special categories of data further reduces the potential risk to an individual's rights and freedoms, which is a central element of the balancing test required under the 'legitimate interest' legal basis.
From a technical and ePrivacy Directive standpoint, the cookieless mode's design avoids the primary trigger for cookie consent banners by not setting or reading non-essential cookies on the end user's device. The processing is limited to using the visitor's IP address to identify their company and visit timestamps to differentiate sessions, with all data aggregated at the account level. This technical approach aligns with guidance from several EU data protection authorities— including Germany's DPA and France's CNIL—which have indicated that the automatic server-side receipt of an IP address does not, in itself, constitute 'gaining access' to a user's device in the manner regulated by ePrivacy's cookie consent rules. This design, when combined with transparency in the website's privacy policy and clear opt-out mechanisms for users, can form a strong foundation for a compliant implementation.
The N.Rich tag and Consent Management Platforms (CMP)
In case you are using a Consent management platform, make sure you have a variable indicating that a user has or hasn't given consent. Based on that variable, you should load the Bootstrapped mode whilst consent is absent and pass the "enableCookies",true parameter once consent is obtained. For more detailed instructions, see the per-CMP-platform guides here.
Tag parameter options
Here is the list of all parameters pertaining to the N.Rich tag
-
setAudienceDomain - Required. Specifies the domain used to gather audience data. This is generally fixed. You should not modify it unless instructed by N.Rich support.
-
setTrackingDomain - Required. Defines the domain used to send tracking data. This is usually fixed and should not be modified.
-
setTrackingId - Required. The unique tracking ID for your account.
-
enableCookies - Controls whether cookies are enabled for tracking.
-
true: Cookies are enabled (standard mode, allows session tracking, visitor counting, and intent scoring).
-
false: Default behaviour; Cookies are disabled (cookieless or bootstrap mode, some features will be limited).
-
Recommendation: Set this to true only if you have consent from your visitors to use cookies.
-
-
disableCookieSync - This parameter is optional and should be only used when necessary. Disables cookie synchronisation with other systems.
-
false: Default behaviour; cookies can sync across subdomains for better tracking consistency.
-
true: Disables cookie synchronization, which may be necessary for compliance with certain privacy regulations or technical setups.
-
Recommendation: Only enable this (true) if you have some specific reasons to not sync cookies with other systems. Disabling cookie sync will lead to suboptimal advertising performance as N.Rich can’t build proper audiences from your website visitors.
-
-
enableDebug - This parameter is optional and should be only used when necessary. Enables debug mode for troubleshooting and diagnostics.
-
true: Outputs detailed logs in the browser console to help you debug installation or configuration issues.
-
false: Default behaviour; no debug information is logged.
-
Recommendation: Use true temporarily while debugging issues, then revert to false for normal operation.
-
Example of the tag with all of the options above:
<!-- N.Rich Website Tag 2.x -->
<script>
!function(n,r,i,c,h){
window._nrich=window._nrich||[];
window._nrich.push(["setAudienceDomain","audience.domain"]);
window._nrich.push(["setTrackingDomain","tracking.domain"]);
window._nrich.push(["setTrackingId","unique_id"]);
window._nrich.push(["enableCookies",false]); window._nrich.push(["disableCookieSync",false]);
window._nrich.push(["enableDebug",false]);
(c=document.createElement(n)).type="text/javascript";
c.async=true;
c.src=r;
window[i] = window[i] || function(){window._nrich.push(Array.from(arguments));};
(h=document.getElementsByTagName("script")[0]).parentNode.insertBefore(c,h);
}("script", "https://j.nrich.ai/tag.js", "nt");
</script>
Page event tracking
By installing the N.Rich tag into your website, you gain the ability to leverage the "nt" function.
With it, it becomes possible to send events to the N.Rich platform that will become visible within your analytics. nt('send', 'event', {
eventCategory: 'Outbound Link',
eventAction: 'click',
eventLabel: 'advertising click'
});
Page categories
The 'nt' function also has the ability to pass page categories to N.Rich analytics via
nt('set_meta', 'page_category', 'Business');