Compare

The open-source Firebase Analytics alternative

Firebase Analytics is free and already in your app, but it caps you at 500 event names, reports on Google’s schedule, and keeps your raw events in Google’s cloud. Pug is open source and self-hostable, with native Android and iOS SDKs and a Flutter SDK. Here is how the two compare, including where Firebase still wins.

Choose Pug if
  • Your app is native Android, native iOS, or Flutter, and you want to own the raw events
  • You’ve hit the 500-event ceiling, or you can see it coming
  • You want one profile spanning your app and your website
Stick with Firebase Analytics if
  • You also need Crashlytics, Remote Config, or experiments
  • Your app is Unity or C++ today
  • You want zero infrastructure and Google Ads attribution
At a glance

Pug vs Firebase Analytics, feature by feature

Each row sets what ships in Pug today against what Firebase Analytics documents. A dash in Pug’s column is a feature Pug doesn’t have.

Capability Pug this page Firebase Analytics
Ownership & privacy
License AGPL-3.0 Proprietary
Open source Yes No
Self-hostable Yes No
Raw events stay on your servers Yes No
Not processed by an ad platform Yes No
Pricing (checked November 2026)
Price Free self-hosted; cloud free up to 100k events a month, then $1 a month + $20 per million No charge on Spark or Blaze
The analytics model
Trends, funnels, retention Yes Yes
Distinct event names No count limit 500 per app
Properties per event No count limit 25 parameters
Raw event access Direct, in your database Via BigQuery export
Report freshness Queries read events as they land Processing can take 24 to 48 hours
Mobile & SDKs
Flutter SDK Yes Yes
Native Android SDK Yes Yes
Native iOS SDK Yes Yes
Web SDK Yes Yes
Unity & C++ SDKs Not in Pug Yes
Server-side events Node, Go, and Ruby SDKs Measurement Protocol
Access & AI assistants
Team sign-in Google Workspace or your own OIDC provider Google accounts and groups
MCP server for analytics Hosted, with insight and dashboard tools Local server with no Analytics tools
Beyond analytics
Crash reporting Not in Pug Yes
Remote config & feature flags Not in Pug Yes
A/B experiments Not in Pug Yes
Auth, database, and hosting Not in Pug Yes

Checked November 21, 2026 by Praveen Kumar, who builds Pug. Sources: Firebase pricing, Analytics overview, collection limits, data freshness, BigQuery export, project IAM, Firebase MCP server, log events, user properties, user ID, Analytics API (Swift). Prices change, so confirm them on Firebase Analytics’s site before you decide.

No 500-event ceiling

Firebase reports on up to 500 distinct event names per app, with 25 parameters per event. Pug caps neither: track any event name with any properties, and filter every insight by them.

Reports that keep up with your release

Firebase Analytics reports through Google Analytics, whose docs say data processing can take 24 to 48 hours. Pug queries raw events as they land, so the funnel you ship in the morning is readable the same day.

Raw events without the BigQuery detour

Getting your own event-level data out of Firebase means wiring up a BigQuery export and paying for what you query. Self-hosted Pug stores every event in your own ClickHouse, unsampled and queryable from day one.

The honest part

Where Firebase Analytics is still the better choice

Firebase Analytics has each of these and Pug doesn’t. If your team needs one, Firebase Analytics is the better fit.

  • Free at any event volume, with no infrastructure to run
  • Crashlytics, Remote Config, A/B testing, and Cloud Messaging in one console
  • Unity and C++ SDKs alongside Android, iOS, and Flutter
  • BigQuery export of raw events, free within the BigQuery sandbox limits
  • Links to Google Ads and AdMob
  • Auth, Firestore, Functions, and hosting behind the same project
Migrating

Moving from Firebase Analytics to Pug

Each Firebase Analytics call has a Pug call on the same platform; these rows are the iOS SDK, and the Android and Flutter SDKs use the same names.

