A Firebase customer dashboard is a reporting view you embed in your product that reads live data from Firestore, the document database most mobile-first SaaS apps already run on. If your product’s operational data (usage events, plan limits, invoices, activity logs) lives in Firestore collections, you can turn it into charts your customers see inside your app without building a reporting pipeline, replicating to a warehouse, or writing a custom charting frontend. This guide walks through the whole path: how Firestore data maps to dashboard widgets, the three ways to get it out of Firebase and into a dashboard tool, the security rules that keep tenants apart, the read-cost math that decides your refresh cadence, and where Embedful fits when you want the dashboards shipped this week.

Mobile-first SaaS teams hit the same wall at roughly the same point. The app runs on Firebase because it ships fast: auth, Firestore, cloud functions, hosting. Then customers start asking for their own usage dashboards, and the reporting stack turns out to be missing entirely. Firestore is a document store optimized for app reads, not analytics reads, and BI tools were built around SQL. That gap is real, and this post is about closing it without rebuilding your data layer.

By the end you will know which of the three extraction patterns fits your product, what it costs in Firestore reads per refresh, and how to keep one customer from ever seeing another’s rows.


Firebase customer dashboard: phone app on one screen feeding live charts on a laptop dashboard
Photo: Luke Chesser / Unsplash

Why customer dashboards are harder on Firebase than on PostgreSQL

On a classic SQL stack, the reporting path is almost boring: open a read replica connection, run an aggregate query, render charts. Firestore breaks that flow in four specific ways, and every design decision downstream follows from them:

  • No joins. Firestore queries run over one collection at a time. A dashboard that needs “usage events joined with plan limits” has to assemble that row set in code, not in SQL.
  • No aggregation functions (in most regions). There is no SUM(), COUNT() over large ranges, or GROUP BY. Counting a month of events the naive way means downloading every matching document.
  • Reads are metered. Every document read is billed. A dashboard that re-runs a 50,000-document scan on every viewer refresh is a real invoice line, not just a performance concern.
  • No direct database protocol. There is no wire protocol a BI tool can connect to the way it connects to Postgres. Everything goes through the Firebase SDKs, the REST API, or an export pipeline.

None of this blocks customer dashboards. It means the data has to reach your dashboard tool through one of three deliberate patterns (next sections) instead of a casual SQL connection, and the Firestore quotas documentation is the primary reference for why analytics-style scans hit those walls.

What Firestore data is worth showing customers

The collections that earn their place in a customer-facing dashboard are the ones customers already ask support about. The pattern repeats across SaaS products built on Firebase:

Firestore dataCustomer question it answersBest widget shape
Usage events collection (one doc per event)“How much did we use this month?”Daily line chart + monthly counter
Plan / quota document per tenant“Are we close to our limit?”KPI gauge, percent-used bar
Invoices or billing docs (Stripe sync, etc.)“What are we being charged?”Monthly table + spend trend
Activity / audit log collection“Who did what last week?”Recent-activity table
Connected accounts, seats, integrations“Is onboarding working for our team?”Counters + adoption bar chart

Notice what is not on the list: raw event streams. Customers do not want 40,000 documents rendered; they want the answer at the top of that pile. Every Firestore dashboard you ship should sit behind an aggregation step, and the next section is where that step lives.

How to get Firestore data into a dashboard: three patterns

Every Firebase reporting architecture is one of three patterns. Pick based on how fresh the dashboards need to be and how much engineering you want to own.

Pattern 1: Aggregation layer in your backend (recommended default)

Run a scheduled Cloud Function (every 5-60 minutes) that reads the raw events, aggregates them per tenant into small summary documents, and writes them to a daily_usage style collection. The dashboard then reads only summaries: tens of documents per tenant instead of tens of thousands.

// Scheduled Cloud Function, runs every 30 minutes
// Reads raw events for the current day, writes one summary doc per tenant
const functions = require('firebase-functions');
const { getFirestore } = require('firebase-admin/firestore');

exports.rollupUsage = functions.pubsub.schedule('every 30 minutes').onRun(async () => {
  const db = getFirestore();
  const day = new Date().toISOString().slice(0, 10);
  const tenants = await db.collection('tenants').get();
  const batch = db.batch();
  for (const tenant of tenants.docs) {
    const events = await db.collection('events')
      .where('tenantId', '==', tenant.id)
      .where('date', '==', day)
      .get();
    const summary = { date: day, events: events.size, apiCalls: 0 };
    for (const e of events.docs) { summary.apiCalls += e.data().apiCalls || 0; }
    batch.set(db.doc(`daily_usage/${tenant.id}_${day}`), summary);
  }
  await batch.commit();
});

