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.
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.
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.
- 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.
- 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 apps, Apple TV, Roku, CTV and Web Apps on Firebase.
- Open your Firebase project.
- Open the same project where your iOS and Android apps are registered.
-
Click on "Add App" and add a new Web App.
- Give a name to your Web App. We recommend using your actual App name. Click on the Register app.
- 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.
This will add a new Web App stream to the Data Stream.
-
Now navigate back to the Data Streams on the Google Analytics portal, under Admin.
-
Click on the Web app that is displayed on this page. (This is the same web app you registered on Firebase)
- Here you will find your app's GA Measurement ID. Save this ID. We will use this in the later steps.
- Scroll down on the current page and click on Measurement Protocol API Secret.
- Click on Review Terms > Create to create a new API Secret key. Enter a name for the key and click on Create again.
- 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.
Now, we will grab the Cloud Messaging API Key from the Firebase Project
- Click on the Cog Wheel icon, on your Firebase Project Dashboard page and open your Project Settings.
- Navigate to the Cloud Messaging tab in Project Settings.
-
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.
- Once enabled you will find the Server API Key under the Cloud Messaging tab.
- Copy this Server API Key, we will need it in the next step.
Now that we have captured the Server API Key, GA4 API key, GA Measurement ID, Firebase Measurement ID, google-services.json and GoogleService-Info.plist. We'll add them to the Apps Creator Dashboard.
- Open Zype Apps Creator Dashboard and Navigate to Apps Creator >> Analytics >> Settings and enable Firebase Analytics.
- Click on Edit (next to Firebase Analytics) and add the Firebase Measurement ID, GA 4 API key and GA4 Measurement ID, and click on Save.
- Now navigate to Content >> Channels >> Channel Setup >> Google Play (Android). Click on one time details for Android. 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 Service JSON text box and click on Save.
Please remove the existing {} Curley braces from the text box before pasting the JSON content.
- Now navigate to Content >> Channels >> Channel Setup >> Apple (iOS). 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) and click on Save.
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.
- Adding Custom Definitions in your GA4 Property.
- Providing access to devaccounts@mazsystems.com