N Docs
← Back to site

Short link visits in Nahnu Analytics

2 min readUpdated November 23, 2026

See which visits to your site came from your short links, in Nahnu Analytics or another analytics tool. It works by itself once your site is connected: no setup and no code.

How it works#

  1. Your short links to this website carry a click ID (?nlc=…) when visitors arrive.
  2. A small bridge script on your pages reads it and tells your analytics tool which link the visitor clicked: the ending, title, country, device and the rule or A/B variant.
  3. The script then tidies the address bar, so the click ID isn’t shown or copied.

No cookies: the click ID stays in the visitor’s tab.

With Nahnu Analytics#

With the Nahnu Analytics Connector plugin active, each visit from a short link is recorded as a Short link visit event. You can then see in Nahnu Analytics which short links bring visitors who stay, read more or convert.

Settings#

Under Settings > Short link visits you can turn off:

  • Add the Nahnu Links bridge script to this site, to stop it completely; or
  • Also record a “Short link visit” event in Nahnu Analytics, to keep the script but not the events.

Other analytics tools#

Other analytics tools can listen for the script’s nahnulinks:click event in the browser:

document.addEventListener('nahnulinks:click', function (e) {
  // e.detail holds the short link and click details
  console.log(e.detail);
});

Send what you need to your tool from there, for example as a custom event. Developers: see The bridge script.

Good to know#

  • Only links to this website carry a click ID.
  • Visits that don’t come from a short link aren’t affected.
  • Caching plugins are fine: the script reads the click ID in the browser.