📊Google Analytics
Integrate Google Analytics and track events from your app
With the Google Analytics integration, you'll be able to track app events and analyze how your users are using the app.
In order to integrate this feature, you'll need to create a Firebase project.
This feature is available for the Advanced and Business App plans. Also, you'll need to create an app bundle with latest Firebase configuration files and publish the app to start tracking events. Alternatively, you can upload your iOS bundle to Testflight or create a debug APK to test this feature without publishing the app.
Follow the steps below to start using this feature in your apps!
1. Configure your Firebase project
If you already have connected a Firebase project to your app, you can jump to this step.
First, create a new Firebase project. You'll need to have a Google account, or create a new one.
Create a new project
When creating a new project, select the option "Enable Google Analytics":
After accepting the terms, you'll be redirected to the overview page. Here, you'll need to create one app for Android and another one for iOS. To do that, click on the icons shown in the home page:
In the Register App
step, you'll need to fill in the bundle ID (iOS) or package name (Android) for your app. These need to match with the ones you've indicated in the Publish
section of your Bravo app project.
After registering the app, download the configuration files (GoogleServices files) for both the Android and iOS apps, since you'll need to add them into Bravo.
2. Enable Google Analytics
In case you selected Enable Google Analytics
when creating the Firebase project, you can skip this section.
To enable Google Analytics in your Firebase project, go to Analytics
-> Dashboard
. Here, click on Enabling Google Analytics
.
In the first step, select Default account for Firebase
. Remember to update the Firebase configuration files in Bravo, when you do a change in Firebase configuration, like enabling Firebase Analytics.
Now the Firebase setup is ready! To start using analytics in your app, jump to the next section to see how to set up your Bravo project.
3. Setting up Google Analytics in your Bravo app project
Upload the two Google Services files for iOS/Android in the
Integrations
->Firebase Config
section of your app project, in case you haven't done that yet. You'll need to upload the files in the final app section. Analytics can't be tested on Bravo Vision.
2. Go to Integrations
-> Analytics
and enable Firebase Analytics
.
If you miss to enable Firebase Analytics in your Bravo app project, Google Analytics will only show limited events from Android phones (none from iOS). To fix this, enable Firebase Analytics in Bravo and Firebase console, update the files in Bravo and generate new builds for both OS.
3. Create new app bundles
After setting up the analytics feature, you'll need to create new app bundles for iOS and Android. In case you haven't created them yet, follow the Publication section to learn how to do that.
Once the app bundles are live, you should be able to start tracking analytics for your app in your Firebase project!
Last updated