{"id":415099,"date":"2026-12-05T11:09:52","date_gmt":"2026-12-05T11:09:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nahnu-analytics-connector\/"},"modified":"2026-12-05T12:08:29","modified_gmt":"2026-12-05T12:08:29","slug":"nahnu-analytics-connector","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/nahnu-analytics-connector\/","author":14745143,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.1.5","requires":"6.4","requires_php":"8.0","requires_plugins":null,"header_name":"Nahnu Analytics Connector","header_author":"Ja1me4","header_description":"Connects this WordPress site to Nahnu Analytics: adds the cookie-free tracking script (optionally served from this site, past ad blockers), and records shop orders, form sends and 404 pages.","last_updated":"2026-12-05 12:08:29","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.nahnuanalytics.com\/docs\/nahnu-analytics-connector\/","header_author_uri":"https:\/\/www.nahnuanalytics.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":169,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"ja1me4","date":"2026-12-05 11:09:23","revision":3846067},"1.0.1":{"tag":"1.0.1","author":"ja1me4","date":"2026-12-05 12:08:29","revision":3846129}},"upgrade_notice":{"1.0.1":"<p>Adds GiveWP donations.<\/p>","1.0.0":"<p>First public release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3846067,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3846067,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3846067,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3846067,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3846067,"resolution":"1","location":"assets","locale":"","width":2560,"height":1800},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3846067,"resolution":"2","location":"assets","locale":"","width":2560,"height":1800},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3846067,"resolution":"3","location":"assets","locale":"","width":2560,"height":1800},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3846067,"resolution":"4","location":"assets","locale":"","width":2560,"height":1800}},"screenshots":{"1":"Connect the website: paste the connection code from your agency. IndexNow works without a connection.","2":"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.","3":"What to count: shop orders, form sends, video plays and pages not found, each turned on or off on its own.","4":"Choose which signed-in visitors are counted, and check how the site sees visitor addresses behind a proxy."}},"plugin_section":[],"plugin_tags":[232,20315,396,521,286],"plugin_category":[36,45,54],"plugin_contributors":[267678],"plugin_business_model":[],"class_list":["post-415099","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-cookieless","plugin_tags-privacy","plugin_tags-statistics","plugin_tags-woocommerce","plugin_category-analytics","plugin_category-ecommerce","plugin_category-security-and-spam-protection","plugin_contributors-ja1me4","plugin_committers-ja1me4"],"banners":{"banner":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/banner-772x250.png?rev=3846067","banner_2x":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/banner-1544x500.png?rev=3846067","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/icon-128x128.png?rev=3846067","icon_2x":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/icon-256x256.png?rev=3846067","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/screenshot-1.png?rev=3846067","caption":"Connect the website: paste the connection code from your agency. IndexNow works without a connection."},{"src":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/screenshot-2.png?rev=3846067","caption":"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."},{"src":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/screenshot-3.png?rev=3846067","caption":"What to count: shop orders, form sends, video plays and pages not found, each turned on or off on its own."},{"src":"https:\/\/ps.w.org\/nahnu-analytics-connector\/assets\/screenshot-4.png?rev=3846067","caption":"Choose which signed-in visitors are counted, and check how the site sees visitor addresses behind a proxy."}],"raw_content":"<!--section=description-->\n<p><strong>This is the client plugin for <a href=\"https:\/\/www.nahnuanalytics.com\/\">Nahnu Analytics<\/a>.<\/strong> 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 <a href=\"https:\/\/www.nahnuanalytics.com\/\">nahnuanalytics.com<\/a>.<\/p>\n\n<p>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 \u203a 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.<\/p>\n\n<h4>Privacy<\/h4>\n\n<p>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.<\/p>\n\n<p>Some personal data can still be sent, depending on how the site is set up:<\/p>\n\n<ul>\n<li>Your site's own code can call <code>identify()<\/code> to name signed-in people in the stats.<\/li>\n<li>Shop orders are sent with their total, items, payment method and coupon (not the buyer's name, email or address).<\/li>\n<li>GiveWP donations are sent with their amount, the form's name and whether they are recurring (not the donor's name, email or address).<\/li>\n<li>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.<\/li>\n<\/ul>\n\n<p>Mention the stats in your privacy policy. By default the tracking script waits for your consent tool like any other script; see the FAQ.<\/p>\n\n<p><strong>You need a Nahnu Analytics account (usually your agency's) and its connection code for this site.<\/strong> Without one, only the IndexNow option works.<\/p>\n\n<h4>What it does<\/h4>\n\n<ul>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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).<\/li>\n<li>Records \"Page not found\" (404) views, with the missing address and the page that linked to it.<\/li>\n<li>Stats inside WordPress: Dashboard \u203a Stats shows this site's dashboard to administrators once your agency turns it on, with light and dark mode.<\/li>\n<li>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.<\/li>\n<li>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 \u203a Site stats \u203a 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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<\/ul>\n\n<h4>Source code<\/h4>\n\n<p>Two files are built from readable source, which is in the plugin's <code>source\/<\/code> folder with the steps to build them in <code>source\/README.md<\/code>:<\/p>\n\n<ul>\n<li>The dashboard shown in WordPress (<code>assets\/view\/view.js<\/code> and <code>view.css<\/code>), built with React and Vite.<\/li>\n<li>The tracking script (<code>assets\/site.js<\/code>), built with esbuild from <code>site-script\/src\/main.ts<\/code>.<\/li>\n<\/ul>\n\n<p>Everything else is plain PHP, CSS and JavaScript.<\/p>\n\n<h4>For developers<\/h4>\n\n<ul>\n<li>PHP: <code>nahnu_analytics_track( 'Lead won', array( 'props' =&gt; array( 'plan' =&gt; 'pro' ), 'revenue' =&gt; array( 'amount' =&gt; 490, 'currency' =&gt; 'USD' ) ) )<\/code> records an event for the current visitor; pass <code>ip<\/code> and <code>user_agent<\/code> from a webhook or cron. <code>do_action( 'nahnu_analytics_track', \u2026 )<\/code> does the same without checking the plugin is active.<\/li>\n<li>Browser: <code>window.NahnuAnalytics.track( 'Name', { props: {\u2026}, revenue: { amount, currency } } )<\/code>, <code>window.NahnuAnalytics.view( url )<\/code>, or <code>document.dispatchEvent( new CustomEvent( 'nahnu:track', { detail: { name, props, revenue } } ) )<\/code>. Markup: <code>data-k-event=\"Name\"<\/code> with <code>data-k-p-&lt;prop&gt;=\"value\"<\/code>.<\/li>\n<li>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.<\/li>\n<li>Filters: <code>nahnu_analytics_connector_event<\/code> (change or drop an event), <code>nahnu_analytics_connector_inline_js<\/code> (add your own form plugin's success event), <code>nahnu_analytics_connector_skip<\/code> (leave a request out), <code>nahnu_analytics_connector_purchase<\/code> (the WooCommerce Purchase event), <code>nahnu_analytics_connector_store_currency<\/code> (an order's revenue in the store's currency, for another multi-currency plugin), <code>nahnu_analytics_connector_surecart_purchase<\/code> and <code>nahnu_analytics_connector_surecart_test<\/code> (SureCart), <code>nahnu_analytics_connector_givewp_donation<\/code> and <code>nahnu_analytics_connector_givewp_test<\/code> (GiveWP), <code>nahnu_analytics_connector_is_proxy<\/code>, <code>nahnu_analytics_connector_upstream<\/code>. Action: <code>nahnu_analytics_connector_event_sent<\/code>.<\/li>\n<li>Filter <code>nahnu_analytics_connector_history_jetpack<\/code> gives Jetpack Stats' answers instead of asking WordPress.com (for tests, or a site whose stats are kept elsewhere).<\/li>\n<li>Filter <code>nahnu_analytics_connector_stats_cap<\/code> chooses who sees the Stats item; <code>nahnu_analytics_connector_trust_proxy<\/code> whether forwarding headers are believed.<\/li>\n<li>Goals, funnels and journeys are managed by the agency (in the app or through its REST API).<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>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.<\/p>\n\n<p><strong>Your agency's Nahnu Analytics stats service.<\/strong> The tracking domain in the connection code (a Cloudflare Worker your agency runs, on its own Cloudflare account). It is how the plugin works:<\/p>\n\n<ul>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>Stats from before (when you start it) sends daily totals read from the other analytics plugin.<\/li>\n<li>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.<\/li>\n<\/ul>\n\n<p>Terms of use: https:\/\/www.nahnuanalytics.com\/terms-of-use\/ \u2014 Privacy policy: https:\/\/www.nahnuanalytics.com\/privacy-policy\/ \u2014 your agency, which runs the service, may have its own.<\/p>\n\n<p><strong>Cloudflare DNS (1.1.1.1).<\/strong> 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\/ \u2014 privacy policy: https:\/\/www.cloudflare.com\/privacypolicy\/<\/p>\n\n<p><strong>IndexNow.<\/strong> 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 \u2014 Microsoft's privacy statement (IndexNow is run by Microsoft Bing): https:\/\/privacy.microsoft.com\/privacystatement<\/p>\n\n<p><strong>WordPress.com (Jetpack Stats).<\/strong> 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\/ \u2014 privacy policy: https:\/\/automattic.com\/privacy\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin (Plugins \u203a Add New \u203a search for \"Nahnu Analytics Connector\").<\/li>\n<li>Ask your agency for this site's connection code (in Nahnu Analytics: the site's settings \u203a Install \u203a WordPress).<\/li>\n<li>Paste it under Settings \u203a Site stats (your agency's name, when it white labels the plugin) and save. Visits are counted from the next page view.<\/li>\n<li>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.<\/li>\n<\/ol>\n\n<p>Without a connection code, only the IndexNow option (Settings \u203a Site stats \u203a Search engines) works.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20use%20cookies%3F\"><h3>Does it use cookies?<\/h3><\/dt>\n<dd><p>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 \u203a Site stats \u203a Consent: the plugin then marks its script as necessary in that tool's own way. It never changes the consent tool's own settings.<\/p><\/dd>\n<dt id=\"what%20is%20%22serve%20from%20this%20site%22%3F\"><h3>What is \"Serve from this site\"?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"where%20are%20the%20stats%3F\"><h3>Where are the stats?<\/h3><\/dt>\n<dd><p>In your agency's Nahnu Analytics. When your agency turns it on, administrators see this site's dashboard in WordPress too (Dashboard \u203a Stats).<\/p><\/dd>\n<dt id=\"does%20it%20work%20without%20an%20agency%3F\"><h3>Does it work without an agency?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"can%20i%20bring%20in%20stats%20from%20another%20analytics%20plugin%3F\"><h3>Can I bring in stats from another analytics plugin?<\/h3><\/dt>\n<dd><p>Yes: WP Statistics, Koko Analytics, Burst Statistics, Independent Analytics, AnalyticsWP and Jetpack Stats, under Settings \u203a Site stats \u203a Stats from before (shown while one of them is installed).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>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 \u203a Site stats \u203a What to count.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release.<\/li>\n<\/ul>","raw_excerpt":"Client plugin for Nahnu Analytics: connects this site to your agency&#39;s cookie-free stats for visits, sales, donations, forms and 404s.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/415099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=415099"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ja1me4"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=415099"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=415099"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=415099"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=415099"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=415099"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=415099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}