All FirebaseAnalytics setCurrentScreen () events are logged in view_item

I can log custom events in Firebase Analytics, but try to keep track of my custom views by following an official document , docs 2 says that all my logs are written to view_item.

In the firebase release news, I found this:

In addition to automatic screen tracking, you can manually monitor screens using the FirebaseAnalytics # setCurrentScreen method. This adds the firebase_screen parameter to each registered event, as long as these screens are visible to application users.

If I want to track my submissions, the Google Analytics console should show me screenNameinstead view_itemor at least screenClassOverridein Value. Since at this moment I can’t use anything with this entry (I can’t even apply a filter based on view_itemor screenClassOverride, as you can see in the following screenshot)

enter image description here

This is an example of how Im does this in code (inside a fragment in a TabLayout):

FirebaseAnalytics.getInstance(masterActivity).setCurrentScreen(
                masterActivity,
                FirebaseAnalyticsKeys.SCREEN_NAME_ITEM_LIST_BIG_MODE,
                this.getClass().getSimpleName());

I could register my submissions using a custom one logEvent(), but I just want to follow the rules and what the official docs said ... so that I'm missing, what I'm doing wrong or what's going on

+4
source share

Source: https://habr.com/ru/post/1667481/


All Articles