
Firebase
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Firebase to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Connect a Firebase project to pull Cloud Firestore collections, Firebase Auth users, and Realtime Database paths into the PostHog Data warehouse.
Create a service account key in the Firebase console under Project settings, Service accounts, Generate new private key, then upload that JSON file here. Grant the service account Firebase Viewer to read Auth users, Cloud Datastore Viewer to read Firestore, and Firebase Realtime Database Viewer to read the Realtime Database.
Configuration
| Option | Type | Required |
|---|---|---|
Firebase service account JSON key file | file-upload | Yes |
Firestore database ID | text | No |
Realtime Database URL | text | No |
Realtime Database paths | text | No |
Linking Firebase to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Firebase
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import