Top 10 Self-Hosted Google Analytics Alternatives

Start with Umami for traffic and signups, Matomo if you need your GA4 history, or GoatCounter for a small site. All ten picks have an open-source edition you can run on your own server.

By SaaS is dead

A reaper lifts a bar chart from a gravestone and moves it to a server.

Where to start

Compare the 10 alternatives

The order reflects how broadly each tool can replace everyday GA4 reporting, with simpler and specialist tools lower down. The comparison uses project licenses and maintainer documentation for self-hosting and imports.

ToolWhat you runGA4 history
MatomoPHP + MySQL or MariaDBGA4 importer plugin
UmamiApp + PostgreSQLKeep GA4 history separately
Plausible CEApp + PostgreSQL + ClickHouseDirect import unverified for CE
RybbitApp + PostgreSQL + ClickHouse + RedisNo direct GA4 import
GoatCounterGo binary + SQLite or PostgreSQLKeep GA4 history separately
Swetrix CEWeb + API + ClickHouse + RedisGA4 via your own Google OAuth app
OpenPanelApp + PostgreSQL + ClickHouse + Redis (public 2.x)Keep GA4 history separately
TianjiApp + PostgreSQLKeep GA4 history separately
AckeeNode.js app + MongoDBKeep GA4 history separately
ShynetDjango app + PostgreSQL or SQLiteKeep GA4 history separately

What each tool does well

1.Matomo

GPL-3.0 core

Best for
Keeping historical reports and ecommerce tracking
Trade-off
Budget separately for premium on-premise features such as funnels and heatmaps.

Start here if you need historical GA4 reports or want to keep tracking ecommerce. The importer brings over aggregate reports, while detailed visit logs start with new Matomo tracking. Matomo has a built-in tag manager and an ecommerce tracking API. Checkout tracking still needs to be wired to Matomo, even if your store already sends purchase events to GA4.

What to try first

Import a short historical date range, then compare one of your top landing-page reports against GA4. To keep history and new tracking in one Matomo site, start the import before installing the tracking tag. The importer creates its own site.

Sources

2.Umami

MIT

Best for
Traffic reports and a few key conversions
Trade-off
Plan to preserve old GA4 reports outside Umami if you need continuity.

Umami is the first tool I’d try for a site that wants to know where visitors come from and whether they sign up. Its Compose example runs the app and PostgreSQL. You can label a button with an HTML attribute or send an event from code, then use an event or page view as a funnel step.

What to try first

Track the confirmation after a successful signup. Add that event after the pricing page in a funnel. This measures completed signups even if a visitor clicks the form button several times.

Sources

3.Plausible CE

AGPL-3.0 CE

Best for
A single page of traffic and goal reports
Trade-off
Community Edition omits marketing funnels, user journeys, and ecommerce revenue goals.

Plausible’s dashboard puts sources, pages, campaigns, and goals in one view. It fits an editorial or marketing team that wants a report it can read quickly. The server still runs two databases, so a simple dashboard can bring more maintenance than Umami or GoatCounter.

What to try first

Add a page-view goal for a newsletter thank-you page. Open a tagged campaign URL, complete the signup, and check the goal and campaign source. If you need direct GA4 import on your own server, start with Matomo or Swetrix CE. Plausible’s GA4 import guide describes its hosted workflow.

Sources

4.Rybbit

AGPL-3.0

Best for
Funnels with session replay
Trade-off
Verify which features your self-hosted release includes. Rybbit’s edition table flags Web Vitals as cloud-only.

Rybbit is a useful step up when a conversion report shows a drop-off and you need to see what happened on the page. It offers funnels, journeys, errors, and replay alongside ordinary traffic reports. Measure how much replay data your site produces before making recordings part of every visit.

What to try first

Walk through a signup funnel with a test account. Open the resulting replay and confirm that private fields are masked before enabling recording for real visitors.

Sources

5.GoatCounter

Modified EUPL-1.2

Best for
Small sites and a single database file
Trade-off
Choose this for traffic counts and event totals. Use an event-analysis tool if you need multistep funnel reports.

GoatCounter can run as one binary with SQLite, which makes it an easy fit for a blog or docs site. It can count with JavaScript, a tracking pixel, or supported web server logs. The log option is useful if you already retain access logs and want a report without adding a browser tag.

What to try first

Count one docs page and a download link. If you also ingest access logs, keep the test separate from browser counts until you understand which requests appear in both feeds.

Sources

6.Swetrix CE

AGPL-3.0 CE

