Self-hosted privacy analytics

Updated Nov 27, 2026ChatGPT and Google AI Mode

Brands AI mentions

Mention rate, on ChatGPT and Google AI Mode
  • MatomoChatGPTGoogle AI Mode
  • Plausible AnalyticsChatGPTGoogle AI Mode
  • PostHogChatGPTGoogle AI Mode
  • UmamiChatGPTGoogle AI Mode
  • OpenPanelChatGPTGoogle AI Mode

What decides this topic

Buying criteria from head-to-head AI comparisons

Questions and answers

  • ChatGPTNov 15, 2026

    1. 1Umami
    2. 2Matomo
    3. 3Plausible Analytics
    4. 4GoatCounter
    5. 5PostHog
    6. 6PostgreSQL

    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

    • Umami - Features, Pricing & Alternatives 2026 - NewMetrics

    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 ·


    • LGPD: Demystifying Brazil’s New Data Protection Law - Analytics Platform - Matomo

    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 ·


    • Plausible: Lightweight privacy-friendly web analytics tool

    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 ·


    • How to add GoatCounter Analytics to your Hugo website · ./robb.sh

    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 ·


    • PostHog: The open source product OS | Product Hunt

    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

    ToolEase of hostingAnalytics depthBest use
    UmamiEasyMedium–HighBusiness websites
    MatomoModerateVery highGA replacement
    PlausibleModerateMediumPrivacy-first sites
    GoatCounterVery easyBasicBlogs and small sites
    PostHogDifficultVery highSaaS 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
    • 10 Open-Source Google Analytics Alternatives Worth Self-Hosting in 2025

    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

    Google AI ModeNov 15, 2026

    1. 1Matomo
    2. 2Plausible Analytics
    3. 3PostHog
    4. 4GoAccess

    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

    1. 1Matomo
    2. 2Umami
    3. 3PostHog
    4. 4Plausible Analytics

    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:

    ToolManaged/cloudSelf-hostedRetention controlsDeletion workflowsData exportContractual privacy terms
    MatomoYesYesStrong — configurable raw/report retentionStrong — visitor/data deletion toolsYesYes for Cloud — DPA
    PlausibleYesYes, Community EditionYes — hosted plans have defined retention; self-host gives infrastructure controlYes — site/account deletionYes — CSV/API; raw exports on EnterpriseYes — DPA
    UmamiYesYesYes, particularly with self-hosting where you control the database/lifecycleYes/self-host configurableYes — full Cloud exportCloud terms/DPA should be reviewed for your jurisdiction
    PostHogYesLimited/technical self-hostingYes, but plan-dependent in CloudStrong — person/project/org deletion and API workflowsYesYes — 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.

    Google AI ModeSep 23, 2026

    1. 1Matomo
    2. 2PostHog
    3. 3OpenPanel
    4. 4Umami
    5. 5Plausible Analytics

    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:

    1. 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.
    2. 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.
    3. 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.

Since Jul 21Data through Nov 27, 2026Based on 49 AI answers

How we measure
For agents: this page as Markdown, 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

Reuse: Figures and tables on this page are free to republish with attribution: a link to https://parse.gl/topics/privacy-focused-analytics-tools-with-data-retention-and-self-hosting beside them. A standard followed link (dofollow) is preferred.

Read and search

Every brand's share on this topic, with 95% ranges: GET agent.parse.gl/v1/tools/query_metrics?args=%7B%22measures%22%3A%5B%22share_named%22%5D%2C%22by%22%3A%5B%22brand%22%5D%2C%22filter%22%3A%7B%22topic%22%3A%5B%22top_6db34d61-901b-4389-ba8a-fc71c76d9fca%22%5D%7D%7D
Search the index: GET parse.gl/api/public/search?q=<words>

Connect

Connect an assistant: agent.parse.gl/mcp
CLI check: npx -y parse-gl check <domain>

An agent can save work before signup: POST https://agent.parse.gl/v1/workspaces

What it costs

No account: Public figures and up to 5 examples per list, about 120 brands a day per address.
Free account: $2 verified-email starter credits, 90-day Parse Index reads, your brand's first check (20 buyer questions), and a free weekly check.
Prepaid credits (from $20): Exports, deeper search results, live checks, verified contacts, and daily tracking ($12 a month).
Live checks: $0.01 per standard check/live page/judgment; $0.05 per frontier check (Gemini, Claude) or verified contact.
Full public answers and pages: 25 free per day, then $0.01 each.
Public answers older than 90 days: $0.01 each the first time your workspace counts or lists one, then yours.