Best product and web analytics tools for government and public sector

Government teams shortlisting analytics need to know which open-source option fits their data location, scale and identity needs, and where commercial tools impose retention and export limits. This page compares PostHog, Matomo, Plausible and Umami against Google Analytics and Adobe Analytics, with licenses, editions and the effort to run each.

On this page

Which web analytics tools for government fit which situation

PostHog fits product analytics where the body can work within a license boundary, Matomo fits mature self-hosted web analytics, Plausible and Umami fit lean measurement, and Google Analytics and Adobe Analytics fit where commercial terms are acceptable and retention and export are planned. The open-source options differ mainly in what the license covers and how much your own staff must run. PostHog's MIT core is open, but the ee/ directory and premium features on a self-hosted instance require a PostHog license, and teams that need fully free software are pointed to the posthog-foss repository. Matomo is GPLv3 and its free On-Premise Community edition runs on your own servers. Plausible and Umami keep the footprint small, which suits a body that measures pages and campaigns rather than building product funnels. Each self-hosted option moves patching, backups and scaling onto your team, and that cost is the one most often missed in a public body's review.

Retention and export often decide more than feature lists. Google Analytics 4 standard properties keep user-level and event data for 2 or 14 months, and Analytics 360 adds 26, 38 and 50 month options, so confirm which setting the body needs and whether data goes to BigQuery in time. Standard GA4 properties have a daily BigQuery export limit of 1 million events. Adobe Analytics applies a default 25 month retention policy unless the contract says otherwise, and data past that point can be deleted with no recovery. Before that happens, request a historical export of hit-level data and set up data feeds to storage the body controls. Google states it does not log or store IP addresses from EU, Swiss or UK users, but the body should check that claim against its own legal assessment before relying on it.

Operating effort differs as much as licensing. Plausible Community Edition is a long-term release published twice per year, is community supported only, and gets security fixes only when your team applies the release, so a body with a fixed patch cycle should plan for that. Matomo's requirements grow with traffic: one server with at least 4 CPUs, 8 GB of RAM and 250 GB of SSD covers up to 1 million pageviews a month, and separate app and database servers with 8 CPUs and 16 GB of RAM each are suggested for up to 10 million. PostHog advises moving open-source deployments to PostHog Cloud above about 100k events a month. Confirm identity requirements such as SSO in writing before shortlisting, because Plausible's Community Edition does not include it. No tool here is a certification. Fit depends on where the data is located, which identity requirements apply, traffic volume, and what the body must keep and export.

Which web analytics tool fits each government scenario

This table matches five common government scenarios to the analytics tool that usually fits best, with the condition that makes each fit hold. Treat each row as a starting point for the shortlist and check the last column with the vendor before you commit. Where a requirement such as single sign-on is not confirmed for an open-source edition, the row says so.

ScenarioBest fitWhy it fits and the conditionConfirm with the vendor
Public body measuring a public website with modest traffic and minimal personal dataUmami, self-hostedMIT licensed, cookieless, with a prebuilt Docker image. Fits when page and campaign counts are enough.Whether a cookieless setup changes your privacy notice or consent duties, and which PostgreSQL version your edition supports.
Team needing funnels, session data and feature flags on its own infrastructurePostHog, self-hostedCombines product analytics, session replay and feature flags. Holds while volume stays near the README's 100k events a month guidance.Which features you need sit under the ee directory and need a PostHog license; new paid self-host Kubernetes deployments are unsupported.
Body that must keep all data in its own infrastructure and needs single sign-on on every toolSelf-hosted Matomo or PostHog, after an SSO checkMatomo On-Premise and self-hosted PostHog run in your own infrastructure. Plausible Community Edition lists single sign-on as missing, so it drops out.Whether SSO is in the free build or a paid tier, and which protocols it supports for admin and end-user access.
Team with an existing Google Analytics estateGoogle Analytics 4, with a planned migration pathKeeps existing tagging and reports. Retention is 2 or 14 months on standard properties, so export history before migrating.Whether Google's regional data handling meets your residency rules, and whether daily volume fits the 1 million event BigQuery limit.
Organization already running Adobe AnalyticsAdobe Analytics, with a retention reviewStays the simplest path while contracts and reports depend on it. Default retention is 25 months unless the contract says otherwise.Your contracted retention term, whether hit-level data feeds reach your cloud storage, and a historical export before any deletion.

