Docs Set up tracking

Install the tracking tag

Paste the one line shown after adding a site just before </head> on every page. It uses neither cookies nor localStorage, so no consent banner is needed.

Updated: Sep 2, 2026

It’s a single line

After you add a site, a line like the following is shown (the data-site value is different for each site).

<script defer src="https://api.nextriseanalytics.com/n.js" data-site="YOUR_SITE_ID"></script>

Paste it just before </head> on every page of the site you want to track. That’s the whole installation.

  • You can add it through a tag manager (such as GTM) or paste it directly into your theme templates — either works.
  • On WordPress, use a header-insertion plugin or place it just before </head> in a child theme.
  • If you use WooCommerce or Shopify, you don’t need to do this. The plugin or app installs it for you (WooCommerce, Shopify).

You can view and copy the tag at any time under “Manage sites → Settings → Tracking snippet”.

What happens after you install it

WhenWhat you see
A few minutes laterThe Realtime tab shows current visitors and the pages being viewed
The same dayThe “Today” row in Overview and today’s numbers (provisional)
The next dayDaily breakdowns (Acquisition, Pages, Users) and improvement cards

Data accumulates from the day you install the tag. For the period before that, if you use GA4 you can import it once.

Don’t install it twice

If two tracking tags end up on the same site, we count each visit only once (n.js detects this itself). But this is a safety net against accidents. If the plugin or app installs the tag and a hand-pasted one is still there, remove the hand-pasted one.

Events counted as conversions

By default, “purchase” is counted as the conversion. Under Manage sites → Settings, “Event counted as a conversion” lets you change it to something other than purchase (account signup, contact form, and so on). When you change it, we recalculate up to the last 90 days, not just the days from then on.

The tracking tag writes neither cookies nor localStorage. The visitor identifier is a hash of “a salt that changes daily + site ID + IP + user agent”; IP and UA are not stored, and the ID is different the next day. You can install it without showing a consent banner, and it is designed to be less affected by Safari’s ITP and ad blockers. See Tracking data and privacy for details.

If data isn’t arriving

Check that tracking works covers how to verify it and the common causes.

Start 7-day free trial

No credit card. See your own data right after signing up.