Why look for a Firebase Analytics alternative
Firebase Analytics is the default in almost every app for good reasons. It is free at any volume, needs no infrastructure, and sits next to Crashlytics and Remote Config in a console the team already opens. Teams rarely leave because it is bad. They leave because they outgrow a specific set of limits:
- The 500-event ceiling. Firebase reports on up to 500 distinct event names, and each event carries at most 25 parameters (Google Analytics collection limits). Teams hit it by naming events instead of using properties, and the fix (renaming a taxonomy after the fact) is the kind of work nobody schedules.
- Reports that lag your release. The SDK batches events for about an hour before uploading them unless a device is in debug mode (Firebase’s DebugView docs), Google says processing can take 24 to 48 hours, and the Realtime report covers only a few dimensions and metrics (Google Analytics data freshness). Shipping in the morning and reading the funnel that afternoon is not the workflow.
- Raw data behind an export. Event-level data means turning on the BigQuery export, which on the pay-as-you-go Blaze plan is billed at BigQuery rates past a limited no-cost tier (Firebase’s BigQuery export docs). Your own events become a second system to operate.
- A retention window. Google Analytics keeps user-level and event-level data for 2 or 14 months, whichever you set (Google Analytics data retention), so the year-over-year question has to be answered from an export you set up in advance.
- Ownership. The behavioral record of your product lives in Google’s cloud, next to an advertising business, under terms you do not set.
In fairness: nothing below is free at Firebase’s scale with Firebase’s operational cost, which is zero. An alternative wins on ceilings, freshness, and ownership, not on price-per-event.
Prices and mobile SDKs compared
| Tool | Free tier | Past the free tier | Self-hosting | Mobile SDKs | Source |
|---|---|---|---|---|---|
| Firebase Analytics | Free at any volume, up to 500 distinct events | No paid plan for Analytics | No | iOS, Android, Flutter, Unity, C++ | Firebase Analytics, Firebase pricing |
| Pug | 100k events a month, 1 year of history | $1 a month plus $20 per million events, falling to $10 past 100M | Free under AGPL-3.0, every feature included | Android, iOS and Flutter; React Native in development | Pug pricing |
| Amplitude | 2M events a month, 1 year of history | Plus starts at $0 with a card; Growth and Enterprise are priced by sales | No | Android, iOS, React Native, Flutter, Unity, Unreal | Amplitude pricing, Amplitude plans, Amplitude SDKs |
| Mixpanel | 1M events a month | Growth starts at $0 with 1M events included | No | Android, iOS (Swift and Objective-C), React Native, Flutter, Unity | Mixpanel pricing, Mixpanel SDKs |
| PostHog | 1M analytics events a month | No base fee; $0.00005 an event from 1M to 2M, falling with volume | Docker Compose build under MIT, officially unsupported | Android, iOS, React Native, Flutter, Kotlin Multiplatform, Capacitor, Unity | PostHog pricing, PostHog self-hosting, PostHog SDKs |
| Countly | No free cloud plan; Lite is free to self-host | Flex, a dedicated instance, from $175 a month for 5,000 monthly active users | Lite under AGPL-3.0 with a branding term; Enterprise self-hosts the full platform | iOS, Android, React Native, Flutter, Unity | Countly pricing, Countly Flex pricing, Countly Lite, Countly license, Countly SDKs |
| Google Analytics 4 | Free | Analytics 360, quoted by sales | No | The Firebase SDKs | Google Analytics, Analytics 360, GA4 developer guides |
The alternatives
1. Pug: open source, no ceilings, events you own
Open-source (AGPL-3.0) product analytics with unified profiles: Trends, Funnels, Retention, User flow, Top K and a
country Map over raw events, with a profile per person that spans app and web once you call
identify(). There is no cap on event names or properties, the Live view refreshes every 10 seconds,
and self-hosting keeps every event on your own infrastructure with no export pipeline in between. The mobile SDKs
today are native Android (Kotlin or Java), native
iOS (Swift) and Flutter. The two native SDKs
record app opens and closes, installs and updates, and screen views on their own, and keep unsent events through
restarts; on iOS a screen is a view controller, so a SwiftUI screen counts once named with
.pugScreen("Products"). A React Native SDK is in development, so a React Native app sends events
through the HTTP API for now.
On Pug Cloud a month of 1M events costs $19.00. Self-hosting takes one Go binary and four stores you may
already run (PostgreSQL, ClickHouse, NATS JetStream, and Dragonfly or Redis), and the SDKs need one option,
endpoint, to point at your server. Pug has no crash reporting, feature flags or experiments, so it sits
beside Crashlytics and Remote Config rather than replacing them. Best for: Android, iOS and Flutter teams past
the event ceiling who want to own the data. Full breakdown:
Pug vs Firebase Analytics.
2. Amplitude: the mature hosted upgrade
Native mobile SDKs, the largest free plan among the alternatives, and session replay, experiments and feature flags on every plan, Free included, with lower volumes there (Amplitude pricing). Proprietary and metered on event volume, so it answers the ceiling and freshness complaints but not the ownership one. Best for: teams whose problem is that Firebase cannot answer the question, and who will pay a hosted bill to fix it. See the Amplitude alternative.
3. Mixpanel: the same shape, better tooling
Product analytics with session replay for Android, Swift and React Native apps (Mixpanel’s SDK docs). Like Amplitude it is cloud-only and meters on events, which is a real change in posture from Firebase’s free tier: past its free 1M events a month, Mixpanel keeps collecting but pauses querying until you upgrade (Mixpanel’s pricing docs). Budget for it before you migrate a high-volume app. Best for: teams that want a familiar, well-built product-analytics console. See the Mixpanel alternative.
4. PostHog: Firebase’s breadth, open source
Open source (MIT outside its ee/ directory), bundling analytics with session replay, feature flags,
experiments, surveys and error tracking, which maps onto what Firebase gives you in Remote Config and A/B Testing
(PostHog vs Firebase Analytics, below, compares them row by row).
Caveats: PostHog’s self-hosting docs keep every paid-plan feature
off its self-hosted build, and the cloud plan meters on events. Best for: teams replacing Remote Config and
experiments at the same time. See the PostHog alternative.
5. Countly: the most Firebase-shaped platform
Built for apps first and self-hostable. The open Lite edition’s server ships crash and error reports, push notifications, remote config, ratings, dashboards and alerts (Countly Lite, countly-server plugins): closer to Firebase’s shape than anything else here. It has no funnels, cohorts or retention plugin, though Countly’s Lite page lists them; Countly sells funnels, retention, flows and Drill in Flex’s Intelligence add-on, and the Cee AI agent in Flex and Enterprise. Flex, its hosted plan, is a dedicated instance billed by monthly active users (Countly pricing), and its MCP server connects Claude, ChatGPT and other assistants, off on a new server and read-only until an admin allows changes (Countly’s MCP page). Read the license before you build on Lite: it is AGPL-3.0 with a modified Section 7 that keeps Countly’s name and logo on every screen (Countly’s license). Best for: teams who want one self-hosted platform covering analytics, crashes, and messaging. See the Countly alternative.
6. Google Analytics 4: the move that isn’t one
Worth naming because it comes up in every one of these searches: Firebase Analytics is Google Analytics for Firebase, the same GA4 backend. Pointing your app at a GA4 property directly carries the same app-stream event cap (web streams have none), the same processing schedule, and the same BigQuery detour. It is a reasonable choice for your website and no escape at all for your app. See the Google Analytics alternative.
PostHog vs Firebase Analytics
PostHog stands in for three Firebase products at once: its analytics for Google Analytics for Firebase, its feature flags for Remote Config, and its experiments for A/B Testing. The two side by side, for an app:
| Area | Firebase | PostHog | Source |
|---|---|---|---|
| Sent on its own from an app | first_open, session_start, user_engagement, screen_view, app_update, os_update and in_app_purchase, plus app_remove on Android | Application Installed, Updated and Opened, a $screen for each Android activity or iOS view controller, and session replay once you turn it on | Automatically collected events, PostHog Android SDK, PostHog iOS configuration |
| Remote config | In-app defaults overridden by conditional values, rollouts that use parameters as feature flags, and machine-learned personalization | Boolean and multivariate feature flags that differ per user, and remote config flags that return one payload to everyone | Firebase Remote Config, PostHog remote config |
| A/B tests | A/B Testing on Remote Config, measured in Google Analytics, with up to 24 experiments and rollouts running at once | Experiments, billed with feature flags on the same free tier | Firebase Remote Config, PostHog pricing |
| Analytics price | Free at any volume | 1M events a month free, then $0.00005 an event from 1M to 2M, falling with volume | Firebase pricing, PostHog pricing |
| Remote config and flag price | 100,000 fetches a day per project free; since September 1, 2026, the Blaze plan bills $0.000006 a fetch past that, falling to $0.000001 above 10M a day | 1M flag requests a month free, then $0.0001 a request from 1M to 2M, falling to $0.00001 above 50M | Firebase pricing, PostHog pricing |
| Data limits | 500 distinct event names with 25 parameters each; event-level data kept 2 or 14 months | 1 year of history on the free plan, 2 years on the paid plan | Google Analytics collection limits, Google Analytics data retention, PostHog pricing |
| Self-hosting | No | A free Docker Compose deploy under MIT, officially unsupported, with every paid-plan feature kept on PostHog Cloud | Firebase pricing, PostHog self-hosting |
On price, Firebase wins: Analytics is free at any volume, and Remote Config, which includes A/B Testing, gives 100,000 free fetches a day, about 3M over a 30-day month, against PostHog’s 1M free flag requests a month. PostHog adds session replay to the same mobile SDK, and code you can run on your own servers, though PostHog doesn’t support that deploy. Pug competes only in the analytics rows: it has no remote config, feature flags or experiments.
Tools that answer a different question
Install attribution platforms sit next to this category rather than inside it: they tell you which ad produced an install, not what the person did afterwards, so they replace part of what Firebase reports and none of your behavioral analytics. Mobile session-replay and heatmap tools are likewise a complement: they show you how a screen was used, not whether the cohort came back. Neither category removes the need for the tool above.
How to choose
Start from the limit that pushed you here. Event ceiling or ownership → a self-hostable open-source tool like Pug or Countly. The analysis isn’t deep enough → Amplitude or Mixpanel. You also want flags and experiments → PostHog. You ship a React Native app → Amplitude, Mixpanel, PostHog or Countly, which have React Native SDKs today. And decide explicitly what you are not replacing: Auth, Crashlytics and Cloud Messaging sit outside product analytics (Countly’s crash and push plugins are the exception here), so nearly everyone keeps Firebase and adds a second tool beside it rather than migrating off the platform.
Before you instrument anything, decide what to measure. The guide to product analytics for mobile apps covers the event spine, cohorts by install week, and the identity model. Related reading: the best product analytics tools, the best open-source analytics tools, and every head-to-head on the comparisons hub.