What each web analytics option is and the license it ships under

Each card names the license a product ships under and the edition a team would actually run. PostHog, Matomo, Plausible and Umami can be self-hosted under open-source licenses, but their terms differ on modification and on paid features. Google Analytics 4 and Adobe Analytics are proprietary, so their terms come from the vendor agreement.

PostHog: MIT core, separate ee/ license

The MIT license covers PostHog's repository except the ee/ directory, which has a separate license and is not OSI open source. A self-hosted team typically runs the free Docker Compose hobby deployment under MIT, but the README says premium ee/ features on a self-hosted instance need a PostHog license. For fully free software, use posthog-foss, which strips proprietary code. The README says open-source deployments should scale to about 100k events per month. Its breadth across web analytics, session replay and feature flags matters when you want one tool. Confirm your required features sit outside ee/.

PostHog license file

Matomo: GPLv3 Community edition

Matomo's repository is licensed under GPLv3, and the On-Premise Community edition is free with unlimited users and hits, with forum support only. This is the edition a self-hosting team would run, so the team owns upgrades, backups and any paid support. Matomo 5 runs on PHP 8 with MySQL 5.5 or later or MariaDB, while Matomo 6.0.0 needs PHP 8.1 or newer with MySQL 8.0 or newer or MariaDB 10.6 or newer. GPLv3 matters most when you plan to modify the code and redistribute changes. Paid Matomo Cloud plans, hosted in Frankfurt, Germany, are cloud services and are not OSI open source.

Matomo license file

Plausible: AGPLv3 Community Edition

Plausible Community Edition is open source under AGPLv3 or any later version, which carries source-sharing duties if you modify it and offer it as a network service. The edition a team would run is the Community Edition, a long-term release published twice per year with community support only. It gets security fixes only when the operator applies the release, while Plausible Cloud ships updates multiple times per week. Single sign-on is missing from Community Edition, which matters for government identity requirements. Its strength is a small footprint: Docker, Docker Compose and at least 2 GB of RAM.

Umami: MIT with a Docker image

Umami is MIT licensed, and a self-hosting team usually runs the prebuilt Docker image or a Docker Compose file that starts Umami with a bundled PostgreSQL database. A source install needs Node.js 18.18 or newer, and Umami supports PostgreSQL from version 12.14. Umami describes itself as working without cookies or cross-site tracking, a claim to test against your own consent and privacy review. Its MIT license and short stack matter when you want to modify the code without copyleft obligations. Confirm with Umami which features and support terms apply to your deployment.

Google Analytics 4: proprietary cloud service

Google Analytics 4 is proprietary commercial software that runs only as a Google-hosted service, so it is not OSI open source. Standard properties keep user-level and event data for 2 or 14 months, and Analytics 360 adds longer options, though the setting affects only explorations and funnel reports. Google operates the infrastructure, so review its data processing terms and regional settings with Google before a security review. Its main appeal is that no internal team must run the platform, but data sits in Google's cloud. Standard BigQuery export is capped at 1 million events per day.

Adobe Analytics: proprietary enterprise contract

Adobe Analytics is proprietary commercial software sold under a contract, so it is not OSI open source. Adobe's default retention is 25 months unless the contract states otherwise, and extensions are bought in one-year increments up to 10 years and 1 month. Adobe says it can provide a historical export of raw, hit-level data before deletion, and data feeds deliver raw data to Amazon S3, Google Cloud Platform or Azure buckets. Retention terms sit in the contract, so review them before you sign. Its strength is depth for enterprises already running the Adobe stack, which matters when marketing and analytics share one suite.

How the web analytics options compare on capabilities and limits

