Firebase Analytics

Firebase Analytics

I. Overview

Firebase Analytics is a powerful mobile analytics service provided by Firebase, Google's mobile and web app development platform. Firebase Analytics helps you gain a better understanding of how users interact with your app, enabling you to make informed decisions to improve user experience and app performance.

Key features of Firebase Analytics include:

Event Tracking:

User Analytics:

Conversion and Retention Analysis:

II. Demo

1. Integrate code with Flutter

Add lib:

2. Debug view

iOS: 

To run the Debug view, you need to perform additional steps. 

Android:

At this point, the Debug Device will appear on the device, and we can check the events along with the parameters sent to Firebase Analytics.

Note: After using the Debug view, run...

./adb shell setprop debug.firebase.analytics.app none //to turn off the device

3. Debug Console with Android

Run the following commands:

Cd {path}/sdk/platform-tools

./adb shell setprop log.tag.FA VERBOSE

./adb shell setprop log.tag.FA-SVC VERBOSE

./adb logcat -v time -s FA FA-SVC

When sending an event to Firebase Analytics, you will receive a log:

Looking at the log, we can check the name: test_debug_view along with the corresponding parameters.