Docs
← Back to site

Cookie and consent plugins

3 min readUpdated November 18, 2026

Nahnu Analytics sets no cookies and keeps no personal data: visitors are counted with a daily rotating, salted hash that cannot be turned back into an address (see Nahnu Analytics › Privacy & data). That is why most consent tools let it run without asking.

Consent tools still block what they do not recognize. So the WordPress connector plugin tells each consent tool on a client’s website that the stats are necessary, in that tool’s own way, using only the tool’s own hooks and markers. Nothing in the consent tool’s settings is changed.

Without this, a consent tool may hold back the tracking script, or anything that comes from the tracking domain: the add-on (events, forms, outbound links, heatmaps), surveys, recordings and the location check. Visitors who never click the banner would not be counted.

The connector’s settings page names the consent tools it found on the website.

Must-Have Cookie blocks requests by host with a service worker and a script guard. The connector adds the tracking domain to its essential hosts (its mhcookie/essential_hosts filter), so requests to it are never held back.

On your own WordPress, Nahnu Analytics does the same, so the client portal’s fast reads and your own website’s stats are not blocked by Must-Have Cookie there either.

Cookiebot#

Cookiebot scans scripts and blocks them until consent. The connector adds data-cookieconsent="ignore" to the snippet, the same marker Cookiebot’s own ignore list adds, so Cookiebot leaves it running.

CookieYes#

The connector adds data-cookieyes="cookieyes-necessary" to the snippet, putting it in CookieYes’s Necessary category, which always runs.

iubenda#

The connector adds the _iub_cs_skip class to the snippet. iubenda’s parser skips scripts with that class.

Termly#

Two things, because Termly blocks both scripts and the requests they make:

  • data-categories="essential" on the snippet;
  • the tracking domain mapped to essential in Termly’s custom blocking map, through WordPress’s option filters, on the website’s front end only (nothing is saved in Termly’s settings).

A consent tool not listed here may hold the snippet back (it changes it to type="text/plain" until consent). Visitors who never agree are then not counted. Settings › Health › Debug says when this happens. In that tool, mark the tracking domain (and the script) as necessary or strictly necessary.

If a client’s legal advice is to wait for consent anyway, turn this off:

// On the client's WordPress (connector): let consent tools hold the stats back.
add_filter( 'nahnu_analytics_connector_consent_essential', '__return_false' );

// On your own WordPress (Nahnu Analytics).
add_filter( 'nahnu_analytics_consent_essential', '__return_false' );

The privacy policy#

Cookie-free stats should still be mentioned in a website’s privacy policy. Platform › About & privacy has ready text to paste, saying what is counted, that no cookies are set and where the data is kept.

About & privacy with the text for a client's privacy policy

Was this helpful?