This table compares six web and product analytics options on license and editions, hosting, identity, data retention and export, and release and switching paths. Read each row against your data residency rules, your identity provider and the reporting window you must keep. The main takeaway: self-hosted options keep retention and access under your control but shift patching and login work to your team, while Google Analytics and Adobe Analytics bring fixed retention windows and export limits to plan around.

OptionLicense, editions and hostingIdentity, retention and exportRelease cadence and switching path
PostHogMIT for the core, separate license for ee/ directory. Premium ee features need a PostHog license. Recommended server: 4 vCPU, 16 GB RAM.Confirm SSO, role-based access and retention settings for the self-hosted build with PostHog.Recommended migration to PostHog Cloud above about 100k events a month. Confirm release cadence for your version with PostHog.
MatomoGPLv3. Free On-Premise Community with forum support. One server (4 CPUs, 8 GB RAM, 250 GB SSD) for 1 million pageviews a month.Confirm SSO and directory login for your version with Matomo. Retention and export depend on your own database and backup setup.5.14.1 is latest stable, 6.0.0 in beta needs PHP 8.1 and MySQL 8.0 or MariaDB 10.6. Google Analytics Importer plugin exists; confirm coverage.
Plausible Community EditionAGPLv3 or later. Community Edition lacks SSO, Sites API, Looker Studio connector and advanced bot filtering. Needs Docker, Compose and at least 2 GB RAM.Community Edition has no SSO; plan login controls at the perimeter. Confirm retention and export with Plausible.Two long-term releases a year, community support only. Security fixes need you to apply them; v3.2.1 landed May 15, 2026.
UmamiMIT licensed. Prebuilt Docker image and Compose file with bundled PostgreSQL. Needs PostgreSQL 12.14 or newer; source install needs Node.js 18.18 or newer.Confirm SSO, user roles, and data retention and export options for your release.v3.4.0 released September 17, 2026, after v3.3.1 and v3.3.0. Confirm the upgrade path and support window for your deployment.
Google Analytics 4Commercial Google service hosted by Google. Standard and 360 properties have different retention and API quota limits.Standard retention is 2 or 14 months; 360 adds 26, 38, 50. Confirm identity controls for your Google tenant.Plan any move around the standard property limit of 1 million BigQuery export events a day. Universal Analytics access ended in July 2024.
Adobe AnalyticsCommercial Adobe product licensed by contract. Confirm editions, hosting region and paid add-ons with Adobe.Default retention 25 months; longer needs paid extensions. Data feeds export raw hits to S3, GCP or Azure. Confirm identity controls.Confirm release cadence and support terms with Adobe. Plan any switch around the hit-level export before deletion.

What a government security review will ask about web analytics

Reviewers start with where collected data is processed and stored, and whether IP addresses are kept. For a self-hosted tool such as PostHog, Matomo, Plausible or Umami, the answer is the server and database you run, so the review covers the hosting location, the database holding event rows, backups, and any third-party components pulled in by container images or plugins. For Google Analytics, Google states that it does not log or store IP addresses from EU, Swiss or UK users, that it collects data from devices in those regions on servers based there before forwarding it for processing, and that properties can disable granular location and device data per region. Ask the reviewer whether those controls meet the body's residency and minimization rules, and record the setting as configured on each property as evidence.

Retention and export come next. Google Analytics 4 standard properties keep user-level and event data for 2 or 14 months, and Analytics 360 adds 26, 38 and 50 month options. Google states that this setting applies only to explorations and funnel reports, so standard aggregated reports fall outside it, and the records schedule must be checked against both. Adobe Analytics has a default retention of 25 months unless the contract says otherwise, after which data may be deleted with no option for recovery. Ask for a historical raw export before deletion, and confirm the export format and destination with the body's records officer. For self-hosted tools, retention is whatever your purge job enforces, so the reviewer will expect the job, its schedule and a tested restore procedure.

