Kantan Analytics – Cookieless Self-Hosted Analytics & Heatmaps
Cookieless, self-hosted WordPress analytics with heatmaps, scroll depth, user journeys and conversions.
Install in
Kantan Analytics is a self-hosted WordPress analytics plugin that tracks visitors, sessions, journeys, and conversions — without cookies, external services, or data ever leaving your server. A private, self-hosted Google Analytics alternative: every metric lives in your own database. You own it.
Kantan keeps every metric in your own database and answers the questions you actually have: which pages convert, where visitors come from, who keeps coming back, and what changed this week. The dashboard installs in a few minutes and runs in the WordPress admin sidebar you already use.
Privacy by architecture
- No cookies. Browser localStorage only — no consent banner required in most jurisdictions, no cross-site tracking possible.
- No IP storage. The visitor’s country is resolved from a bundled offline database at tracking time (region is optional — bring your own city database); the raw IP is used only for that lookup plus the exclusion/rate-limit checks, and is never written to disk.
- Nothing phoned home. Every metric stays in your WordPress database and Kantan never sends your data to us. One optional integration — the Attribution Webhook, off by default — can forward conversions to a webhook URL you choose (e.g. your own CRM); see the Privacy section.
- Configurable retention. Raw session detail purges on the schedule you set (default 90 days). Daily aggregates live in a local SQLite file forever.
- Bots and admins filtered. Logged-in admins, common bots, and IPs you specify are excluded before anything is recorded — your numbers reflect actual humans.
What it tracks
- Sessions, pageviews, bounce, duration — trended across any date range, with device, browser, OS, and screen-resolution breakdowns
- Traffic sources & UTM tracking — organic, direct, referral, social, paid; UTM parameters captured on first touch and attached to every conversion in the session
- Click, scroll, rage-click & dead-click heatmaps — drawn over a live preview of every page, per-device, no external script
- User journeys with named visitors — every visitor gets a persistent ID and a generated three-part name (e.g. “Roaming Copper Wren”) so long journeys are actually legible across return visits
- Page-to-page flow — see exactly which path your best visitors walk, and where the rest drop off
- Conversion tracking — phone, email, directions, bookings, plus auto-detection of form submissions from Contact Form 7, WPForms, Gravity Forms, Formidable, Ninja Forms, Forminator, and others
- 404 monitor — every missing page visitors hit, with the page that sent them, so you can fix the broken link or add a redirect
- Long-term aggregate storage — daily totals kept indefinitely in a local SQLite file even when raw rows are purged on schedule, so five-year trend lines don’t require holding five years of personal data
AI-readable analytics
Kantan ships with a downloadable AI agent that reads your data through the WordPress REST API using an application password you generate. Ask it questions in plain English — “Which conversions came from organic traffic last month?”, “Who are my five most engaged returning visitors?”, “Draft me a paragraph about this week’s biggest spike.” It reads; you approve. Nothing it sees leaves your terminal unless you ask.
Kantan is also an MCP server: with the MCP Adapter plugin active, one claude mcp add command connects Claude Code (or any MCP client) to 19 read-only, typed analytics tools at /wp-json/kantan/mcp — built on the WordPress Abilities API, no separate credential scheme, nothing writable by an agent.
Built for self-hosting
- Free forever, GPL v2
- No accounts, no signups, no SaaS dashboard
- Runs on any standard WordPress install (6.9+, PHP 7.0+)
- ~2 MB plugin, 5–50 MB/year of data depending on traffic
- Extensible menu system — companion plugins like Kantan SEO add their own pages to the WordPress menu
Privacy
Kantan Analytics is built to collect the minimum needed to give you useful visitor insight, and to keep all of it on your own server.
What is recorded: page views, click positions (as percentages, not pixels), scroll depth, in-session navigation paths, traffic source and referrer, UTM parameters, conversions (form submissions, phone/email/directions clicks), and approximate device, browser, operating system, and screen resolution parsed from the request.
What is not recorded: Kantan does not set cookies and does not store visitor IP addresses. The visitor’s country is resolved from a bundled offline database at the moment of the visit, after which the raw IP is discarded — no geolocation lookup ever leaves your server. Region-level data is optional and requires you to add your own city database. No data is ever transmitted to Kantan or the plugin author.
Country data: country resolution uses the free DB-IP Lite database (“IP Geolocation by DB-IP”, https://db-ip.com/), licensed under CC-BY-4.0.
Optional data sharing (off by default): The Attribution Webhook is the only feature that can send data off your server, and it is disabled until you turn it on. When you enable it and provide a destination URL, Kantan forwards each conversion event — with any UTM/campaign and passthrough parameters you’ve allow-listed — to that endpoint, which is typically your own CRM or marketing-automation tool. You choose whether to enable it and where the data goes; nothing is sent until you do.
Retention: detailed session records are deleted automatically after a configurable window (default 90 days). Beyond that, a local SQLite file keeps daily totals, a summary per random visitor ID (first and last visit, visit counts, first traffic source) and the conversions recorded against it.
Disclosure helper: Kantan registers suggested text with WordPress’ built-in Privacy Policy tool (Settings Privacy), so you can add an accurate disclosure to your site’s policy in one click.
Support
Questions, bugs, or feature requests? Email hello@trykantan.com — or use the Support & Bug Reports card in the dashboard’s Settings page, which pre-fills your plugin, WordPress, and PHP versions plus your site URL so we can help faster. We read every message.
Written by Joobi from the project's own listing. See the source page
3.1.0
- Fixed: conversion totals now leave out bot visits, the same as the list by source, and each conversion counts one time. The total on the Conversions page can be lower than before.
- Fixed: one referrer shows as one row. facebook.com, m.facebook.com and l.facebook.com are now “facebook.com”; Google country sites are “google.com”. The referrer window shows all its addresses.
- Changed: “Ask AI” on each card has a text label. The prompt window links to the Connectors page, and the copied prompt names your site.
- Fixed: the Conversions page shows “AI assistants” (not “Ai”) and translates source names.
3.0.1
- Fixed: the visitor history window did not open (“Could not load this visitor’s history”), and you could not add or remove tags. This fault was in 3.0.0.
- Fixed: a visitor now has one outcome tag at most: Converted, else Engaged, else Bounced. Before, one visit could show “Converted” and “Bounced” together. The Journeys tag filter and the MCP tools use the same rule. Bot visits no longer make a visitor “Converted”.
3.0.0
- New: visitor tags. Each visitor gets automatic tags (traffic source such as Paid, Organic or AI; visit pattern such as New, Returning, Frequent or Dormant; outcome such as Converted or Engaged) and you can add your own tags like “VIP” or “Customer”. Tags show on Journeys, in the visitor history window and in Realtime. Filter Journeys by tag. The MCP server has a tag filter on visitors, a tag list and a tag action.
- New: Kantan now has its own menus in the WordPress sidebar. “Kantan Analytics” has one page for each report. “Kantan SEO” does the same when Kantan SEO is active. Old links to the dashboard tabs still work and go to the new pages.
- New: a Connectors page (Kantan > Connectors). Connect Google Search Console, Claude and other tools from one place. The Claude connection no longer needs the command line.
- New: AI tools can now do more than read. The MCP server has action tools, and there are ready-made prompts for common jobs.
- Changed: every page has the same layout: a title, a short description, the period buttons, then the content. Cards, tables, numbers and empty states look the same on all pages.
- Changed: pages load only the data they show. Most pages run far fewer database queries.
- Fixed: the help tip on the Heatmaps controls did not show.
- Note: Kantan SEO 2.5.0 or newer is needed for the new SEO pages. An older Kantan SEO keeps working with this version.
2.37.2
- Changed: the Connect via MCP card now links the MCP Adapter in the WordPress plugin directory and has Install and Activate buttons. You no longer download a zip from GitHub. The downloadable agent points to the same page. Checked against MCP Adapter 0.7.1.
2.37.1
- Changed: links to the Kantan SEO page now carry UTM tags (utm_source=kantan-analytics and the name of the tab). They tell us which part of the plugin a click came from. They contain no data about your site or your visitors.
2.37.0
- New: an “Is a traffic spike real or bots?” prompt on the Traffic Sources card of the Overview tab. It asks the AI agent to compare a spike with normal days by traffic source, device, country, entry pages and clicks, and to tell you how sure it is. The agent (version 2.2.0) has a matching workflow. It can point you to Excluded date ranges, but it changes nothing without your yes.
- Fixed: wrong or doubled words in the German, French, Spanish, Italian and Japanese translations. For example, “Traffic Sources” read “Fuentes de tráfico de tráfico” in Spanish, and “Entry Pages” was translated as “home pages”.
2.36.4
- Fixed: page titles on Most Visited Pages, entry and exit pages, and scroll depth sometimes showed in another language. When a visitor’s browser translated the page, the translated title was stored, and one translated view could replace the real title. The tracker now sends the title from WordPress, and the lists show the title that most views used, so existing data is correct too.
- New: Translated Views on the Overview tab. See how many views a visitor’s browser translated (Chrome “Translate this page” and others), into which languages, and on which pages. Use it to decide which languages your site needs. Also in GET
/kantan/v1/pagesand the MCP toolget-top-pages. Views recorded before this version count as not translated.
2.36.3
- Fixed: the review request on the Kantan dashboard showed as a broken box. Its background and border covered only the lines of text, and its close button sat over the notice above it. It now shows as a normal WordPress notice. The notice that tells you your IP address is excluded had the same fault, and is fixed too.
- Fixed: notices from WordPress and other plugins showed in the narrow column above the Kantan sidebar. They now show across the top of the page, above the dashboard.
2.36.2
- Fixed: the AEO scan on the SEO tab now reads all the JSON-LD on a page, including
@graphblocks and@typelists, so BlogPosting and other Article types count as Article. The entity check reads the first real paragraph after the title instead of a byline, and also accepts the names in your Organization schema. The answer length check counts characters, not bytes. - New: GET
/kantan/v1/crawlersand the MCP toolget-ai-crawlerstakecrawler,type,page,sinceanduntilfilters.include_hitsreturns the individual hits, newest first, withlimitandoffset. Now you can see which pages ChatGPT fetched before a lead arrived. - New: when your own IP address is excluded from tracking, the Kantan dashboard tells you. Tracking requests from an excluded address now answer
"recorded": falsewith the reason, instead of a plain success.
2.36.1
- Fixed: a bot that runs a real browser with a square screen (for example 1366×1366) counted as real visits. It reads one page for about 5 seconds, so the bot filter missed it, and the Devices report showed it as Laptop. Square screens of 1024 or more now count as bots, and the Devices report shows them as Unknown. No laptop, monitor or tablet has a square screen at that size.
- Fixed: the bot filter now also applies to the Realtime view, to the session list of each visitor on the Journeys tab, and to the highest bounce page recommendation.
- Fixed: the daily archive counted bot pageviews in its pageview totals. Days archived after this update leave them out.
2.36.0
- New: a “New vs Returning Visits” card on the Overview tab. It compares first visits with return visits: visits and share, bounce rate, average duration and conversion rate, and shows how many new visitors came in the period.
- New: a New / Returning filter on the Journeys tab. It applies to the visitor profiles, the page transitions and the entry and exit pages. Each session in a profile now shows “First visit” or “Return visit”.
- New: the REST API and the MCP tools accept
visit=neworvisit=returningon journeys and visitor profiles, and the overview returns the new fields. - Fixed: a visitor who came back after their old visits were deleted by the data retention setting (90 days by default) counted as new. With a 90-day period, almost every visitor counted as new. Kantan now also uses the time saved in the visitor ID.
- Fixed: “First seen” on a visitor profile showed the first visit in the selected period. It now shows the first visit ever.
2.35.1
- Fixed: on themes that mark the content with
role="main"and have no<main>tag, the AI answer readiness scan on the SEO tab read only the first few lines of each page. It missed the headings, questions and answers below them. The scan now reads the whole content area. Run the scan again to update your scores.
2.35.0
- New: SEO tab. It shows the visits from search engines, the conversions they made, and their estimated $ value for each landing page. You set the value of each conversion type on the tab.
- New: AI answer readiness scan on the SEO tab. It reads each published page and post the way an AI crawler does, gives a score out of 100, and lists the pages to improve first. It was part of Kantan SEO before.
- New: the SEO tab shows a sample of the Kantan SEO Keywords tab. The tab is not shown when Kantan SEO is active, and Kantan SEO uses the values and scan results from it.
2.34.0
- New: 404 Monitor tab. It lists the pages visitors asked for that do not exist, with the page that sent them. “Your own link” marks a broken link on your site, with a link to the page to fix. Bots and logged-in editors are not counted, and vulnerability scans (.php, .env and backup files) are counted but not listed. No IP address or user agent is stored.
- New: MCP tool
get-404sand REST routeGET /kantan/v1/404s. - New: a modal opened from another modal now shows on top of it as a stack, and closing it goes back to the one below.
- Fixed: a click on an email or phone link counted as two conversions when any conversion link was set in Settings. Earlier double counts stay in the data.
- Fixed: MCP clients rejected the results of
get-analytics-overview,get-traffic-sourcesandget-conversions, because counts were sent as text. They are now numbers.
2.33.1
- Faster: the tracker is now one minified file of about 4 KB (gzipped). Before, it was three files of about 17 KB. It loads with
defer. - Faster: the video tracker loads only on pages that have a video, including players that open later in a popup. It adds about 4 KB.
- Faster: a page in a background tab no longer sends a report every 30 seconds. It reports when it is hidden and again when the visitor comes back.
- Fixed: Realtime no longer shows a tab that is open in the background as a live visitor.
- Faster: the server looks up the visitor’s country once for each visit, not on every report.
- The readable source of the minified files is in
assets/tracking.jsandassets/js/.
2.33.0
- Fixed: Kantan now stores every time in UTC. Before, it used three clocks: the database server’s time zone for most data, UTC for clicks and date windows, and the WordPress time zone for page exits. On a server that is not set to UTC, date windows were off by hours and daily charts followed the server’s day.
- Changed: daily charts, the nightly archive and excluded date ranges now follow the time zone in Settings General, including daylight-saving changes. If it still says UTC, set it to your city.
- Changed: times on the dashboard show in your site’s time zone. The REST API and the MCP server return UTC.
- Data from earlier versions is converted to UTC once after the update, in small batches.
2.32.0
- Fixed: Top Pages now counts page views. It used to count each visit once, on the last page the visitor opened, so the home page and other pages that visitors pass through showed too few views.
- Fixed: visit time now covers the whole visit. It used to count only the time on the last page.
- Fixed: a real visit is no longer removed as a bot when the browser does not send its exit report. The Instagram and Facebook in-app browsers often do not send it. The tracker now also reports at 5 seconds, and on
pagehide, which iOS Safari and in-app browsers send more reliably. - Fixed: each visit now keeps the page where it started. The landing pages for a referrer, the page named in the bounce-rate recommendation, and the page bounce rate in Kantan SEO now use that page, not the last one.
- The tracker no longer listens for
beforeunload, so Firefox can keep your pages in its back/forward cache. - After this update, Top Pages and visit times are higher than before. Kantan does not recalculate data from before the update.
2.31.3
- Changed: the request for a WordPress.org review is now a standard notice at the top of the Kantan screen, not a card on the Settings tab. It appears once your site has tracked 100 visitors over at least 14 days (it was 500), only on Kantan’s own screen, and only to administrators. Close it once and it does not come back.
- Tested with WordPress 7.1.
2.31.2
- Security: visitor IDs sent by the tracker are now checked, so a crafted ID can no longer change a request made from your dashboard. Bad IDs that are already stored are removed on upgrade.
- Security: every tracking endpoint (visits, clicks, campaign tags and video) now has a flood limit, set well above real traffic. The limits use fixed time windows, so a busy shared network such as an office is not blocked by mistake.
- Security: behind a proxy, the visitor’s IP now comes from the entry that the proxy added. A visitor can no longer choose an IP to get around IP exclusions or the flood limits.
- Security: the attribution webhook only sends to public web addresses.
- Security: the Heatmaps preview only loads public pages of your site.
- The downloadable AI agent now asks you before it installs an update, and it treats tracked text (page titles, referrers, visitor names) as data, never as instructions. Agents that are already installed get this version at their next update check.
- Read-only dashboard viewers can see the Settings tab again, so the AI agent download works for them. Owner-only details stay hidden: excluded IPs, notes on excluded date ranges, CRM passthrough IDs and version details.
- Privacy: AI-crawler hits no longer store IP addresses, and the ones already stored are removed. The suggested privacy-policy text now lists everything that is kept after the retention window.
- The analytics database folder is now protected on Apache 2.4 as well as Apache 2.2.
- One-time data updates no longer run during visitor requests, and the page-address cleanup now always finishes.
- Very large
limitanddaysvalues on the REST API are reduced to safe maximums, and only administrators and dashboard viewers can connect to the MCP server.
2.31.1
- Security: conversion tracking now filters bots and caps how many conversions one visitor or one session can record. This stops a script from flooding your conversion data — and, if you use the attribution webhook, your CRM.
- Security: the Settings tab is now shown to administrators only. Read-only dashboard viewers no longer see excluded IP addresses or conversion links.
2.31.0
- New: once the plugin has tracked 500 visitors on your site, the Settings tab asks whether you would like to leave a review on WordPress.org. It appears on that one tab only — never as an admin notice, never on the dashboard, and never in your way. Dismiss it and it is gone permanently. A support link sits beside it, so if something is wrong there is somewhere better to go than the review form.
2.30.1
- Listing only: clearer plugin title and description on WordPress.org, and directory tags that match what the plugin actually does best — cookieless tracking, self-hosted storage, heatmaps and scroll depth. No functional changes; nothing in your install behaves differently.
2.30.0
- New: Heatmaps tab. Click maps drawn over a live preview of the actual page — pick any page with click data, switch between desktop, tablet and mobile, and see what gets clicked, element by element. Clicks are anchored to the elements themselves, so a button tapped on a phone lights up in the right place on the desktop preview too.
- New: rage-click detection. Rapid repeated clicks in one spot — the classic “why isn’t this working” signal — get their own map layer, so you can find broken links and unresponsive elements before visitors give up.
- New: dead-click detection. Clicks on things that aren’t interactive get flagged and mapped, and the recommendations engine now names the exact element and page visitors keep trying to click.
- New: scroll maps. See how far down each page visitors actually get, as a color overlay on the page itself with depth lines and the average fold marked.
- New: the agent can see friction now — rage-click and dead-click totals (and the worst offenders) are included in the interactions data over REST and MCP.
- Improved: clicks recorded before this update (which lack element and device detail) are re-anchored onto the element with the same label where possible, their device is estimated from the visitor’s screen size so they still appear under the device filters, and the Heatmaps tab shows a temporary notice explaining why older click maps can look offset. The notice retires by itself after 90 days.
- Improved: click batches are stored in one query instead of one per click, and clicks from mobile visitors are no longer undercounted when a tab closes without warning.
2.29.0
- Fixed: bot filtering now applies to every metric. It was only reaching your visit count, bounce rate and duration — device breakdown, visitor counts, top pages, journeys and campaigns were all still counting bots. That’s why the same 30 days could report 29 visits and 78 device sessions. All figures now describe the same set of visitors.
- Fixed: bot detection now catches two kinds it used to miss — sessions that view several pages while accruing no time at all (these never bounce, so the old rule never saw them, yet they dominate the journey and page-flow reports), and traffic reporting an 800×600 viewport, which is the headless-browser default rather than a real screen.
- Fixed: 800×600 traffic is no longer counted as a tablet. If your tablet segment showed unusually high bounce and short visits, this was why.
- New: exclude specific date ranges from every metric, under Settings. For the days no rule can sensibly catch — a load test, a migration crawl, a scraper that browsed like a reader. One such day can outweigh months of real traffic in your baselines.
- New: email, paid and campaign traffic sources. A visit tagged
utm_medium=emailwas previously reported as direct, because email clicks arrive with no referrer. Any visit carrying autm_mediumis now attributed to it, for the whole visit rather than just the landing page. - Fixed: pages no longer split across multiple rows because of email and ad tracking parameters. Mautic’s
ct, HubSpot’s_hsenc/_hsmiand newer ad click ids are now stripped, and cleanup also runs on the server so it works even when a cached script misses it. E
Follow this listing's changes (Atom feed)