This is a Jitsu.Classic documentation. For the lastest version, please visit docs.jitsu.com. Read about differences here.
Firebase
Overview
The Firebase connector can sync users and any collection from the Firestore cloud.Firebase exposes following collections: users
, firestore
How to connect
Following authorization methods are available for Firebase Analytics- Service Account β you'll a) create a service account in Google Cloud Console b) share google resource (such as document or analytics property) with this account (account email look like
[username]@jitsu-customers.iam.gserviceaccount.com
) c) put Service Account Key JSON (available in Google Cloud Console) in the field below
2. Obtaining access through Service Account
At first, create or select Google project. There is a good manual on how to do that
Then create a new Google Service Account:
- Go to the Service Accounts page
- Click "+ Create Service Account"
- Fill Service account name and press DONE
- Click on the Email of created account in Service Accounts table, go to "KEYS" tab
- Click "ADD KEY" β "Create new key" β Select JSON β "CREATE"
- Service Account JSON (private key) will be in downloaded file
Connection Parameters
Parameter | Documentation |
---|---|
auth.type *One of: Service Account (required; default: Service Account ) | Jitsu provides two types for authorizing access to Google Services:
|
key *json (required) | Use Google Cloud Console to create Service Account get Service Key JSON |
project_id *string (required) | Firebase Project ID from the Project Settings page. |
Collection parameters
Collection is a set of objects that have the same structure and will be mapped to the same table in destination database. Collection may be configurable, and connector can synchronize several collection of the same type. If you're familiar with object-oriented programming, think of collection as class which can have multiple instances.Firebase exposes following collections: users
, firestore
Collection configuration: users
#
This collection has no config parameters
Collection configuration: firestore
#
Parameter | Documentation |
---|---|
collection *string (required) | Firestore collection ID. Can include wildcard for example: 'collection/*/sub_collection' will synchronized only sub collections from all objects in 'collection' |