Please note that this document is a draft and still not finalized.
This page describes how Google Analytics is used and integrated with Mobility web and mobile applications.
What is Google Analytics and Tag Manager?
Google Analytics
Google Analytics (GA) is an analytics service that provides statistics and basic analytical tools for search engine optimization (SEO) and marketing purposes. The service is part of the Google Marketing Platform and is available for free to anyone with a Google account.
Tag Manager
Google Tag Manager (GTM) , is a free tag management system that allows you to manage and deploy marketing tags (snippets of code or tracking pixels) on your website (or mobile app) without having to modify the code.
Connection in between Google Analytics and Tag Manager
Having both of these tools can make the lives of the developers a lot simpler. Data can be sent from GTM to GA, so you can analyze it, see trends, and have all the information needed in one place. It can be easily set up by using an appropriate ‘Trigger’ and a ‘Tag’ from Google Analytics. The triggers can also be used to select certain times the data will be sent to GA so that it can be done automatically. Likewise, these two tools can be used together to collect user-specific data and generate reports.
How to set-up, access and use Google Analytics and Tag Manager in white-labeled Mobile Applications?
Google Analytics for Firebase
Data collection (web and mobile) is done at the Google Analytics (GA) property level. The most common process for sending mobile-app-specific data to Google Analytics is by using the Google Analytics Services SDK for Android or iOS. But with the depreciation of Google Analytics Services SDK, the Firebase SDK was introduced to provide a more rich and robust service for mobile analytics. Firebase is a fully managed backend-as-a-service (BaaS) where both mobile and web applications can be developed. As mentioned previously, Google Analytics For Firebase (formally called Firebase Analytics) is one of the many services offered by the platform. It sits at the core of Firebase and integrates across numerous features provided by Firebase SDK. It gives you free and unlimited logging and reporting without any quota, any sampling and no paid tier to worry about. Simply by installing the Firebase SDK, Google Analytics automatically starts providing insight into your app.
Mobility Mobile Application
Set up Google Analytics and Tag Manager
Google Analytics ID is common and Google Tag Manager ID is unique for each white-labeled mobile application.
Admin team firebase project
Stage - BRP Stage
Production - BRP APP 5
Google Analytics ID - UA-201794476-1
Access and use Google Analytics and Tag Manager Dashboards
For a white-labeled mobile application client/admin,
Google Analytics events can be monitored through;
Firebase -> Analytics -> Dashboard or Firebase -> Project settings -> Integrations -> Linked Google Analytics account
Admin can filter analytics data from a bundle identifier (display analytics data related to a specific app)
Firebase -> Analytics -> Dashboard -> Add filter -> Stream -> Select stream
How to set-up, access and use Google Analytics and Tag Manager in white-labeled Web Applications?
How to Connect Google Analytics with Google Tag Manager
Mobility Web Application
Set up Google Analytics and Tag Manager
Google Analytics ID is common and Google Tag Manager ID is unique for each white-labeled web application.
Google Analytics ID - Universal Analytics (Admin team)
Stage - UA-197082446-1
Production - UA-133813147-3
For a white-labeled web application client/admin to set up GA and GTM for their product and monitor data, the following steps need to be completed.
Create and set up a new GTM account.
Create and set up a new GA account.
Connect the GTM account with GA.
import the container template (APPENDIX 1) which includes all the required tracking tags by Tag Manager Dashboard -> Admin -> Import Container
update the GA PROD variable value with their google analytics tracking id by Tag Manager Dashboard -> Workspace -> Variables -> GA PROD -> Tracking ID
Send the GTM ID to the BRP Team.
The BRP team should update the client tag GTM id in the back office to initialize GTM configurations in the white-labeled app.
The API will get the updates and the client’s end will be able to view the GA analytics for the white-labeled product.
An authorized admin/user can use the following GA IDs to view the GA dashboards of Mobility Stage Environment or Production Environment by navigating to https://analytics.google.com/
Access and use Google Analytics and Tag Manager Dashboards
From the GA dashboard, the following information can be seen.
Google Analytics events can be monitored through, Analytics Dashboard -> Behavior -> Events -> Overview
Admin can get a detailed view of analytics events based on the application ID (appId - appName) Analytics Dashboard -> Behavior -> Events -> Overview -> Event Action -> Secondary dimension: application ID
Pageviews can be monitored from, Analytics Dashboard -> Behavior -> Site Content -> All Pages
Admin can get a detailed view of page views based on the specific application ID (appId - appName) Analytics Dashboard -> Behavior -> Site Content -> All Pages -> Secondary dimension: application ID
Real-time data can be monitored through, Analytics Dashboard -> Realtime -> Overview