Start a conversation

Google Analytics via Firebase Update

What is Google Analytics (GA) and what is changing? 

Google Analytics (GA) is used for tracking the usage of your apps. In October 2019, Google is changing the underlying software to use Firebase to track apps. This means all apps that are currently using Google Analytics need to re-configured using the new software ahead of 31st October 2019. 

Do I need to do this? 

No, it’s optional. If you have the Fliplet Analytics enabled in your app you don’t need to use Google Analytics. 

If you currently use GA for your app analytics and do not update your settings, no data will be logged after October 2019. 

Set up Google Analytics

You can follow this short video to set up Google Analytics for all platforms (iOS, Android, and Web) or read the sections below.


Set up GA tracking for iOS apps

  1. Go to https://analytics.google.com/analytics/web/ and log in to your GA account

  2. Under Admin, create a new property

  3. Select "App + Web"  when asked about the type and give it a name

  4. Then select the iOS and add the following details:

    1. Register the app, for this you need to find the Bundle ID for your app in Fliplet Studio. These need to be exact matches, otherwise your app won’t log any data 

    2. You can get the bundle ID from Fliplet Studio if you go to: Publish > Publish to Apple > App technical details > Bundle ID

    3. Add an app name and then click “Register app”

  5. Once ready, click the button “Download GoogleService-Infor.plist” 

  6. Under “Add Firebase SDK” you don’t need to do anything, so just click  Next

  7. Under “Add initialisation code” you don’t need to do anything, so just click  Next

  8. GA will try to test the installation, skip this step as we will explain how to test this later in the process

  9. Go to Fliplet Studio > Publish > Publish to Apple devices > App analytics

  10. Under Firebase analytics, click the “Browse .plist file” button and upload the file you downloaded from GA

  11. The new analytics will only work when a new IPA is distributed. Either click save progress or request the app if you are ready with all the submission details.

Set up GA tracking for Android apps

  1. Go to https://analytics.google.com/analytics/web/ and log in to your GA account

  2. Under Admin, create a new property

  3. Select "App + Web"  when asked about the type and give it a name

  4. Then select Android and add the following details:

    1. Package name: this will need to match the bundle ID in Fliplet. You can get the bundle ID from Fliplet Studio if you go to: Publish > Publish to Android > App details > Bundle ID

    2. Add an app name and then click “Register app”

  5. Wait while Google moves through the steps in Provision and Configure Google Cloud project. Once ready, click Next.

  6. Download the google-services.json file to your computer and click Next.

  7. Under “Add firebase SDK” you don’t need to do anything, so just click  Next

  8. GA will wait to analyze data from your app. You can leave this screen up or click skip this step in the bottom right.

  9. Go to Fliplet Studio > Publish > Publish to Android devices > App analytics & push

  10. Under Firebase analytics, click the “Upload Firebase .json file” button and upload the file you downloaded from GA.

  11. The new analytics will only work when a new apk is distributed. Either click save progress or request the app if you are ready with all the submission details.

Set up GA tracking for Web apps

  1. In Fliplet Studio go to: Publish > Publish to Web and click Publish. Copy the URL of your web app. 

  2. Go to https://analytics.google.com/analytics/web/ and log in to your GA account

  3. Under Admin, create a new property

  4. Select "App + Web"  when asked about type and give it a name

  5. Then select Web and add the following details:

    1. Website URL: Insert the URL you copied in step 1, make sure you select ‘https://’ from the dropdown and remove it from the front of your pasted text.

    2. Stream Name: give the stream any useful name

  6. Click Create Stream

  7. Copy the MEASUREMENT ID listed in the upper right.

  8. In Fliplet Studio, under the Publish to web section paste the ID and click Save.

  9. Publish an in-app update.

How do I test that Analytics is working?

  1. Once you have the new ipa/apk installed on a device, open it and click around a few screens so you’ll be able to see some test data 

  2.  Go to Google analytics and open your new property

    • It will have been added automatically when the Firebase project was setup

  3. Select the Home option, where you can see various reports including active users in the past 30 minutes. Give this a few minutes to update, then you should be able to see at least one active device as you are testing it.

  4. If no data is showing make sure: 

    1. The Firebase project has been setup correctly

    2. The .plist/.sjon files were uploaded to Fliplet Studio

    3. You are using the latest ipa/apk

    4. If you checked all of the above, but still can’t see any data after an hour contact support@fliplet.com and we will help you 

Note: This can take up to 1 hour to log any events.

How do I get common data from Google Analytics e.g. users, sessions, screens, events?

  1. Go to Google Analytics, and find your app property 

  2. Set your date parameters then find:

    1. Users - under Reports > Users 

    2. Screens - Reports > Behaviour > Views by Page Title and screen class 

    3. Events - Reports > Behaviour > Even count by Event name 

What happens to my existing GA data?

The existing data will still be available for reference and reporting in GA until January 31, 2020. After this time, past GA data will be deleted by Google.

Can I migrate my data? 

As far as we know, you can’t migrate or combine the old GA reporting with the new Firebase GA reporting. 

This means that to get historic data, you will have to use the old GA property and for new data you will have to use the new Firebase GA property. 


Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Brett Johnson

  2. Posted
  3. Updated

Comments