Adding Data Streams Through Firebase Adding Data Streams Through Firebase

Adding Data Streams Through Firebase

When you add an app data stream, Analytics creates a corresponding Firebase project and app data stream, and automatically links the Firebase project to your property if your project and property are not already linked.

Before adding a data stream, you will require an iOS bundle ID and an Android bundle ID(Package name). This is a unique ID for your apps. Please refer to this article to get bundle IDs for your app.

In the Property column, click on Data Streams.


Screenshot 2023-06-20 at 9.59.30 PM.png


Add an iOS Data Stream

  • Click Add stream > iOS app.
  • Enter the iOS bundle ID, and the app name, then click Register app.
  • Download the GoogleService-Info.plist config file for your app and click Next.
  • Now skip the remaining steps by clicking Next on each page.
  • Click Skip this step.

    Screenshot 2023-06-20 at 10.10.15 PM.png

A new iOS data stream will be added to the iOS Data Streams.

Add an Android Data Stream

After adding the iOS data stream, reload the web page.

  • Click Add stream > Android app.
  • Enter the Android bundle ID in the Package name and the app name, then click Register app.
    If you see the error During the creation of the data stream, the related Firebase project was only partially configured. Try again to create the data stream. Please reload the web page and add the Android app stream again.

    Screenshot 2023-06-20 at 10.27.36 PM.png

  • Download the google-services.json config file for your app and click Next.
  • Now skip the remaining steps by clicking Next on each page.
  • Click Skip this step.

Screenshot 2023-06-20 at 10.34.20 PM.png

  • A new Android data stream will be added to the Android Data Streams.

Add a Web Data Stream

We'll be adding Web Data Stream directly to the Firebase portal. This will register your Amazon appsApple TVRokuCTV and Web Apps on Firebase.

  1. Open your Firebase project.
  2. Open the same project where your iOS and Android apps are registered.
  3. Click on "Add App" and add a new Web App.

    Screenshot 2023-06-21 at 1.09.20 PM.png

  4. Give a name to your Web App. We recommend using your actual App name. Click on the Register app.

    Screenshot 2023-06-21 at 1.18.30 PM.png

  5. In this step, the Firebase SDK with the relevant information will be displayed. Grab the measurementID from here. This is your app's Firebase Measurement ID. Save this ID. We will use this in the later steps. Now click on Continue to Console.


    Screenshot 2022-07-25 at 5.45.15 PM.png

    This will add a new Web App stream to the Data Stream.

  6. Now navigate back to the Data Streams on the Google Analytics portal, under Admin.

    Screenshot 2023-06-21 at 2.02.56 PM.png

  7. Click on the Web app that is displayed on this page. (This is the same web app you registered on Firebase)

    Screenshot 2023-06-21 at 1.59.56 PM.png

  8. Here you will find your app's GA Measurement ID. Save this ID. We will use this in the later steps.

    Screenshot 2023-06-21 at 2.55.27 PM.png

  9. Scroll down on the current page and click on Measurement Protocol API Secret.

    Screenshot 2023-06-21 at 2.58.32 PM.png

  10. Click on Review Terms > Create to create a new API Secret key. Enter a name for the key and click on Create again.

    Screenshot 2023-06-21 at 3.01.45 PM.png

  11.  Copy the Secret value once the secret is created. This is your GA4 API key. Save this Key. We will use this in the later steps.

    Screenshot 2023-06-21 at 3.02.59 PM.png

Now, we will grab the Cloud Messaging API Key from the Firebase Project

  1. Click on the Cog Wheel icon, on your Firebase Project Dashboard page and open your Project Settings.

    Screenshot 2023-06-21 at 3.08.49 PM (1).png

  2. Navigate to the Cloud Messaging tab in Project Settings.

    Screenshot 2023-06-21 at 3.11.55 PM.png

  3. You need to grab the Cloud Messaging API key from this page. However, you may find that the Cloud Messaging API (Legacy) is disabled for your account by default. You can enable it by Clicking on the three dots in the right corner and then clicking on "Manage API in Google Cloud Console". This will take you to the Google Cloud Console Dashboard, where you can enable this API.

    Screenshot 2023-06-21 at 3.11.55 PM (1).png

    Screenshot 2023-06-21 at 3.14.44 PM.png

  4. Once enabled you will find the Server API Key under the Cloud Messaging tab.

    Screenshot 2023-06-21 at 3.18.15 PM.png

  5. Copy this Server API Key, we will need it in the next step.

Now that we have captured the Server API KeyGA4 API keyGA Measurement IDFirebase Measurement IDgoogle-services.json and GoogleService-Info.plist. We'll add them to the Apps Creator.

  1. Login to your Apps Creator Dashboard and navigate to Manage > Platforms > Google Play. Scroll down to the Developer Access Settings section. Here, paste your Server API Key in the Firebase API Key text box (make sure there are no additional spaces at the front or end of the key). Now, open the google-services.json file and copy and paste the content into the Firebase JSON text box.
    Please remove the existing {} Curley braces from the text box before pasting the JSON content.

    Screenshot 2023-06-26 at 7.55.06 PM.png

  2. Navigate to Manage > Platforms > Apple. Scroll down to the Firebase Settings section. Here, upload your GoogleService-Info.plist file and paste your Server API Key in the Firebase API Key text box (make sure there are no additional spaces at the front or end of the key). The Form will Auto Save.

    Screenshot 2023-06-26 at 7.58.44 PM.png
  3. Write to us at  and provide us with your GA4 Measurement IDFirebase Measurement ID, and GA4 Secret Key. We will add these to your app code.

Congratulations! You have successfully configured your new GA4 property. There are two additional steps we need to complete to finish setting up your new GA4 property.