Firebase and Google Analytics
Connect a Firebase project once with Google sign-in. Its Google Analytics property answers most dashboard charts.
Connect
- On the Applications page, Connect Google account with a Google account that can see the Firebase project. (A new workspace does this in onboarding, at Connect Firebase.)
- Add app, at the top of the sidebar, and pick the project. Apprvd.app finds its Google Analytics property on its own.
Apprvd.app asks Google for these scopes and nothing wider (no cloud-platform):
| Scope | Why |
|---|---|
| openid, email | Know which Google account was connected |
| firebase.readonly | List the account's Firebase projects and find each one's Analytics property |
| analytics.readonly | Dashboard numbers Google Analytics answers, through the Google Analytics Data API |
| firebase.messaging | Send the pushes you compose or automate |
| datastore | Read push tokens, and your server's push counts, from Firestore. Google grants it read-write, since Firestore has no read-only scope; Apprvd.app only reads |
The refresh token is stored encrypted (AES-256-GCM). Removing the connection revokes the grant at Google, unless another connection still uses that Google account.
Google Analytics must be linked
Every Google Analytics chart reads the property the Firebase project reports into. Most projects have it on; if not, Firebase console → Project settings → Integrations → Google Analytics, enable it, then in Apprvd.app Data sources → Google (Firebase Analytics) → Re-detect.
A connection made before Apprvd.app asked for Analytics access fails every report. The app says “Reconnect Google to load analytics”, with the fix one click away.
What helps on the app side
setUserIdon sign-in, with the same id you pass toApprvd.identify.- Device-based reporting identity (GA4 Admin → Reporting identity) if the app calls
setUserIdat sign-up and you use GA4 funnels: otherwise GA4 splits a person at sign-up and a funnel spanning it undercounts every later step. Tracker funnels don't have the problem. - Named screens for Flows: a
screen_viewwith no screen name can't be followed.
Freshness
Answers are stored and refreshed about hourly, so pages load at once. Data sources → Google → Sync now refreshes every stored answer for the app; a page's Refresh clears them, and each page asks Google again when next opened. GA4 needs a day or two to process events: yesterday is the newest complete day.