Skip to content

Commit edadda2

Browse files
committed
public: update self-hosting articles
1 parent b6b716f commit edadda2

2 files changed

Lines changed: 743 additions & 53 deletions

File tree

Lines changed: 381 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,381 @@
1+
---
2+
title: "Best Self-Hosted Product Analytics Tools in 2026 (Compared)"
3+
description: "Compare the best self-hosted product analytics tools in 2026. Detailed breakdown of OpenPanel, PostHog, Countly, Matomo, and more — with features, pricing, deployment, and honest pros/cons."
4+
tag: Comparison
5+
team: OpenPanel Team
6+
date: 2026-02-16
7+
updated: 2026-02-16
8+
cover: /content/self-hosted-analytics.jpg
9+
---
10+
import { Faqs, FaqItem } from '@/components/faq';
11+
12+
Product analytics tells you *what users do* inside your product — which features they use, where they drop off, how often they come back, and what paths they take before converting. It's the difference between knowing "we got 10,000 pageviews" and knowing "40% of users who start onboarding never finish step 3."
13+
14+
If you want those insights without sending user behavior data to a third party, self-hosted product analytics is the way to go.
15+
16+
But here's the problem: most self-hosted analytics tools only cover **web analytics** — pageviews, traffic sources, and referrals. Product analytics features like funnels, retention, cohorts, and user identification require a different class of tool.
17+
18+
We compared every self-hosted tool that offers real product analytics capabilities. Here's what's worth your time.
19+
20+
## Quick Comparison
21+
22+
| Tool | Focus | License | Self-Host Cost | Cloud Pricing (from) | Best For |
23+
|------|-------|---------|---------------|---------------------|----------|
24+
| [**OpenPanel**](#openpanel) | Web + Product | AGPL-3.0 | Free | $2.50/mo | Teams wanting Mixpanel-like analytics, self-hosted |
25+
| [**PostHog**](#posthog) | Product + Web | MIT | Free | $0 + usage | Dev teams needing analytics + flags + experiments |
26+
| [**Countly**](#countly) | Product + Mobile | AGPL-3.0 | Free (Community) | Custom | Mobile-first product analytics |
27+
| [**Matomo**](#matomo) | Web (+ Product plugins) | GPL-3.0 | Free (core) | €29/mo | GA replacement with product add-ons |
28+
| [**Mitzu**](#mitzu) | Product | Source Available | Paid | Custom | Warehouse-native product analytics |
29+
30+
## What Makes Product Analytics Different from Web Analytics
31+
32+
Web analytics answers questions about your **website traffic**: where visitors come from, which pages they view, and how long they stay. Tools like [Plausible](/compare/plausible-alternative), [Umami](/compare/umami-alternative), and [GoatCounter](/compare/goatcounter-alternative) do this well.
33+
34+
Product analytics goes deeper. It answers questions about **user behavior**:
35+
36+
- **Funnels**: What percentage of users complete signup? Where exactly do they drop off?
37+
- **Retention**: Are users coming back after their first week? First month?
38+
- **User journeys**: What do users do before upgrading to a paid plan?
39+
- **Cohort analysis**: Do users who onboard on mobile retain better than desktop users?
40+
- **Event tracking**: Which features get used? How often? By whom?
41+
42+
If you're building a SaaS, mobile app, or any product where understanding user behavior matters, you need product analytics — not just pageview counts.
43+
44+
For a comparison of self-hosted tools focused purely on web analytics, see our [self-hosted web analytics guide](/articles/self-hosted-web-analytics).
45+
46+
---
47+
48+
## OpenPanel
49+
50+
**Best for: Teams that want Mixpanel-like product analytics with a self-hosted option**
51+
52+
[OpenPanel](/) was built to give you the power of tools like [Mixpanel](/compare/mixpanel-alternative) and [Amplitude](/compare/amplitude-alternative) without sending your data to a third party. It combines web analytics and product analytics in one platform, with cookieless tracking and a straightforward self-hosting setup.
53+
54+
![OpenPanel Dashboard](/content/tools/openpanel.png)
55+
56+
### Product Analytics Features
57+
58+
- **[Funnels](/features/funnels)**: Build multi-step conversion funnels with any events. See where users drop off and break down by properties.
59+
- **[Retention](/features/retention)**: Analyze how many users come back over time. Compare retention across cohorts, plans, or acquisition channels.
60+
- **[Event tracking](/features/event-tracking)**: Track any custom event with properties. Visualize with charts, tables, and breakdowns.
61+
- **User identification**: Link events to individual users. View complete user profiles with their full event history.
62+
- **[Session tracking](/features/session-tracking)**: See individual sessions with the full sequence of events and pages.
63+
- **Real-time dashboards**: Custom dashboards with multiple chart types, updated in real time.
64+
65+
### Deployment
66+
67+
Four commands to self-host:
68+
69+
```bash
70+
git clone -b self-hosting https://github.com/Openpanel-dev/openpanel && cd openpanel/self-hosting && ./setup
71+
./start
72+
```
73+
74+
Runs on Docker Compose with ClickHouse, PostgreSQL, and Redis. A mid-range VPS (4 vCPU, 8 GB RAM) handles millions of events. The setup wizard handles configuration, database setup, and SSL.
75+
76+
Full guide: [How to self-host OpenPanel](/articles/how-to-self-host-openpanel) | [Self-hosting docs](/docs/self-hosting/self-hosting)
77+
78+
### Pricing
79+
80+
Self-hosting is free. All features included — the self-hosted version is identical to the cloud version with no feature gating.
81+
82+
Cloud plans start at $2.50/month (5,000 events) and scale to $90/month for 1 million events. Every tier includes every feature.
83+
84+
### Pros
85+
- Full product analytics (funnels, retention, user profiles) plus web analytics in one tool
86+
- Simplest self-hosting setup among tools with comparable features
87+
- Cookieless tracking — no consent banners needed
88+
- Self-hosted and cloud versions are identical
89+
- Multiple SDKs: JavaScript, React, Next.js, Vue, React Native, Flutter, and more
90+
91+
### Cons
92+
- Newer project — smaller community than PostHog or Matomo
93+
- No built-in session replay or heatmaps yet
94+
- No built-in feature flags or A/B testing
95+
96+
---
97+
98+
## PostHog
99+
100+
**Best for: Engineering teams that want analytics, feature flags, and experiments in one platform**
101+
102+
[PostHog](https://posthog.com/) is the most feature-rich self-hosted product analytics tool. It bundles product analytics with session replay, feature flags, A/B testing, surveys, and error tracking. If you want a Swiss Army knife for product development, PostHog is the most complete option.
103+
104+
![PostHog Dashboard](/content/tools/posthog.png)
105+
106+
### Product Analytics Features
107+
108+
- **Funnels**: Multi-step funnel analysis with breakdown by user properties
109+
- **Retention**: Cohort-based retention analysis
110+
- **User paths**: Visualize how users navigate through your product
111+
- **Cohorts**: Group users by behavior, properties, or lifecycle stage
112+
- **Session replay**: Watch recordings of actual user sessions
113+
- **Feature flags**: Roll out features to specific user segments
114+
- **A/B testing**: Run experiments and measure impact on metrics
115+
- **Surveys**: Collect in-product feedback
116+
117+
### Deployment
118+
119+
PostHog self-hosting uses Docker Compose for small deployments or Kubernetes (Helm charts) for production. The infrastructure stack includes PostgreSQL, Redis, ClickHouse, and Kafka — significantly more complex than other options.
120+
121+
Requirements: Minimum 4 vCPU, 16 GB RAM, 30 GB+ storage. PostHog recommends self-hosting only for up to ~300K events/month. Beyond that, they push you toward their cloud offering.
122+
123+
### Pricing
124+
125+
Self-hosting is free under MIT license. Cloud has a generous free tier: 1 million analytics events, 5,000 session recordings, and 1 million feature flag requests per month. Beyond that, usage-based pricing kicks in (roughly $0.00005 per event for the next million).
126+
127+
### Pros
128+
- Most comprehensive feature set of any self-hosted analytics tool
129+
- MIT license — very permissive
130+
- Generous cloud free tier for getting started
131+
- Active community and rapid development cycle
132+
133+
### Cons
134+
- Complex self-hosting with multiple infrastructure dependencies
135+
- Resource-heavy — needs 4x the RAM of simpler tools
136+
- Self-hosted and cloud versions aren't feature-equivalent
137+
- Can be overwhelming — lots of features most teams won't use
138+
- PostHog actively discourages self-hosting at scale
139+
140+
Compare with OpenPanel: [PostHog vs OpenPanel](/compare/posthog-alternative)
141+
142+
---
143+
144+
## Countly
145+
146+
**Best for: Mobile-first product analytics with self-hosting**
147+
148+
[Countly](https://countly.com/) is a product analytics platform with strong mobile analytics roots. It supports web, mobile, and desktop apps with SDKs for iOS, Android, React Native, Flutter, and more. The Community Edition is self-hostable under AGPL-3.0.
149+
150+
### Product Analytics Features
151+
152+
- **Funnels**: Define conversion funnels and track drop-off rates
153+
- **Retention**: Cohort retention analysis with configurable time periods
154+
- **User profiles**: Individual user tracking with event history
155+
- **Segmentation**: Filter and segment users by properties and behaviors
156+
- **Push notifications**: Built-in push notification system (mobile)
157+
- **Crash reporting**: Crash analytics for mobile apps
158+
159+
### Deployment
160+
161+
Countly self-hosts with Docker or manual installation on Linux. It uses MongoDB as its primary database. The setup is straightforward but requires MongoDB expertise for production deployments.
162+
163+
Requirements: 4 vCPU, 8 GB RAM minimum. MongoDB 6+. More resources needed for high-traffic mobile apps.
164+
165+
### Pricing
166+
167+
The Community Edition is free under AGPL-3.0 but has limited features. Enterprise pricing is custom and includes advanced analytics, push notifications, crash reporting, and dedicated support. Expect significant cost for the Enterprise version.
168+
169+
### Pros
170+
- Strong mobile analytics with native SDKs for all major platforms
171+
- Built-in push notifications and crash reporting
172+
- Established platform with enterprise customers
173+
- Good for mobile-first or hybrid app analytics
174+
175+
### Cons
176+
- Community Edition is feature-limited — most product analytics features require Enterprise
177+
- Enterprise pricing is opaque and expensive
178+
- MongoDB-only — no PostgreSQL or ClickHouse option
179+
- UI feels dated compared to newer tools
180+
- Smaller open source community than PostHog
181+
182+
Compare with OpenPanel: [Countly vs OpenPanel](/compare/countly-alternative)
183+
184+
---
185+
186+
## Matomo
187+
188+
**Best for: Organizations that want a Google Analytics replacement with optional product analytics features**
189+
190+
[Matomo](https://matomo.org/) is primarily a web analytics tool, but it offers product analytics capabilities through its plugin system. Heatmaps, session recordings, A/B testing, and funnels are available as paid plugins — even on self-hosted instances.
191+
192+
![Matomo Dashboard](/content/tools/matomo.png)
193+
194+
### Product Analytics Features
195+
196+
- **Funnels** (paid plugin): Multi-step conversion funnels
197+
- **Cohorts** (paid plugin): Group users by behavior and analyze over time
198+
- **Heatmaps** (paid plugin): See where users click, scroll, and hover
199+
- **Session recordings** (paid plugin): Watch recordings of user sessions
200+
- **A/B testing** (paid plugin): Run experiments on your site
201+
- **Custom events**: Track custom events and goals
202+
203+
### Deployment
204+
205+
Matomo runs on PHP + MySQL/MariaDB. Deploy on any LAMP stack or use their Docker images. More complex than Docker-only tools because it requires a PHP environment and web server configuration.
206+
207+
Full details in our [open source web analytics comparison](/articles/open-source-web-analytics#matomo).
208+
209+
### Pricing
210+
211+
The core platform is free under GPL-3.0. Product analytics plugins are sold separately:
212+
- Funnels: €199/year
213+
- Heatmaps + Session Recording: €249/year
214+
- A/B Testing: €199/year
215+
- Cohorts: €79/year
216+
217+
These costs add up. A full product analytics setup on self-hosted Matomo can cost €500-700+/year in plugin licenses.
218+
219+
### Pros
220+
- Most mature self-hosted analytics platform (since 2007)
221+
- Closest feature parity to Google Analytics
222+
- Large plugin ecosystem
223+
- Strong compliance track record
224+
225+
### Cons
226+
- Product analytics features are paid add-ons, not included in the core
227+
- Plugin costs add up significantly
228+
- PHP stack requires more maintenance
229+
- Not a native product analytics tool — it's web analytics with product features bolted on
230+
231+
Compare with OpenPanel: [Matomo vs OpenPanel](/compare/matomo-alternative)
232+
233+
---
234+
235+
## Mitzu
236+
237+
**Best for: Data teams that want product analytics on top of their existing data warehouse**
238+
239+
[Mitzu](https://www.mitzu.io/) takes a different approach. Instead of ingesting data into its own database, it runs analytics queries directly on your existing data warehouse (BigQuery, Snowflake, Databricks, etc.). If you already have event data in a warehouse, Mitzu gives you product analytics without duplicating data.
240+
241+
### Product Analytics Features
242+
243+
- **Funnels**: Conversion funnel analysis running on your warehouse
244+
- **Retention**: Cohort retention directly on warehouse data
245+
- **Segmentation**: Filter users by any property in your warehouse
246+
- **User journeys**: Path analysis on warehouse data
247+
- **Revenue analytics**: Connect events to revenue data
248+
249+
### Deployment
250+
251+
Mitzu deploys as a web application that connects to your existing warehouse. Self-hosting is available but requires a paid license.
252+
253+
Requirements: An existing data warehouse (BigQuery, Snowflake, Databricks, ClickHouse, or PostgreSQL) with event data already flowing in.
254+
255+
### Pricing
256+
257+
Self-hosting requires a paid license (pricing available on request). Cloud plans are also custom-priced. There is no free tier for self-hosting.
258+
259+
### Pros
260+
- No data duplication — queries your existing warehouse
261+
- Works with the data infrastructure you already have
262+
- Strong for data teams who live in SQL and warehouses
263+
- Good for organizations with complex data pipelines
264+
265+
### Cons
266+
- Requires an existing data warehouse with event data
267+
- Self-hosting requires a paid license
268+
- Not suitable for teams starting from scratch
269+
- Smaller community and less documentation
270+
271+
---
272+
273+
## Self-Hosted Product Analytics vs Cloud: When to Self-Host
274+
275+
The case for self-hosting product analytics is even stronger than for web analytics. Product analytics involves **user-level data** — individual users, their behaviors, their journeys through your product. This data is more sensitive than aggregate pageview counts.
276+
277+
### Self-host product analytics when:
278+
279+
- **You handle sensitive user data.** Healthcare (HIPAA), finance, or any industry where user behavior data is regulated. Self-hosting eliminates third-party data transfers entirely. See our [compliance guide](/articles/better-compliance-self-hosted-analytics).
280+
- **You need user-level data control.** Product analytics tracks individual users. Under GDPR, this is personal data. Self-hosting gives you full control over retention, deletion, and access.
281+
- **You want cost predictability.** Cloud product analytics pricing scales with events and identified users. At scale, this gets expensive fast. Self-hosting costs are your server costs.
282+
- **You have data residency requirements.** Some regulations require data to stay in specific geographic regions. Self-hosting on your own infrastructure solves this.
283+
284+
### Use cloud when:
285+
286+
- **You're just getting started with product analytics.** Cloud gets you insights faster. Self-host later when you've validated the tool fits your needs.
287+
- **You don't have ops capacity.** Product analytics tools with ClickHouse backends need some database knowledge to maintain.
288+
- **You need guaranteed uptime.** If analytics downtime directly impacts product decisions, a managed service with SLAs may be worth the cost.
289+
290+
With [OpenPanel](/pricing), you can start on Cloud and migrate to self-hosting at any time. The features are identical in both versions.
291+
292+
---
293+
294+
## How to Get Started
295+
296+
### 1. Pick a server
297+
298+
For self-hosted product analytics, you'll want slightly more resources than for basic web analytics since product analytics involves more complex queries (funnels, retention calculations).
299+
300+
Recommended starting point: 4 vCPU, 8 GB RAM, 80 GB SSD. This handles most small-to-medium products comfortably.
301+
302+
- **[Hetzner](https://hetzner.cloud/?ref=7Hq0H5mQh7tM)** — A CX31 (4 vCPU, 8 GB RAM) for around €8.50/month
303+
- **DigitalOcean** — Equivalent droplet for ~$48/month
304+
- **Vultr** — Similar pricing to DigitalOcean
305+
306+
### 2. Install and configure
307+
308+
For OpenPanel:
309+
310+
```bash
311+
git clone -b self-hosting https://github.com/Openpanel-dev/openpanel && cd openpanel/self-hosting && ./setup
312+
./start
313+
```
314+
315+
The setup wizard walks you through domain configuration, database setup, SSL, and worker settings. Full guide: [How to self-host OpenPanel](/articles/how-to-self-host-openpanel).
316+
317+
### 3. Instrument your product
318+
319+
Product analytics requires event tracking in your codebase. With OpenPanel, install the SDK for your framework:
320+
321+
```bash
322+
npm install @openpanel/nextjs
323+
# or @openpanel/react, @openpanel/vue, @openpanel/sdk
324+
```
325+
326+
Then track events where they happen:
327+
328+
```typescript
329+
import { op } from '@openpanel/nextjs';
330+
331+
// Track a custom event
332+
op.track('signup_completed', {
333+
plan: 'pro',
334+
source: 'landing_page'
335+
});
336+
337+
// Identify a user
338+
op.identify({
339+
profileId: 'user_123',
340+
email: 'user@example.com',
341+
plan: 'pro'
342+
});
343+
```
344+
345+
See the [SDK documentation](/docs/get-started/install-openpanel) for your specific framework.
346+
347+
### 4. Build your first funnel
348+
349+
Once events are flowing, create your first conversion funnel. A common starting point: **Visit landing page > Sign up > Complete onboarding > First key action**. This immediately shows you where users drop off in your core flow.
350+
351+
---
352+
353+
<Faqs>
354+
<FaqItem question="What is the best self-hosted product analytics tool?">
355+
For most teams, OpenPanel offers the best balance of product analytics features, ease of self-hosting, and cost. PostHog is more feature-rich (session replay, feature flags) but significantly more complex to self-host. Countly is best for mobile-first products.
356+
</FaqItem>
357+
358+
<FaqItem question="Can I self-host Mixpanel or Amplitude?">
359+
No. Mixpanel and Amplitude are cloud-only platforms with no self-hosting option. The closest self-hosted alternatives are OpenPanel (most similar to Mixpanel in product analytics features) and PostHog (broader feature set with more complexity).
360+
</FaqItem>
361+
362+
<FaqItem question="What is the difference between product analytics and web analytics?">
363+
Web analytics tracks website traffic — pageviews, referrals, devices, and geographic data. Product analytics tracks user behavior — events, funnels, retention, cohorts, and user journeys. Most self-hosted tools only offer web analytics. OpenPanel, PostHog, and Countly offer both. See our [self-hosted web analytics comparison](/articles/self-hosted-web-analytics) for web-focused tools.
364+
</FaqItem>
365+
366+
<FaqItem question="How much does self-hosted product analytics cost?">
367+
The software is free for OpenPanel (AGPL-3.0) and PostHog (MIT). Your cost is server infrastructure — typically $10-50/month for a VPS, depending on traffic. Countly's Enterprise features and Matomo's product analytics plugins require paid licenses on top of server costs.
368+
</FaqItem>
369+
370+
<FaqItem question="Do I need separate tools for web and product analytics?">
371+
Not necessarily. OpenPanel and PostHog both combine web analytics and product analytics in one platform. This means a single tracking snippet, one dashboard, and unified user profiles. If you only need web analytics, simpler tools like Plausible or Umami are better suited.
372+
</FaqItem>
373+
374+
<FaqItem question="Is self-hosted product analytics GDPR compliant?">
375+
Self-hosting is one of the strongest approaches for GDPR compliance because user data never leaves your infrastructure. Combined with cookieless tracking (available in OpenPanel), you can run product analytics without consent banners and with full control over data retention and deletion.
376+
</FaqItem>
377+
378+
<FaqItem question="Can I start with cloud and migrate to self-hosting later?">
379+
With OpenPanel, yes. The cloud and self-hosted versions are identical in features. You can start with Cloud to validate the tool and migrate to self-hosting when you're ready. PostHog also supports both, though there are some feature differences between their cloud and self-hosted versions.
380+
</FaqItem>
381+
</Faqs>

0 commit comments

Comments
 (0)