N.Rich tag - technical installation guide
Last updated: July 6, 2026
This article is for developers and technical users installing the N.Rich tag directly into a website's codebase - without Google Tag Manager. It covers where to find your tag code, how to activate Standard mode, all available tag parameters, and Content Security Policy configuration.
Not a developer? If you're installing via Google Tag Manager, start with Getting started with the N.Rich Website Tag instead.
If you or your legal team need to review privacy and compliance information before installing the tag, see N.Rich tag – data collection, privacy & compliance.
Where to find your tag code
Go to app.nrich.ai/setup → Website Tag. The code on that page is your unique Cookieless tag, pre-configured with your account's tracking ID. Install it on every page you want N.Rich to track - including any landing pages hosted on a separate platform.
Activating and deactivating Standard mode
Once a visitor has granted consent, push the following to switch the tag into Standard (cookie) mode:
<script>
window._nrich = window._nrich || [];
window._nrich.push(["enableCookies", true]);
</script>
To return to Cookieless mode, push the same script with ["enableCookies", false].
Tag parameters
Full tag example
<!-- 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>
Content Security Policy (CSP)
If your site uses a Content Security Policy, add the following to allow the N.Rich tag to load:
The wildcard covers multiple subdomains used for tag delivery.
What's next
Tag is installed — now verify it's working. Go to the Setup section of your N.Rich account and check that Cookieless and Standard mode show as active. It can take up to 12 hours after deployment, so check back tomorrow if you don't see it straight away.
Once the tag is confirmed active, head to your dashboards; account-level website activity will start appearing as data comes in.
Need help? Reach out via the chat in the bottom-left corner of the N.Rich platform - our support team is happy to help.