Firebase Analytics Pug What changes
Analytics.logEvent("share_image", parameters: [...]) Pug.track("share_image", properties: [...]) Same name and parameters. Pug event names take ASCII letters, digits, _, . and -, and no count of names or properties is capped.
Analytics.setUserID("123456") Pug.identify("123456") Merges the anonymous history into the person. The iOS and Android SDKs have no cookieless mode, so it sends at once.
Analytics.setUserProperty(food, forName: "favorite_food") Pug.identify(id, traits: ["favorite_food": food]) User properties become traits on the person, set in the same call as the id.
Analytics.setDefaultEventParameters([...]) No equivalent The iOS SDK has no default parameters. Pass the value on each track call.
Analytics.resetAnalyticsData() Pug.reset() On logout: a new anonymous id and session, and no user id.
  • Screen views need no call: the iOS SDK tracks a screen_view per view controller and the Android SDK per activity. Name a SwiftUI view with .pugScreen("Products"), and call Pug.screen("Settings") for any other screen.
  • On Flutter, add PugRouteObserver to your navigator observers for screen views, and send events with Pug.track(name, props: {...}).

Pug has no importer for Firebase Analytics’s history, so it counts from the day its SDK goes in: run both until the reports you rely on are rebuilt in Pug. To bring an export across, the Node SDK’s track() takes a timestamp option.

What Pug does well

What ships in Pug today

Pug ships autocapture on the web, seven insight types (trends, funnels, retention cohorts, segmentation, user flows, Top-K and a map), unified profiles, dashboards and a Live view, in the AGPL-3.0 server and on Pug Cloud alike. A self-hosted install is the pug Go binary on PostgreSQL, ClickHouse, NATS and Dragonfly, with no plans or limits.

Is Pug a Firebase Analytics alternative?

For product analytics, yes. Pug covers what teams open the Firebase console for (trends, funnels, retention cohorts, user flows, and a profile per person) as open source you can self-host. It is not a replacement for the rest of Firebase: Crashlytics, Remote Config, Auth, and Firestore have no Pug equivalent.

Does Pug work with Flutter?

Yes. Run flutter pub add pug_flutter, await Pug.init() before runApp(), and lifecycle tracking starts; add PugRouteObserver to your navigator observers for screen views. Events are queued locally and sent in batches, so a flaky connection doesn’t lose them.

What about native iOS and Android?

Both ship. Native Android is sh.pug:android on Maven Central, a Kotlin SDK; native iOS is a Swift package for iOS 15 and later, added with Swift Package Manager from https://github.com/pug-sh/sdk-ios. Each records app opens and closes, installs and updates, and screen views on its own, and keeps unsent events through restarts. On iOS a screen view is a view controller, so a SwiftUI screen counts once you name it with .pugScreen("Products"). Neither has a cookieless mode (consent is granted by default) or push. A React Native SDK is in development; until it ships, a React Native app can send events to the same backend over the HTTP API.

Does Pug have Firebase’s 500-event limit?

No. Pug ships a catalog of well-known event kinds with typed methods, and any event name you invent is equally valid, with as many properties as you want. Nothing is dropped once you pass a count.

Can I keep Firebase and add Pug?

Yes, and you should during a cutover. Keep Firebase for crash reporting, Remote Config, and messaging, and send the same events to Pug for product analytics. Analytics history never transfers between tools, so running both while your dashboards fill in is the low-risk path.

Does Pug replace Firebase Cloud Messaging?

No. Pug sends no messages, and the Flutter SDK’s device registration isn’t available yet, so keep FCM. If your app already receives notifications, the Flutter SDK’s typed notificationReceived, notificationClicked and notificationDismissed events record them in Pug.

What does Pug cost next to Firebase Analytics?

Firebase Analytics has no charge on either the Spark or the Blaze plan. Self-hosted Pug is free under AGPL-3.0, and Pug Cloud is free up to 100k events a month, then $1 a month plus graduated per-event rates: 1M events a month bills $19.00 (checked November 2026). What Firebase costs you is that the data lives in Google’s cloud, on Google’s terms.

Can my team sign in with SSO?

Firebase project members are Google accounts, service accounts or Google groups. Pug signs people in through Google Workspace or your own OIDC provider such as Okta or Microsoft Entra ID, with verified domains and Require SSO, on every plan.

Send your first event.

Create a project, add the snippet, and watch the Live view fill up. Or open the demo first: the real dashboard on a sample pet shop, with no sign-up.

Questions? Email hello@pug.sh