Google Analytics helps you see how people use your Android app. It automatically tracks different actions and user details. You can even create your own custom events to measure things that are important to your app. Once it collects this info, you can check it out on a dashboard in the Firebase console.
Description | Picture |
---|---|
Users in last 30 minutes. | |
List of events from the selected period. | |
When you click on an event, you can see more detailed information. |
First, you should add commands to terminal which allow you logging events.
adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC
Last command will print logs for the device. If you have problems with adb command, those links can help: Not found adb Error and StackOverflow question. Then, you can open the app and start testing! You should be able to see relevant events in Logcat.
❗️Be aware that you won't see analytics on dashboard immediately. Firebase needs about a few hours to note it.❗️
Analytics Parameters
Event parameter name | Type | Examples | Description |
---|---|---|---|
name | String | "button_click" | An important event in the application that you want to measure. |
item_name | String | "notify" | Name of item that user interacted with during an event. |
screen_name | String | "reviewers_screen" | Name of the screen that is related to the event. |
success | Boolean | true |
Information whether the action was successful. |
error_message | String | "error message" | Information that will help trace the root of the issue. |
Event Names
Event name | Description |
---|---|
button_click | Fired when the user clicked on a button or link. |
action_start | Fired when we want to track start/finish actions. |
action_finished | Called when the action_start is finished. |
simple_action | Fired when single actions is happening. |
screen_opened | Called when screen is opened. |
item_click | Fired when the user clicked on an item. |
Screens