Self-hosted privacy analytics
Brands AI mentions
Also mentioned rarely: Google Analytics, GoatCounter, Piwik PRO, Fathom Analytics, Simple Analytics, Swetrix, Matomo Cloud, Ackee, GoAccess, PostgreSQL, Mixpanel, OpenObserve
- MatomoChatGPTChatGPT 100%Google AI ModeGoogle AI Mode 100%
- Plausible AnalyticsChatGPTChatGPT 100%Google AI ModeGoogle AI Mode 96%
- PostHogChatGPTChatGPT 96%Google AI ModeGoogle AI Mode 96%
- UmamiChatGPTChatGPT 92%Google AI ModeGoogle AI Mode 58%
- OpenPanelChatGPTChatGPT 16%Google AI ModeGoogle AI Mode 21%
Questions and answers
ChatGPTNov 15, 2026
If your priority is tracking website visitors while keeping all analytics data on infrastructure you control, I'd shortlist Umami, Matomo, and Plausible.
My initial recommendation is Umami for most websites. It's lightweight, open-source, privacy-focused, and considerably simpler to operate than a full Google Analytics replacement.
Here are the options I'd consider.
Best self-hosted analytics alternatives
1. Umami
(Best overall recommendation)
- Lightweight visitor analytics.
- Pageviews, visitors, referrers, devices and locations.
- Custom events and campaign tracking.
- Cookieless tracking.
- MIT license.
Website: umami.is ·
2. Matomo
(Best Google Analytics replacement)
- Comprehensive visitor and traffic reports.
- Goals, ecommerce and campaign analytics.
- Segmentation and advanced reporting.
- Tag manager and extensibility.
- GPL license.
Website: matomo.org ·
3. Plausible Analytics
- Clean, minimalist dashboard.
- Visitors, pageviews, sources and conversions.
- Lightweight tracking script.
- Cookieless by default.
- AGPL license; Community Edition can be self-hosted.
Website: plausible.io ·
4. GoatCounter
- Extremely lightweight.
- Basic pageview and visitor statistics.
- Minimal tracking footprint.
- Can run as a single Go binary.
- Great for blogs and smaller websites.
Website: goatcounter.com ·
5. PostHog
- Product and behavioral analytics.
- Event tracking and conversion funnels.
- Session recordings and heatmaps.
- Feature flags and experimentation.
- More resource-intensive to self-host.
Website: posthog.com ·
Quick comparison
Tool Ease of hosting Analytics depth Best use Umami Easy Medium–High Business websites Matomo Moderate Very high GA replacement Plausible Moderate Medium Privacy-first sites GoatCounter Very easy Basic Blogs and small sites PostHog Difficult Very high SaaS and products These are free-to-self-host software options, although server costs and maintenance still apply. Plausible's Community Edition also lacks some features offered by its hosted product.
What I'd deploy
(My pick: Umami)
For a typical website, I'd start with:
- Application: Umami
- Deployment: Docker Compose
- Database: PostgreSQL
- Hosting: Your own VPS or private server
- Tracking: JavaScript tracking script installed on your website
- Dashboard: Private analytics subdomain, such as
analytics.example.com
This gives you a centralized analytics dashboard without sending your visitor analytics to Google Analytics.
One important distinction: self-hosting doesn't automatically guarantee GDPR or other privacy-law compliance. Configure IP anonymization, retention, consent and tracking appropriately for your jurisdiction and use case.
A couple of questions to narrow it down
I'd like to establish what kind of analytics you're looking for before recommending a deployment.
1. What are you primarily tracking?
- A. Standard website traffic (visitors, pageviews, referrals, countries)
- B. Visitor behavior (clicks, events, conversions, funnels)
- C. SaaS/product analytics (user journeys, retention, session recordings)
- D. All of the above
2. Where do you intend to host it?
- A. Docker on a VPS
- B. Home server / self-hosted infrastructure
- C. Kubernetes
- D. Existing Linux server
With those two details, I can recommend the best fit and provide a practical self-hosted architecture, including deployment and database configuration.
Pages cited in this answer 13
- umami.isUmami – Open-Source Web and Product Analytics
- github.comGitHub - umami-software/umami: Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud. · GitHub
- matomo.orgPrivacy-first analytics you can trust - Analytics Platform - Matomo
- github.comGitHub - matomo-org/matomo: Empowering People Ethically 🚀 — Matomo is hiring! Join us → https://matomo.org/jobs Matomo is the leading open-source alternative to Google Analytics, giving you complete control and built-in privacy. Easily collect, visualise, and analyse data from websites & apps. Star us on GitHub ⭐️ – Pull Requests welcome! · GitHub
- plausible.ioPlausible Analytics | Simple, privacy-friendly Google Analytics alternative
- github.comGitHub - plausible/analytics: Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud. · GitHub
- goatcounter.comGoatCounter – open source web analytics
- github.comGitHub - arp242/goatcounter: Easy web analytics. No tracking of personal data. · GitHub
- posthog.comPostHog – Your product’s context layer
- github.comGitHub - PostHog/posthog: :hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP. · GitHub
- bootstrap.buildOpen-Source Web Analytics: 9 Self-Hosted Tools Compared
- posthog.com9 best open source analytics tools for developers and startups - PostHog
- omnifeed.comSelf-hosted web analytics: four Google Analytics alternatives
Google AI ModeNov 15, 2026
Top self-hosted, privacy-first alternatives to standard tools like Google Analytics depend on whether you want a
lightweight dashboard, deep product/event tracking, or zero-JS log analysis:- Matomo (Self-Hosted Community Edition)
- Best for: Feature-parity with Google Analytics (GA-style multi-channel attribution, custom dashboards, goals, ecommerce tracking, heatmaps, and session recordings via plugins).
- Data & Privacy: 100% data ownership, GDPR/CCPA compliant out-of-the-box, optional cookie-free mode, and built-in IP anonymization.
- Setup: PHP/MySQL stack; easy to spin up via Docker.
- Plausible Analytics (Community Edition) [12.2]
- Best for: Simplicity and a clean, lightweight UI [12.2]. The script is tiny (~1 KB), cookie-free, and doesn't require annoying cookie banner pop-ups [12.2].
- Data & Privacy: Zero personal data collected, no IP storage, and fully compliant with privacy laws [12.2].
- Setup: Built with Elixir, Phoenix, and ClickHouse (runs smoothly via Docker) [12.2].
- PostHog (Open-Source / Self-Hosted)
- Best for: All-in-one product analytics, session replays, feature flags, and A/B testing . Ideal if you aren't just tracking pageviews, but building a web app or SaaS.
- Data & Privacy: Open-source core with full self-hosting capabilities so data never leaves your infrastructure.
- Setup: Heavier resource footprint (Docker/Kubernetes recommended).
- GoAccess [12.1]
- Best for: Zero-JavaScript, real-time server log analysis [12.1]. It reads Nginx, Apache, or AWS S3 logs directly without dropping any tracker scripts on visitor browsers [12.1].
- Data & Privacy: Utmost privacy—it doesn’t use cookies or client-side scripts [12.1].
- Setup: Ultra-lightweight; runs right in your terminal or via a simple static HTML dashboard [12.1].
To help narrow down the best fit, tell me:
- What kind of site or app are you running (e.g., a content blog , a SaaS/web app , or an e-commerce store)?
- Do you prefer a lightweight overview or deep event-based tracking?
ChatGPTSep 23, 2026
If you need both managed/cloud and self-hosted deployment, plus explicit controls around retention, deletion, exports, and contractual privacy terms, the strongest candidates I’d put on a procurement shortlist are:
Tool Managed/cloud Self-hosted Retention controls Deletion workflows Data export Contractual privacy terms Matomo Yes Yes Strong — configurable raw/report retention Strong — visitor/data deletion tools Yes Yes for Cloud — DPA Plausible Yes Yes, Community Edition Yes — hosted plans have defined retention; self-host gives infrastructure control Yes — site/account deletion Yes — CSV/API; raw exports on Enterprise Yes — DPA Umami Yes Yes Yes, particularly with self-hosting where you control the database/lifecycle Yes/self-host configurable Yes — full Cloud export Cloud terms/DPA should be reviewed for your jurisdiction PostHog Yes Limited/technical self-hosting Yes, but plan-dependent in Cloud Strong — person/project/org deletion and API workflows Yes Yes — Cloud contractual/privacy documentation Matomo
Matomo is probably the most complete match if governance controls are a major requirement. Its Cloud and On-Premise deployments support configurable retention, and its documentation describes separate retention policies for raw and aggregated data. It also provides tools to find, export, and delete an individual's data.
For Matomo Cloud, the DPA explicitly covers data return/export and deletion on termination: customer data is deleted within 30 days, with encrypted backups potentially retained for up to 60 days for backup integrity. Analytics Platform - Matomo Matomo also explicitly supports moving between Cloud and On-Premise.
One important distinction: On-Premise doesn't come with a Matomo-vendor DPA, because you are operating the processor environment yourself; your infrastructure/subprocessors need their own contractual arrangements.
Plausible
Plausible Analytics has a particularly clean privacy model: its hosted service provides defined retention periods, while Community Edition can be self-hosted so you control infrastructure and retention. Its current plans range from 3 years of retention on Starter to 5+ years on Enterprise, with scheduled raw-event exports available on Enterprise.
Its DPA is unusually explicit about deletion: customers can delete their account/site statistics, and Plausible says the data is permanently deleted without undue delay. Plausible Analytics It also documents CSV export, API access, and deletion.
Good fit: privacy-conscious web analytics where you don't need the depth of a product-analytics platform.
Umami
Umami offers both a fully managed Cloud service and self-hosting of its open-source platform. Its documentation specifically says Cloud data can be exported and self-hosting keeps the data on your own infrastructure. It also advertises full data export rather than merely dashboard summaries.
The main procurement caveat is that the contractual/privacy documentation is less extensive than Matomo or Plausible's, so I'd ask Umami for its current DPA, subprocessors, deletion SLA, backup-retention policy, and termination/export terms before treating it as enterprise-ready.
PostHog
PostHog is different from the others: it's much more oriented toward product analytics, identified users, funnels, retention, session replay, feature flags, and experimentation.
Its Cloud privacy controls include data-location options, preprocessing/redaction, access controls, and deletion. Person deletion can remove associated events and recordings, and organizations/projects can be deleted.
The catch is retention: PostHog's documentation says Cloud event retention is determined by the plan and cannot simply be shortened below the plan's retention period. GitHub So if your requirement is specifically “we set our own maximum retention period and the vendor enforces it”, I'd scrutinize PostHog's plan terms more closely.
Practical shortlist
For the requirements you listed, I'd structure the evaluation this way:
- Matomo — broadest combination of managed + genuinely mature self-hosting + configurable retention/deletion + export + formal DPA.
- Plausible — particularly strong if you want lightweight, privacy-first web analytics and straightforward contractual controls.
- Umami — attractive when self-hosting/data ownership is important and your analytics needs are relatively simple.
- PostHog — strongest when you mean product analytics rather than just website analytics, but its Cloud retention model deserves closer contractual review.
One procurement distinction is important: “self-hosted” and “managed” are not opposites at the software level. You can also have a third-party managed deployment of an open-source product. For a privacy assessment, I'd therefore separately record who operates the infrastructure, who is the processor, where data resides, who controls backups, how deletion propagates to backups, and what happens on contract termination.
If you want, I can turn this into a procurement-style 20–25 criterion comparison covering DPA/SCCs, subprocessor controls, EU/US hosting, configurable retention, DSAR deletion, backup deletion, raw exports, API access, SSO/RBAC, audit logs, and self-hosting maturity.
One important distinction: On-Premise doesn't come with a Matomo-vendor DPA, because you are operating the processor environment yourself; your infrastructure/subprocessors need their own contractual arrangements.
Plausible
Plausible Analytics has a particularly clean privacy model: its hosted service provides defined retention periods, while Community Edition can be self-hosted so you control infrastructure and retention. Its current plans range from 3 years of retention on Starter to 5+ years on Enterprise, with scheduled raw-event exports available on Enterprise.
Its DPA is unusually explicit about deletion: customers can delete their account/site statistics, and Plausible says the data is permanently deleted without undue delay. Plausible Analytics It also documents CSV export, API access, and deletion.
Good fit: privacy-conscious web analytics where you don't need the depth of a product-analytics platform.
Umami
Umami offers both a fully managed Cloud service and self-hosting of its open-source platform. Its documentation specifically says Cloud data can be exported and self-hosting keeps the data on your own infrastructure. It also advertises full data export rather than merely dashboard summaries.
The main procurement caveat is that the contractual/privacy documentation is less extensive than Matomo or Plausible's, so I'd ask Umami for its current DPA, subprocessors, deletion SLA, backup-retention policy, and termination/export terms before treating it as enterprise-ready.
PostHog
PostHog is different from the others: it's much more oriented toward product analytics, identified users, funnels, retention, session replay, feature flags, and experimentation.
Its Cloud privacy controls include data-location options, preprocessing/redaction, access controls, and deletion. Person deletion can remove associated events and recordings, and organizations/projects can be deleted.
The catch is retention: PostHog's documentation says Cloud event retention is determined by the plan and cannot simply be shortened below the plan's retention period. So if your requirement is specifically “we set our own maximum retention period and the vendor enforces it”, I'd scrutinize PostHog's plan terms more closely.
Pages cited in this answer 11
- matomo.orgSet up privacy the right way - Analytics Platform - Matomo
- matomo.orgConfigure Data Retention FAQ - Analytics Platform - Matomo
- matomo.orgMatomo Cloud Data Processing Agreement (DPA) - Matomo Analytics
- matomo.orgCloud-Hosted Matomo - Analytics Platform - Matomo
- matomo.orgCompare Pricing Plans - Matomo Ethical Web Analytics
- matomo.orgIs a Data Processing Agreement (DPA) available for GDPR compliance? FAQ - Analytics Platform - Matomo
- plausible.ioPlausible Analytics | Simple, privacy-friendly Google Analytics alternative
- plausible.ioData Processing Agreement | Plausible Analytics
- plausible.ioHow to choose a privacy-friendly web analytics tool | Plausible Analytics
- umami.isPlatform – Web and Product Analytics – Umami
- github.composthog.com/contents/docs/privacy/data-storage.mdx at master · PostHog/posthog.com · GitHub
Google AI ModeSep 23, 2026
When looking for privacy-focused analytics that give you complete flexibility—supporting both managed (cloud) and self-hosted deployments, granular retention controls, deletion workflows, data exports , and legally binding contractual privacy terms (DPAs) —a few top-tier platforms stand out.
The industry leaders that tick all of these boxes include:
- Matomo
- Deployment: Fully supported via Matomo Cloud (managed) or Matomo On-Premise (self-hosted).
- Retention & Deletion: Offers advanced built-in data anonymization and automated log/raw data purging schedules (e.g., deleting raw tracking logs or aggregated reports older than a set number of days).
- Exports: Supports full data export capabilities for user data requests or migration.
- Contractual Terms: Provides a robust Matomo Cloud DPA (Data Processing Agreement) complying with GDPR and enterprise compliance standards.
- PostHog
- Deployment: Available via PostHog Cloud (managed) or via a robust PostHog Self-Host deployment (Docker/Kubernetes).
- Retention & Deletion: Features project-level data management, organization/project deletion flows, and specific compliance tools for handling "right to be forgotten" requests (deleting specific person profiles, session recordings, and associated distinct IDs).
- Exports: Comprehensive API and data warehouse export mechanisms.
- Contractual Terms: Standard enterprise-ready Data Processing Agreements (DPAs) available for their managed cloud tiers.
- OpenPanel
- Deployment: Available as OpenPanel Cloud (managed on EU infrastructure) or self-hosted via Docker.
- Retention & Deletion: Includes built-in data subject request handling, dashboard-level project data deletion, and specific profile deletion requests.
- Exports: Dedicated Export API to cleanly extract user data.
- Contractual Terms: Cookieless, GDPR/CCPA-oriented posture with infrastructure clarity for compliance.
(Note: Simpler open-source alternatives like Plausible or Umami offer self-hosted and cloud options as well as basic privacy, but lack the deeply granular native deletion workflows, automated raw-log retention interval controls, or formalized enterprise DPA frameworks found in Matomo or PostHog).
If you'd like to narrow this down, tell me:
- Are you leaning toward a managed cloud service or self-hosting on your own infrastructure?
- Do you need advanced product analytics (like session recordings and feature flags ) or just lightweight web traffic metrics?
I can help you select the exact platform configuration that fits your compliance stack.
Pages cited in this answer 8
- matomo.orgMatomo Cloud Data Processing Agreement (DPA) - Matomo Analytics
- clycyo.comThe 7 Best Privacy-Focused Analytics Tools in 2026
- matomo.orgConfigure Data Retention FAQ - Analytics Platform - Matomo
- matomo.orgHow do I delete historical Matomo data? (data retention for old web analytics raw data logs and/or old processed reports) FAQ - Analytics Platform - Matomo
- posthog.comControlling data storage - Docs - PostHog
- posthog.comEvents data retention - Docs - PostHog
- openpanel.devSelf-Hosted Analytics Without DPAs: GDPR, HIPAA, CCPA Guide | OpenPanel Analytics
- matomo.orgChoosing the best self-hosted open-source analytics platform - Analytics Platform - Matomo
Since Jul 21Data through Nov 27, 2026Based on 49 AI answers
For agents: this page as Markdown, https://parse.gl/topics/privacy-focused-analytics-tools-with-data-retention-and-self-hosting.md. JSON, MCP · free for the last 90 days, checks from $0.01
This page
Read and search
Connect
npx -y parse-gl check <domain>Copy the CLI commandAn agent can save work before signup: POST https://agent.parse.gl/v1/workspaces
What it costs
Prices: https://parse.gl/pricing.md
Map of the site: https://parse.gl/llms.txt