Best for
Traffic, web performance, and JavaScript errors
Trade-off
The CE stack has several services. Session recording also needs private S3-compatible storage.

Swetrix earns its place when the analytics dashboard also needs to answer why a release feels slower or why conversions dipped when a script started failing. It brings traffic, performance, and error reporting into one tool. Its self-hosted GA4 importer needs a Google Cloud OAuth client and both the Analytics Admin and Data APIs enabled.

What to try first

On a test deployment, compare performance by page and send a controlled JavaScript error. If history matters, import a test property first and confirm your key report dimensions survived.

Sources

7.OpenPanel

AGPL-3.0

Best for
Activation and retention in a signed-in app
Trade-off
The public 2.x deployment has multiple services. Use its setup instructions, since the current 3.x quickstart describes early access.

OpenPanel fits a team that has outgrown traffic reports and wants to measure what people do after signing up. Its SDKs let you instrument named product events and tie the ones you need to a user profile. Pick the handful of events that define activation before enabling broad collection.

What to try first

Send an account creation event and a first-project event from a test account. Build a funnel and verify that both steps are attributed to the same test profile.

Sources

8.Tianji

Apache-2.0

Best for
Traffic and uptime in the same app
Trade-off
Use a dedicated analytics tool if the main job is deep attribution or product funnels.

Tianji combines website analytics with uptime checks, server status, and surveys. On a small site maintained by one person, that can replace both a traffic dashboard and a separate status tool. Its upstream Compose setup starts the app alongside PostgreSQL.

What to try first

Create a website in Tianji, confirm a test page view arrives, and add an uptime check to the site’s health URL. You can then investigate quiet traffic in the same place you see recent downtime.

Sources

9.Ackee

MIT

Best for
Compact traffic reports with an existing MongoDB setup
Trade-off
Running MongoDB just for a few counters adds work. GoatCounter needs only a SQLite file for a small deployment.

Ackee gives small sites a traffic dashboard and a GraphQL API for pulling their own stats. It can record custom events, so the occasional download or newsletter signup can sit beside page views. Its tracker lets you opt into more detailed device data if that is necessary for a specific report.

What to try first

Add a documentation domain to Ackee and check the top pages against one GraphQL query. Leave detailed tracking off unless a report actually needs those fields.

Sources

10.Shynet

Apache-2.0

Best for
Page counts when visitor JavaScript is unavailable
Trade-off
The pixel captures a page hit. Metrics measured by the script, such as page load timing, still require JavaScript.

Shynet can fall back to a one-pixel image when its tracking script cannot run. That makes it useful for text-heavy, low-JavaScript sites that mainly need page hits and referrers. It supports multiple sites and users under one installation.

What to try first

Disable JavaScript in a test browser, open a page with the pixel embed, and check that Shynet records a hit. Review upstream releases before putting it on a public endpoint.

Sources

How to switch from GA4

  1. Write down the reports you actually open.

    For each one, record its date range, time zone, filters, and what counts as success. A lead should be a submitted form or a confirmed signup, whichever your team actually counts.

  2. Save the history you’ll need.

    Export the historical reports your team needs and keep a dated copy. If you plan to use Matomo’s importer, create the destination through the import flow before adding your new tag.

  3. Run both on the same pages.

    Use a tagged campaign URL and make a real test conversion. Check page views, source, and the conversion against your report definitions. Bots, consent, ad blockers, and session rules can make totals differ.

  4. Cut over after a backup and restore check.

    Restore the new tool’s data to a test instance and confirm you can read your reports. Mark the switch date in your reporting calendar so a change in measurement is visible later.

Export a GA4 report or set up BigQuery Export if your team needs raw events going forward.

Common questions

Can I move my Google Analytics 4 history?

Yes, for some reports and tools. Matomo’s importer can bring GA4 reports into a new Matomo site. Swetrix CE can import GA4 data after you set up a Google OAuth client. Test a known date range and keep your original exports. Recreate conversion rules and dashboards that your importer does not carry over.

Can I replace GA4 and still use Google Ads?

Inventory the audiences and conversions your Ads account gets from GA4 before removing the tag. A self-hosted dashboard can count signups and purchases, but Google Ads needs its own supported conversion source if you use those events for bidding.

What do I pay for if the software is free?

You pay for the machine, storage, and the time it takes to patch the app and restore its data. Include storage for database backups and, if enabled, session recordings. For a small site, starting with traffic counts and one conversion keeps that bill easier to predict.

Esc

Type to search every entry. ↑↓ to move, Enter to open.

Your cart

Nothing in here yet. The receipt is blank for once.

Browse the gift shop