Administrative access and patch speed decide much of the rest. Ask who holds super-admin rights in each tool, whether single sign-on is enforced, and how changes to admin settings are logged and kept. Plausible's self-hosted page lists single sign-on among the features missing from its Community Edition, and that edition gets security fixes only when the operator applies a release, with long-term releases published twice per year, so the operator owns the patch clock. DeployOpen can plan, harden, document and test these controls and prepare the evidence pack, but it does not issue audit reports or certifications. Independent auditors and certification bodies do that work. Confirm any accreditation or regional approval requirement with your own authority, and do not infer it from a tool's marketing.

How to narrow the options by data location, scale and identity

The diagram starts with one question: must analytics data stay in your own infrastructure? If not, hosted options such as Google Analytics or Adobe Analytics stay on the list, and their data location terms need checking. If so, split by need: product analytics (funnels, session data, feature flags) or page measurement only. PostHog's README says open-source deployments should scale to about 100k events a month, so higher volume needs a separate sizing conversation. For page measurement, Matomo's requirements FAQ sizes one server for up to 1 million pageviews a month and split app and database servers for up to 10 million. Last, check whether single sign on is mandatory, because PostHog's premium ee features need a license and Plausible's Community Edition lacks single sign on.

Decision path from data location to event volume and single sign on.

How to choose and pilot a web analytics tool in a public body

This sequence moves from records and data questions to a fixed written build scope, so each platform is tested against the public body's own retention, hosting and access rules before anyone commits. The output is a documented pilot result and a scope that procurement, security and the business owner can all sign. The steps run in order because each later check depends on the answers from the earlier ones.

  1. Inventory the data and fix retention

    Your records or information management team lists every data type the tool would collect, including page URLs, referrers, event data and any user identifiers, and maps each one to its retention period in the records schedule. Ask the vendor which settings control retention for each data type and whether deletion can be scheduled per property. Google's standard GA4 retention options (2 or 14 months for user-level and event data) and Adobe's 25-month default may fall short of a longer schedule, so check this before the pilot. The step is done when a signed-off inventory gives one retention value per data type.

  2. Confirm hosting location and processor terms

    Procurement and legal review each hosting option, the vendor's processor terms and its sub-processor list, and request every answer in writing. For self-hosted builds, confirm where your own servers, databases and backups will sit. For vendor-hosted options, ask where event data is stored and processed: Matomo states that Matomo Cloud data is stored in Frankfurt, Germany, and Google explains how it handles data from EU, Swiss and UK devices before forwarding it for processing. The step is done when the written answers are on file and match your residency rules.

  3. List required features and check editions

    Write down the features the public body needs, such as single sign-on, role-based access, audit logs, export APIs, reporting connectors and bot filtering, then check which edition or plugin includes each one. PostHog's README says premium features in its ee/ directory need a PostHog license on a self-hosted instance, while the rest of its repository is MIT licensed. Plausible Community Edition omits single sign-on, the Sites API, the Looker Studio connector and advanced bot filtering. For Matomo plugins such as Heatmap and Session Recording, confirm the license and price with the vendor. The step is done when every required feature maps to a named edition or plugin.

  4. Size the deployment against vendor notes

    Estimate monthly pageviews or events across the public body's sites, then compare the figure with each vendor's published sizing. Matomo's requirements FAQ describes a single server with 4 CPUs, 8 GB of RAM and 250 GB of SSD for up to 1 million pageviews a month, and separate app and database servers with 8 CPUs and 16 GB of RAM each for up to 10 million. PostHog's self-host docs recommend a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage for its hobby deployment, and its README suggests moving to PostHog Cloud above about 100k events a month. Ask whether the paid self-hosted product still supports your Kubernetes setup. The step is done when the platform team approves the sizing sheet and the vendor confirms the figures apply to the version you will run.

  5. Run a pilot on a non-production property

    Install the tool on a non-production site or test property, add one tag or script to one site, and collect data for the test period you agreed. Confirm with the records team what the pilot may hold, and use a test site that carries no personal data unless that has been approved. Ask the vendor for the install guide and release notes for the exact version you plan to run, and record every setting you change. The step is done when the pilot shows correct page and event counts against a known test path and the team has a complete change log.

  6. Test export, deletion and access removal

    Run three checks on the pilot data. First, export the raw data in the format your reporting team will need. Second, delete a test set of records and confirm they leave reports and backups on the schedule the vendor states. Third, remove a test user and confirm that user's access ends at once. Ask Adobe about data feeds and historical hit-level export before any deletion, and note that Google's standard GA4 BigQuery export is capped at 1 million events a day. The step is done when each check has a written result, a named owner, and any gap logged as a scope item.

  7. Agree a fixed written scope for build

    Turn the pilot results into a written scope that lists the hosting model, the chosen editions and plugins, integrations, identity and logging setup, and handover and support terms. Request a fixed-scope quote from DeployOpen or any other implementation partner, with deliverables and timelines agreed in writing before work starts. Ask the vendor separately to confirm in writing whether any in-scope feature needs a paid license. The step is done when procurement, security and the business owner sign the same document and every open item has an owner.

