All FirebaseAnalytics setCurrentScreen() events are logged under view_item

痴心易碎 提交于 2019-12-06 03:47:09

问题


I'm able to log custom events to Firebase Analytics but trying keep track of my custom views following what official doc, docs 2 says, all my logs are recorder under view_item event.

On firebase's release news I found this:

In addition to automatic screen tracking, you can manually track screens using the FirebaseAnalytics#setCurrentScreen method. This adds the firebase_screen parameter to every event logged while those screens are visible to app users.

If I want to keep track of my views, Analytics console should show me the screenName instead view_item or at least screenClassOverride in Value. Because at this moment I can't do anything useful with that record (not even can apply a filter based on my view_item or screenClassOverride as you can see in the following screenshot)

This is an example of how Im doing it in code (inside a Fragment under TabLayout):

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

I could log my views using custom logEvent() but I just wanna follow the rules and what the official docs said... so, what I'm missing, what I'm doing wrong or what's going on

来源:https://stackoverflow.com/questions/41792641/all-firebaseanalytics-setcurrentscreen-events-are-logged-under-view-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!