Set Google Analytics - Firebase | iOS

Set Google Analytics - Firebase | iOS

Google Analytics is a free app measurement solution that provides insight on app usage and user engagement.
At the heart of Firebase is Google Analytics. Analytics reports help you understand clearly how your users behave, which enables you to make informed decisions regarding app marketing and performance optimizations.
The SDK automatically captures a number of events. Once the data is captured, it's available in a dashboard through the Firebase console

Mandatory requirement: To be able to use Google Analytics on your Muse mBaaS iOS native version, you must have already built your iOS app by following the review process, only once this is done you'll be able to use Google Analytics.


1. Creation of a Project Firebase

We recommend to use the same project Firebase  than the one used for your Android native app, that way you have all informations on the same Firebase project.
To use an existing Firebase project, skip to step 2. Firebase set up 
If you only published your iOS app and do not have any Android version, follow instructions below:
1. Go to https://firebase.google.com/
2. Click "Get started"
3. Login to your Google Account
4. Click "Add a project":


5. Fill in your project name
6. Click "Continue"
7. Make sure enable "Enable Google Analytics for this project" is On
8. Click "Continue"


9. Choose or create a Google Analytics account

You already have a Google Analytics account
- Select your Google Analytics account from the drop down menu
- Click "Create project"

Note: A new Google Analytics property will be created in your chosen Google Analytics account and linked to your Firebase project.This link will enable data flow between the products.

You don't have a Google Analytics account
- Select "Create a new account"
- Fill in your account name and click "Save"
- Accept the terms
- Click "Create project"

10. Once your new project is ready, click "Continue"


2. Use an Existing Firebase Project

1. Login to Firebase console   (we recommend to use the gmail address you used to build your Android native app to be able to use the same Firebase project for both your native version iOS and Android).
2. Click the existing Firebase project you wish to use
3. Go to the menu Settings > Project settings > Integration
4. Enable Google Analytics if it's not already Enabled (see step 1.9 above).



3. Firebase Set up

- In the center of the Firebase console's project overview  page, click the iOS icon to launch the setup workflow.
Note: If you've already added an app to your Firebase project, click "Add app" to display the platform options.


- Add Firebase to your iOS app:

1. Register your app
- Go to the menu Statistics > External analytics > iOS  of your Muse mBaaS backend: copy your iOS Bundle ID
Paste your iOS bundle ID on Firebase console
- Fill in an App Nick name (Optional: it will be used throughout the Firebase console to represent this app. Nicknames aren't visible to users)
- Fill in App Store ID (Optional) 
- Click "Register app"


2. Download config file
- Click the blue button "Download GoogleService-Info.plist" to save the file on your computer
- Click "Next"


3. Add Firebase SDK
- Muse mBaaS has already done this step for your app, click "Next"

4. Add initialisation code
- Muse mBaaS has already done this step for your app, click "Next" with the default settings

5. Run your app to verify installation
Click "Skip this step"


6. Go to the menu Statistics > External analytics > iOS  of your Muse mBaaS backend.
7. Click "Browse" to upload the GoogleService-Info.plist file downloaded at step 3.2 above.
8. Regenerate (rebuild)  your iOS app to integrate this file onto your iOS published app.
9. Update your app to the App store  .*

*You'll be able within 24 hours of publishing your new version iOS to the store, to see your first reports on Firebase platform

    • Related Articles

    • Set Google Analytics - Firebase | Android

      Google Analytics is a free app measurement solution that provides insight on app usage and user engagement. At the heart of Firebase is Google Analytics. Analytics reports help you understand clearly how your users behave, which enables you to make ...
    • Set Google Analytics | Progressive Web App

      1. Create your Account on Google Analytics Platform You can use your Google Analytics account to view the usage statistics for your progressive Web App (PWA). 1. Login to your Google Analytics account or register if it's not already done 2. Go to ...
    • Activity Statistics

      The Activity Statistics page allows you to follow the key indicators of your shop. 1. In the "Statistics" menu, click "Activity " You will find the following indicators: - Total sales - Average cart - Number of orders - Conversion rate of the payment ...
    • Muse mBaaS Internal Statistics | Native Apps

      Muse mBaaS allows you to see the statistics of the use of your app. This data will allow you to better understand the behavior of your users, and they will give you information on the quantity and type of traffic on your application. Statistics are ...
    • Facebook App Events - Native Apps Settings

      Integrate Meta Pixel (formerly Facebook Pixel) and the Facebook Event Analytics SDK into your app to analyze your user's behavior and optimize your marketing strategy. In order to enable Meta Pixel & App Events, you must have published your apps ...