What running each web analytics tool takes in effort and cost

Self-hosting PostHog is the heaviest setup of the four open-source options here. The free Docker Compose (hobby) deployment is MIT licensed and installs with a deploy-hobby script, but PostHog recommends a server with 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Premium features in the ee directory need a PostHog license, and teams that need fully free software are pointed to the posthog-foss repository.

  • Hosting: You pay the cloud provider or data center for a server at or above the recommended size, every month the instance runs.
  • Setup: One-time work covers the hobby install, network placement, backups and documenting the stack for your assessor.
  • License fees: Any ee feature your program depends on is a paid PostHog license, so confirm the feature list before you commit.
  • Upgrades and patching: Your team or partner applies every upgrade. New Kubernetes deployments of the paid self-hosted product are no longer supported, which narrows the platform choice for a shared cluster.
  • Cost drivers: Event volume drives storage and server size. The README says open-source deployments should scale to about 100k events per month, above which PostHog recommends its cloud service.

Check your expected event volume against that 100k guidance and confirm in writing which features need a license before you size the server. See the PostHog self-host documentation for current sizing.

Questions buyers ask before hiring help with web analytics

What does self-hosted web analytics cost to run in government?

Software licenses are often the smallest line, because the community editions here are free to use, so the cost sits in people, infrastructure and support. Matomo's On-Premise Community edition is free forever with unlimited users and hits, with forum support only, according to its pricing page. PostHog's free hobby deployment is MIT-licensed, but its README says open-source deployments should scale to about 100k events a month before moving to PostHog Cloud, and premium features in the ee directory need a PostHog license. Recurring costs include servers and storage in your own infrastructure, backups, upgrades, staff time and any retainer. One-time costs include the initial build, SSO integration, data migration and security testing. Drivers include traffic volume, number of sites, hosting model and how much assurance your reviewers require. Ask for a quote built from a written scope that prices each component separately.

How long does a web analytics pilot or rollout take?

The length is set in the written scope, which is agreed before work starts, so no fixed duration applies in advance. The main drivers are the number of sites and properties, how many event sources and historical datasets need migrating, the hosting target (your cloud account, data center or air-gapped network), whether single sign-on and access control must be integrated with your identity provider, and how much review your security and compliance teams require before go-live. Your own approval cycles and change windows also set the pace. Ask for a written plan with separate phases for build, security testing, migration, handover and any pilot period, each with the dependencies it relies on. Check that plan against your change calendar before you accept it, and agree in writing what counts as the end of the pilot.

What does the work need from our own team?

Expect to supply access, decisions and named owners, because the platform runs in your environment and the work depends on it. Typical needs include:

  • an account in your cloud, data center or network with rights to create servers, databases, DNS records and certificates
  • an identity administrator who can register the platform with your single sign-on provider, if SSO is in scope
  • a business owner who signs off reporting requirements, consent settings and retention periods
  • a privacy or legal reviewer who signs off how personal data is handled
  • staff who will add tracking to your websites and applications after go-live

