Reputation: 2304
Is it possible to monitor the percentage of time spent on different parts of my app (activities) in relation to the total usage duration? Are Events the way to go?
Thanks!
Upvotes: 6
Views: 13607
Reputation: 7979
On version 11.0.0+, Firebase Analytics now automatically tracks the activities your users are on.
Whilst a brief summary is displayed on the Analytics -> Dashboard
page, a much more detailed view can be seen by clicking the View screen_view event details
link:
Overview:
Detailed:
Note: If you wish to track fragments instead of activities, you'll need to select Screen name
in the dropdown in the above screenshot. You'll also need to send firebaseAnalytics.setCurrentScreen(this, "myScreenName", null)
on fragment creation.
Upvotes: 1
Reputation: 719
If you simply want to track the amount of time a user spends on a particular screen in your app, you can designate a starting event (e.g. when the screen_view screen_name matches the screen you want to time, or when a button is tapped on the previous screen to get to the screen you want to time user activity upon) and then designate an ending event (e.g. the next screen_view matches the next screen_name, or the user taps a button to go to the next screen).
Set these up in a "funnel analysis" in your GA dashboard as two events that indirectly follow one another, flip the toggle to show elapsed time, and voila! Solved.
Upvotes: 0
Reputation: 5087
Firebase Analytics doesn't have the possibility to monitor the percentage of time spent on different parts of an app. With events, you can count some actions, but not the time of the actions.
You can go with Google Analytics to get auto screen tracking and monitor time spent on screens.
Update:
Since screen tracking has been added to Firebase Analytics it automatically tracks screens of an app if the app uses Activity
for every screen. If your app doesn't, you can still get these reports by manually setting the screen name with the API.
Upvotes: 4
Reputation: 2483
Adding to what @djabi said, Firebase do support overall app level user engagement.
However no screen / activity level data.
Upvotes: 1
Reputation: 5767
Firebase Analytics doesn't have screen level user engagement reporting yet. We are considering adding support in one of the next releases.
If you need this earlier you can implement something similar yourself by listening to Activity onResult/onPause or ActivityLifecycleCallbacks. You can record the time when the activity gains focus and log an event when the activity losses focus with the time spent.
Upvotes: 2