This is the standard Firestore reporting shape: aggregate on write, read small. It fixes the cost problem (one aggregation pass per tenant per interval instead of one scan per viewer refresh) and the speed problem at the same time. The Firestore get-data documentation explains why the naive “query everything” version stops scaling around a few thousand documents.

Pattern 2: Direct REST API reads for small collections

Firestore exposes a documented REST API, so a dashboard tool with an HTTP data source can read collections directly with a service account bearer token. This works when the collections are small and bounded per tenant: plan documents, quota counters, pre-aggregated summary collections. It does not work for analytics scans over large event collections, because every refresh re-reads every document at full metered cost.

The rule of thumb: direct REST reads are fine under a few hundred documents per tenant per refresh, and a poor idea above a few thousand.

Pattern 3: Export to a SQL warehouse for heavy analytics

For dashboards that need joins across years of history, the Firestore export pipeline to BigQuery (native time-travel exports plus datastreams) moves documents into a queryable warehouse. That is the right answer for large-scale analytics, and the wrong answer for “show my customer this month’s usage chart,” because it adds a pipeline, a second bill, and days of setup. If you end up here, your dashboards read from BigQuery or Postgres (via a foreign data wrapper), not Firebase.

How dashboard tools consume Firestore: direct connection, REST, or export

With the aggregation layer in place, connecting a dashboard tool becomes a one-time setup. The three consumption modes map to the patterns above:

  • Direct database connection. Tools that speak Firebase natively take a service account credential and query Firestore server-side. Embedful lists Firebase alongside PostgreSQL and MySQL as a direct database source on its Pro and Agency plans, which covers the common case: one connection, every tenant’s summary collections, charts rendered from there.
  • REST data source. Tools with an HTTP/JSON source (Embedful’s API source works from its Starter plan up) can read the Firestore REST API directly, pointed at your summary collections. No database credential crosses the wire; a scoped service account key does the auth.
  • Warehouse connection. If you chose Pattern 3, the dashboard tool connects to BigQuery/Postgres like any SQL source, and Firebase is out of the reporting loop entirely.

The decision table below summarizes which mode fits which situation:

SituationRecommended modeWhy
Summaries exist, want live customer dashboardsDirect connection (Pro-tier tools) or REST sourceSmall reads, no pipeline, fastest to ship
Data only exists as raw eventsBuild the aggregation layer firstCost and latency make direct scans unsustainable
Multi-year analytics, joins across collectionsExport to BigQuery, connect via SQLFirestore is not built for analytical scans
No dev time available this quarterREST source + scheduled rollups via Cloud FunctionsOne function plus a config screen, no frontend work

Tenant security: keeping every customer in their own lane

Customer-facing dashboards make this non-negotiable: the viewer’s tenant must be enforced on every read path, and Firestore security rules alone are not enough, because a dashboard tool authenticates as a service account with broad access. The service account is trusted infrastructure; your dashboard queries must scope by tenant id server-side, and the tool must pass the viewer’s tenant at query time.

The layered setup that holds up in audits:

  1. Service account scoped to reporting. Create a dedicated Firebase service account whose role grants read access to only the summary collections. Not firestore.admin, not project owner.
  2. Tenant parameter on every query. The dashboard layer filters where('tenantId', '==', viewerTenant) derived from the authenticated session, never from a URL parameter the viewer controls.
  3. Security rules as a second net. Rules that require request.auth.token.tenantId == resource.data.tenantId protect app-side access; they do not bind service accounts, which is exactly why layer 2 exists. The Firebase security rules documentation describes the trust boundary between client SDKs and privileged servers.
  4. Cross-tenant tests in CI. One automated test per dashboard: authenticate as tenant A, assert zero rows from tenant B. Same discipline as row-level security for SaaS, applied to a document store.

If your product uses JWT-based viewer auth when embedding dashboards, the tenant id belongs in the signed claims, and the dashboard layer derives every query filter from them. The JWT authentication guide for embedded dashboards covers that handoff end to end.

