Title: Nahnu Analytics Connector
Author: Jaime Alnassim
Published: <strong>December 5, 2026</strong>
Last modified: December 5, 2026

---

Search plugins

![](https://ps.w.org/nahnu-analytics-connector/assets/banner-772x250.png?rev=3846067)

![](https://ps.w.org/nahnu-analytics-connector/assets/icon-256x256.png?rev=3846067)

# Nahnu Analytics Connector

 By [Jaime Alnassim](https://profiles.wordpress.org/ja1me4/)

[Download](https://downloads.wordpress.org/plugin/nahnu-analytics-connector.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/nahnu-analytics-connector/#description)
 * [Reviews](https://wordpress.org/plugins/nahnu-analytics-connector/#reviews)
 *  [Installation](https://wordpress.org/plugins/nahnu-analytics-connector/#installation)
 * [Development](https://wordpress.org/plugins/nahnu-analytics-connector/#developers)

 [Support](https://wordpress.org/support/plugin/nahnu-analytics-connector/)

## Description

**This is the client plugin for [Nahnu Analytics](https://www.nahnuanalytics.com/).**
It is not a stats tool on its own: it connects this website to the Nahnu Analytics
plugin, which your agency (or you) runs on its own WordPress, where the dashboards,
reports, goals and client portal live. Without a Nahnu Analytics account and its
connection code, this plugin only offers IndexNow. Learn more and get Nahnu Analytics
at [nahnuanalytics.com](https://www.nahnuanalytics.com/).

Nahnu Analytics Connector links this WordPress site to Nahnu Analytics, the cookie-
free web analytics that agencies run for their clients (on the agency’s own Cloudflare
account). Your agency gives you a connection code; paste it under Settings › Site
stats and the site starts counting visits. Your agency sees the stats in its Nahnu
Analytics dashboard, and can show them to you in WordPress or in its client portal.

#### Privacy

The stats use no cookies. To count unique visitors, the stats service uses each 
visitor’s IP address and browser (user agent) with a salt that changes every day,
and does not store the IP address. With “Serve from this site” on, visits pass through
this site, which sends the visitor’s IP address and user agent on to the stats service
for that count.

Some personal data can still be sent, depending on how the site is set up:

 * Your site’s own code can call `identify()` to name signed-in people in the stats.
 * Shop orders are sent with their total, items, payment method and coupon (not 
   the buyer’s name, email or address).
 * GiveWP donations are sent with their amount, the form’s name and whether they
   are recurring (not the donor’s name, email or address).
 * Feature flags (when your agency turns them on) keep a random id in the browser’s
   local storage, so a visitor keeps the same version. Session recordings (when 
   your agency turns them on) keep a random id for the visit in the browser’s session
   storage.

Mention the stats in your privacy policy. By default the tracking script waits for
your consent tool like any other script; see the FAQ.

**You need a Nahnu Analytics account (usually your agency’s) and its connection 
code for this site.** Without one, only the IndexNow option works.

#### What it does

 * Adds the tracking script to every page (not for previews or feeds), with WordPress’s
   own script functions. You choose which signed-in roles are counted; visitors 
   who are not signed in always are.
 * Optional “Serve from this site”: the tracking script included in this plugin 
   is served from this site’s own address, and visits are sent to this site, which
   passes them on to your agency. Ad blockers see only this site, so far fewer visits
   are missed. The visitor’s IP address (and country, behind Cloudflare) is passed
   on in a signed header, used only to count unique visitors and never stored. Nothing
   is downloaded and no file is written: the script ships with the plugin.
 * Shops: WooCommerce, SureCart, FluentCart and Easy Digital Downloads. Each order
   is recorded once, from this server when it is paid or placed, with its total 
   as revenue (items, payment method and coupon as properties), plus “Added to cart”
   and “Checkout started”. So the block checkout, payments confirmed later (PayPal,
   bank transfer) and buyers with ad blockers all count; test-mode orders and renewals
   are left out. WooCommerce orders paid in another currency through a multi-currency
   plugin (WC Currency Switch, CURCY / WooCommerce Multi Currency, FOX / WOOCS, 
   Aelia Currency Switcher) are counted in the store’s own currency at the rate 
   saved on the order, with what the buyer paid kept as the paid_currency and paid_amount
   properties.
 * Donations: GiveWP. Each completed donation is recorded once as “Donation”, with
   its amount as revenue and the form’s name and whether it is recurring as properties.
   It is sent from this server when GiveWP completes it, or from the donor’s browser
   on the donation confirmation (payments confirmed later); test-mode donations 
   and recurring renewals are left out.
 * Forms: records each successful send once, named after its form, from Contact 
   Form 7, WPForms, Gravity Forms, Elementor, Fluent Forms, Formidable Forms, Ninja
   Forms, Forminator, MetForm and SureForms. The settings list the form plugins 
   found on this site.
 * Video players: plays and watched-to-the-end for Fluent Player, Presto Player,
   Nahnu Video for Bunny Stream, BricksExtras and the site’s own video and audio,
   with the title, where it plays from and the page.
 * WP Grid Builder: how visitors filter, search and sort your grids: “Filter used”(
   the filter and what was picked), “Grid search”, “Grid sorted”, “Filters cleared”
   and “Grid: no results” (the filters that found nothing).
 * Records “Page not found” (404) views, with the missing address and the page that
   linked to it.
 * Stats inside WordPress: Dashboard › Stats shows this site’s dashboard to administrators
   once your agency turns it on, with light and dark mode.
 * llms.txt and llms-full.txt for AI assistants, when your agency makes them for
   this site, served from this site’s own address; a daily check that search engines
   and AI crawlers may read the site; a site audit (titles, descriptions, noindex,
   broken links, images without alt text) your agency sees.
 * Stats from before: when the site counted visits with WP Statistics or Koko Analytics(
   their free versions for now), Burst Statistics or Independent Analytics (free
   and Pro, with Pro’s sales as revenue), AnalyticsWP or Jetpack Stats, Settings›
   Site stats › Stats from before brings that history into your agency’s stats, 
   so the charts go back further than the day the site was connected. Only the days
   before the site’s own stats begin are used, and the other plugin is only read,
   never changed (it can be turned off first). The card shows only while one of 
   these plugins is installed.
 * Optional: tell Bing and other IndexNow search engines about new and updated pages.
   This works on its own, with or without a Nahnu Analytics connection.
 * Outbound links, file downloads and scroll depth are counted by the tracking script
   itself. Heatmaps, feedback, surveys and session recordings work when your agency
   turns them on.

#### Source code

Two files are built from readable source, which is in the plugin’s `source/` folder
with the steps to build them in `source/README.md`:

 * The dashboard shown in WordPress (`assets/view/view.js` and `view.css`), built
   with React and Vite.
 * The tracking script (`assets/site.js`), built with esbuild from `site-script/
   src/main.ts`.

Everything else is plain PHP, CSS and JavaScript.

#### For developers

 * PHP: `nahnu_analytics_track( 'Lead won', array( 'props' => array( 'plan' => '
   pro' ), 'revenue' => array( 'amount' => 490, 'currency' => 'USD' ) ) )` records
   an event for the current visitor; pass `ip` and `user_agent` from a webhook or
   cron. `do_action( 'nahnu_analytics_track', … )` does the same without checking
   the plugin is active.
 * Browser: `window.NahnuAnalytics.track( 'Name', { props: {…}, revenue: { amount,
   currency } } )`, `window.NahnuAnalytics.view( url )`, or `document.dispatchEvent(
   new CustomEvent( 'nahnu:track', { detail: { name, props, revenue } } ) )`. Markup:`
   data-k-event="Name"` with `data-k-p-<prop>="value"`.
 * SureCart: records each purchase once when SureCart confirms the checkout, with
   its total as revenue (items and coupon as properties), plus “Added to cart” and“
   Checkout started” from SureCart’s own cart and checkout. Test-mode purchases 
   are left out. Together with WooCommerce’s, these events make the shop goals and
   the “Shop checkout” funnel set themselves up.
 * Filters: `nahnu_analytics_connector_event` (change or drop an event), `nahnu_analytics_connector_inline_js`(
   add your own form plugin’s success event), `nahnu_analytics_connector_skip` (
   leave a request out), `nahnu_analytics_connector_purchase` (the WooCommerce Purchase
   event), `nahnu_analytics_connector_store_currency` (an order’s revenue in the
   store’s currency, for another multi-currency plugin), `nahnu_analytics_connector_surecart_purchase`
   and `nahnu_analytics_connector_surecart_test` (SureCart), `nahnu_analytics_connector_givewp_donation`
   and `nahnu_analytics_connector_givewp_test` (GiveWP), `nahnu_analytics_connector_is_proxy`,`
   nahnu_analytics_connector_upstream`. Action: `nahnu_analytics_connector_event_sent`.
 * Filter `nahnu_analytics_connector_history_jetpack` gives Jetpack Stats’ answers
   instead of asking WordPress.com (for tests, or a site whose stats are kept elsewhere).
 * Filter `nahnu_analytics_connector_stats_cap` chooses who sees the Stats item;`
   nahnu_analytics_connector_trust_proxy` whether forwarding headers are believed.
 * Goals, funnels and journeys are managed by the agency (in the app or through 
   its REST API).

### External services

This plugin connects the site to outside services. Apart from IndexNow (which you
turn on yourself), it only does so once it is connected with a connection code. 
Each item below says what is sent and when.

**Your agency’s Nahnu Analytics stats service.** The tracking domain in the connection
code (a Cloudflare Worker your agency runs, on its own Cloudflare account). It is
how the plugin works:

 * Visitors’ browsers load the tracking script from it and send it page views, events,
   time on page and scroll depth (the page address, referrer, screen width, language,
   time zone and the campaign tags in the address). With “Serve from this site” 
   on, the script comes from this plugin instead, and visits go through this site,
   which passes them on along with the visitor’s IP address and user agent (used
   only to count unique visitors, never stored). When your agency turns on extra
   features (heatmaps, feedback, surveys, session recordings), the browser also 
   loads their script from it.
 * This server sends it orders (total, items, payment method, coupon), form sends(
   the form’s name, no answers), 404 pages and the other events listed above, when
   they happen.
 * This server fetches your agency’s white label (name and logo) from it a few times
   a day, and, when your agency turns them on, the in-WordPress stats and llms.txt.
 * For llms.txt (when your agency turns it on), this server sends it the list of
   the site’s public pages (addresses, titles, short descriptions, prices of products)
   and how often AI crawlers fetched the files. The daily site audit sends the problems
   it found on public pages (titles, descriptions, broken links). Password-protected,
   private and draft pages are never sent.
 * Stats from before (when you start it) sends daily totals read from the other 
   analytics plugin.
 * With the Nahnu Links client plugin on this site: the address of its short link
   service and the site key Nahnu Links gave this site are sent to it (when they
   change, and checked once a day), so it can read this site’s short links and their
   clicks. On each page, the short link click ID that Nahnu Links keeps in the visitor’s
   browser tab is sent with the page view.

Terms of use: https://www.nahnuanalytics.com/terms-of-use/ — Privacy policy: https://
www.nahnuanalytics.com/privacy-policy/ — your agency, which runs the service, may
have its own.

**Cloudflare DNS (1.1.1.1).** Only when connected, and only when this server cannot
look up the tracking domain itself (a host with a broken DNS resolver): the domain’s
name is sent to Cloudflare’s DNS over HTTPS (https://1.1.1.1/dns-query) to find 
its address. Cloudflare’s terms: https://www.cloudflare.com/website-terms/ — privacy
policy: https://www.cloudflare.com/privacypolicy/

**IndexNow.** Only when you turn on “Tell Bing about new and updated pages” (no 
Nahnu Analytics connection needed): the addresses of public pages you publish or
update, and this site’s IndexNow key, are sent to https://api.indexnow.org/ (shared
by Bing, Yandex, Seznam, Naver and other search engines). IndexNow then reads the
key at this site’s own address, which WordPress answers (no file is written). Terms:
https://www.indexnow.org/terms — Microsoft’s privacy statement (IndexNow is run 
by Microsoft Bing): https://privacy.microsoft.com/privacystatement

**WordPress.com (Jetpack Stats).** Only when you bring in Jetpack Stats under Stats
from before: the stats are read from WordPress.com through Jetpack’s own connection(
Jetpack’s request, as for its own stats screen). WordPress.com terms: https://wordpress.
com/tos/ — privacy policy: https://automattic.com/privacy/

## Screenshots

[⌊Connect the website: paste the connection code from your agency. IndexNow works
without a connection.⌉⌊Connect the website: paste the connection code from your 
agency. IndexNow works without a connection.⌉[

Connect the website: paste the connection code from your agency. IndexNow works 
without a connection.

[⌊Connected: the tracking script is served from the site's own domain, consent is
asked first by default, and the connection can be checked at any time.⌉⌊Connected:
the tracking script is served from the site's own domain, consent is asked first
by default, and the connection can be checked at any time.⌉[

Connected: the tracking script is served from the site’s own domain, consent is 
asked first by default, and the connection can be checked at any time.

[⌊What to count: shop orders, form sends, video plays and pages not found, each 
turned on or off on its own.⌉⌊What to count: shop orders, form sends, video plays
and pages not found, each turned on or off on its own.⌉[

What to count: shop orders, form sends, video plays and pages not found, each turned
on or off on its own.

[⌊Choose which signed-in visitors are counted, and check how the site sees visitor
addresses behind a proxy.⌉⌊Choose which signed-in visitors are counted, and check
how the site sees visitor addresses behind a proxy.⌉[

Choose which signed-in visitors are counted, and check how the site sees visitor
addresses behind a proxy.

## Installation

 1. Install and activate the plugin (Plugins › Add New › search for “Nahnu Analytics
    Connector”).
 2. Ask your agency for this site’s connection code (in Nahnu Analytics: the site’s
    settings › Install › WordPress).
 3. Paste it under Settings › Site stats (your agency’s name, when it white labels 
    the plugin) and save. Visits are counted from the next page view.
 4. Optional: choose what to count, turn on “Serve from this site”, and (with a consent
    tool on the site) whether the stats may count visitors before they choose.

Without a connection code, only the IndexNow option (Settings › Site stats › Search
engines) works.

## FAQ

### Does it use cookies?

No. Visitors are counted without cookies and without storing their IP address. With
a consent tool on the site (Must-Have Cookie, Cookiebot, CookieYes, iubenda, Termly),
the tracking script waits for each visitor’s consent like any other script, and 
the plugin sends nothing from the server about a visitor: shop orders and events
are then recorded in the visitor’s browser only, after they agree. If you have checked
that cookie-free stats may run without consent where you are, turn on “Count visitors
before they choose” under Settings › Site stats › Consent: the plugin then marks
its script as necessary in that tool’s own way. It never changes the consent tool’s
own settings.

### What is “Serve from this site”?

The tracking script that ships with this plugin is served from this site’s own address,
and visits are sent to this site, which passes them on to your agency’s stats with
the visitor’s IP address and user agent (to count unique visitors; never stored).
Ad blockers see only your own domain, so far fewer visits are missed. It costs one
small request to this site per visit.

### Where are the stats?

In your agency’s Nahnu Analytics. When your agency turns it on, administrators see
this site’s dashboard in WordPress too (Dashboard › Stats).

### Does it work without an agency?

You need a Nahnu Analytics account and its connection code for the stats: the stats
are counted and kept by that service. IndexNow works without one.

### Can I bring in stats from another analytics plugin?

Yes: WP Statistics, Koko Analytics, Burst Statistics, Independent Analytics, AnalyticsWP
and Jetpack Stats, under Settings › Site stats › Stats from before (shown while 
one of them is installed).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Nahnu Analytics Connector” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Jaime Alnassim ](https://profiles.wordpress.org/ja1me4/)

[Translate “Nahnu Analytics Connector” into your language.](https://translate.wordpress.org/projects/wp-plugins/nahnu-analytics-connector)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/nahnu-analytics-connector/),
check out the [SVN repository](https://plugins.svn.wordpress.org/nahnu-analytics-connector/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/nahnu-analytics-connector/)
by [RSS](https://plugins.trac.wordpress.org/log/nahnu-analytics-connector/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * New: GiveWP donations are recorded as “Donation”, with the amount as revenue 
   and the form’s name, once per donation. Turn it on or off under Settings › Site
   stats › What to count.

#### 1.0.0

 * First public release.

## Meta

 *  Version **1.0.1**
 *  Last updated **7 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 8.0 or higher **
 * Tags
 * [analytics](https://wordpress.org/plugins/tags/analytics/)[cookieless](https://wordpress.org/plugins/tags/cookieless/)
   [privacy](https://wordpress.org/plugins/tags/privacy/)[statistics](https://wordpress.org/plugins/tags/statistics/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/nahnu-analytics-connector/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/nahnu-analytics-connector/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/nahnu-analytics-connector/reviews/)

## Contributors

 *   [ Jaime Alnassim ](https://profiles.wordpress.org/ja1me4/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/nahnu-analytics-connector/)