Skip to main content

Firebase integration setup

Updated this week

In order to gather analytics from your app and send push notifications to your users you will need to create a Firebase project. Firebase is a free app development platform from Google.

1. Create a Firebase project

  1. Open up Firebase and click “Get Started”. You will have to create a Google Account if you do not already have one.

  2. Click “Create a project” (if you’re new to Firebase) or “Add project” (if you already have other Firebase projects).

  3. We recommend giving your project the same name as your application, but this is up to you.

  4. Make sure that “Enable Google Analytics for this project” is checked. If asked about sharing data with Google, it’s up to you which options you choose.

2. Grant Treefort access to your Firebase project

  1. Click the gear in the top left of your new Firebase project page (next to “Project Overview”) and choose “Users and permissions”.

  2. Click “Add Member”, enter [email protected] for the email, and choose “Editor” under “Roles”.

👉 If you get an error saying that "only users from specific domains are allowed", follow these steps before trying again:

  1. Click "Advanced permission settings" from the Firebase "Users and permissions" screen. This will take you to the Google Cloud project associated with your Firebase project.

  2. Click the project selector in the top left of the Google Cloud console. Take note of the name of your current project (there will be a blue checkmark next to it).

  3. Click the "All" tab in the project selector to reveal all projects and organizations. Select the organization that your current project belongs to. This will take you to the "IAM" page for your organization.

  4. Click the pencil next to your account in the table of "Principles". If the pencil is disabled, make sure that you are signed into Google Cloud with the account listed as "Owner".

  5. Click "Add another role", choose "Organization Policy Administrator", and save.

  6. In the sidebar on the left, click "Organization Policies".

  7. In the policy table, search for "Domain restricted sharing", click the three dots to the right of the policy, and click "Edit".

  8. Under "Rules", delete the current rule, add a new rule with the value "Allow All", and click "Set policy".

3. Grant Treefort access to your Google Analytics property

Your Firebase project should be linked to a Google Analytics (GA4) account. We’ll be making some changes to that account.

  1. Open your Firebase project settings, select the “Integrations” tab, click “View link” on the Google Analytics card, and click the link under “Linked Google Analytics account”.

  2. Click “Property Access Management” in the left-hand column of the GA4 account.

  3. Click the blue “+” button in the top right and choose “Add users”.

  4. Add a user for [email protected] with the “Administrator” role.

👉 We only need admin permissions to your Firebase and GA4 accounts during the initial setup process. After we have configured your accounts you are free to remove the [email protected] user from both accounts, although we recommend waiting to do this until your apps have successfully launched.

Did this answer your question?