Firestore read costs: what a dashboard actually bills

Because Firestore bills per document read, refresh cadence is a pricing decision, not just a UX one. The math for a product with 200 tenants showing a 30-day usage chart (30 summary documents per tenant):

DesignReads per refresh cycleMonthly reads (200 tenants)
Raw events queried live, 500 events/tenant/day, 30 days~15,000 per tenant~90M reads/month at daily refresh
Summary collections read live (30 docs/tenant)30 per tenant~180K reads/month at daily refresh
Summaries + rollup job every 30 minRollup: ~500/tenant/hour; dashboard reads stay tiny~7.2M rollup + 180K read/month

Two practical levers keep this boring: refresh at the cadence of the underlying data (usage counters that update hourly do not need a 30-second dashboard refresh), and cache per tenant so fifty viewers on one account cost one read set. The Firestore pricing page lists current per-document rates; run the table above with your own collection sizes before you commit to a refresh interval.

A worked example: usage limits dashboard from Firestore in an afternoon

Concretely, here is the shortest path for the most common request: customers see their monthly usage against plan limits, inside your product. Assume a Firebase app with an events collection and a tenants/{id} document holding planLimit.

  1. Add the rollup function. The scheduled Cloud Function from Pattern 1 writes daily_usage/{tenantId}_{date} documents. Deploy it, run it once backfilling 30 days.
  2. Create a reporting service account. Role: read-only on daily_usage and tenants. Issue the key to your dashboard tool, not to browsers.
  3. Connect the dashboard tool. Embedful connects to Firebase as a direct database source on Pro (the same connection serves all tenants), or to the Firestore REST API as an HTTP data source on Starter. Point it at daily_usage.
  4. Build three widgets. A KPI counter for month-to-date events, a gauge for percent of plan limit used, and a line chart of daily usage for 30 days. All read summary documents only.
  5. Scope per tenant. The viewer session carries the tenant id (JWT claim), the dashboard filters tenantId from it, each customer sees exactly one lane of charts.
  6. Embed it in the product. The dashboard renders inside your app under your brand. The mechanics are identical for Firebase and SQL sources, covered in how to embed a dashboard in a SaaS application.

Where Embedful fits honestly: it is built for exactly this shape (multi-tenant, customer-facing, white-label dashboards on live sources) and supports Firebase as a direct database connection on Pro and Agency plans, with API/REST sources from Starter up. What it does not do: replace Firestore, run your Cloud Functions, or render inside the Firebase console. It reads the data you already have and ships the reporting surface. The pricing page lists which sources are on which plan; customer-facing dashboards (the subject of this post) are a Pro-and-up capability.

Frequently asked questions

Can I connect BI tools directly to Firestore?

Not through a SQL protocol: Firestore has no Postgres-compatible wire endpoint, which is why every Firebase dashboard architecture goes through an SDK, the REST API, an export pipeline, or a tool with native Firebase support. Tools that claim “direct” Firebase connections use the server SDKs under the hood, which is the correct mechanism.

Do Firestore security rules protect my dashboard data?

Partially. Rules govern client SDK access; a dashboard tool authenticating as a service account bypasses them by design. Tenant isolation for dashboards has to be enforced in the query layer (filter by tenant id from verified session data) with rules as a secondary net for app-side traffic.

Should I use Realtime Database or Firestore for dashboard data?

Whatever your product already runs. Firestore is the better fit for structured, queryable collections and has the documented REST API and export pipelines that reporting needs. If you are on Realtime Database, the practical path to charts is a scheduled export/sync into Postgres, then a SQL dashboard source.

How fresh should Firebase-backed customer dashboards be?

Match the data’s real update cadence. Usage counters aggregated hourly refresh every 15-60 minutes; billing data daily; quota meters that gate features need 1-5 minutes with per-tenant caching underneath. Sub-minute refresh on Firestore reads multiplies your bill for no customer-visible benefit.

What is the cheapest way to add customer dashboards to a Firebase app?

The aggregation layer plus a dashboard tool with an API/REST source: one Cloud Function, zero frontend code, and read costs that stay flat as viewers grow. Direct warehouse export is more powerful and more expensive; custom charting in your app is the most expensive option once you count engineering weeks.


Related Articles

Related: FillJuno vs Typeform comparison on the FillJuno blog.