Only your team can decide which data is collected and who may see it. Name these people in the scope so the work does not stall while access is requested.

Can our team run the tool alone after launch?

It can, if your team keeps the skills to run the stack without outside help, and the stack differs by tool. Plausible Community Edition needs Docker and Docker Compose, a CPU with SSE 4.2 or NEON support and at least 2 GB of RAM, and it receives security fixes only when you apply the release. Matomo runs on PHP behind a web server such as Apache or Nginx, with MySQL or MariaDB. Its requirements FAQ lists PHP 8.1 or newer and MySQL 8.0 or newer or MariaDB 10.6 or newer for Matomo 6.0.0, which is in beta. Keep these skills in-house: server or container operations, database backup and restore testing, applying upgrades, reading release notes, access reviews and incident response. Contract out what you cannot staff, such as periodic security testing, and require runbooks in the handover.

Does DeployOpen issue a certification or audit report for our analytics stack?

No. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those, and they assess the controls that operate in your environment. What DeployOpen does is prepare systems, controls and evidence for compliance assessments, such as configuration records, access settings, audit logging, backup and restore evidence and data handling documentation. Which framework applies to your body, and what proof it requires, is a question for your compliance lead and the assessor you engage. Ask any implementation partner for a written list of the evidence each control will produce, the owner of each item, and where the records will be kept, so the assessor can review them directly.

How do we move off Google Analytics before data is lost?

Start by exporting whatever you still hold, because Universal Analytics data is no longer available to access. Google states that standard Universal Analytics properties stopped processing data on July 1, 2023, and that access to all Universal Analytics data ended the week of July 1, 2024, with unexported data permanently deleted. For Google Analytics 4, standard properties can keep user-level and event data for 2 or 14 months, and Google says that setting affects explorations and funnel reports, not standard aggregated reports. Standard GA4 properties have a daily BigQuery export limit of 1 million events, so plan the export window accordingly. Then document your event mapping, tracking plan and any history you will keep outside the new tool, and agree the cutover in writing. PostHog's migration guide for Google Analytics is a useful starting point for the mapping work.

Can Plausible Community Edition meet a single sign-on requirement?

Not on its own. Plausible's self-hosted page lists single sign-on among the features missing from Community Edition compared with Plausible Cloud, so a hard SSO requirement rules out that edition. The same list omits the Sites API, the Looker Studio connector and advanced bot filtering, so check each against your use. Community Edition is community supported only and published as a long-term release twice per year, which matters if a public body needs a named support route. If SSO is mandatory, shortlist platforms where SSO is confirmed in writing for the edition you would deploy, and test it during the pilot. Confirm current edition details with Plausible before you decide, since editions and their feature lists change.

How DeployOpen scopes, delivers and supports web analytics selection and rollout

Choosing a web or product analytics tool for a government body is mostly a question of data location, identity integration, retention and who operates the stack. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms inside your own infrastructure, so those criteria become a written scope, a tested build and a handover your security and compliance teams can review.

How we scope

  • The written scope names which analytics products, hosting targets and data sources are in and out of the engagement.
  • The scope should record data location, the identity provider for staff sign-in and event retention settings.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any work starts.

How we build

  • Deploy the chosen tool in your cloud account, data center or air-gapped network, as agreed in scope.
  • Configure SSO, access control, audit logging and data handling where the chosen tool supports each control.
  • Test the tracking setup, consent behavior and admin settings, then fix findings and retest before sign-off.

How we hand over

  • Documentation covers the architecture, configuration, upgrade steps and backup procedure for your operations staff.
  • Evidence packs list the controls in place, so your compliance team can review them with its own assessor.
  • DeployOpen does not issue audit reports or certifications, so your assessor or certification body makes the final call.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, quoted from the written scope.
  • Confirm each platform's support window and upgrade path with its vendor before you commit to a retainer.
  • Ask each vendor which features need a paid license, since self-hosted editions can lack features that hosted plans include.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.