Firebase Analytics not showing screen names and events

岁酱吖の 提交于 2019-12-07 11:15:51

问题


I'm migrating from old google analytics to Firebase Analytics and now I'm tracking the screens using this:

    mFirebaseAnalytics.setCurrentScreen(SectionManager.getInstance().getCurrentActivity(), name, null /* class override */);

And also tryed using this:

    Bundle params = new Bundle();
    params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "screen");
    params.putString(FirebaseAnalytics.Param.ITEM_NAME, name);
    mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);

And I'm tracking events using this:

    Bundle params = new Bundle();
    params.putString("category", "command");
    params.putString("action", "test command");
    params.putString("label", "command test label");
    mFirebaseAnalytics.logEvent("ga_event", params);

I'm testing the application openning some screens and passing it's name, and also I'm pressing some times a button which executes the event tracking code I showed.

The first problem is that in firebase panel, I can't find the "test command" event... Don't sure where should I find it, but I can't find it.

The second problem is that I can see the "screen class" of the activities I'm using for opening the screens, which represents the name of the activity, but the name of the screens I passed as a parameter to firebase is not present. If i filter to show the screen name I got this:

User engagement   Screen name Screen name   % total     Avg. time   
(not set)   NaN -   0m 0s   -100

回答1:


If you're using the setCurrentScreen() event, you should be able to see it at the Analytics > Events panel. Then, select screen_view and a screen with, beyond other stuff, a card titled firebase_screen will show you the sceen_view events grouped by the name you gave them when logging the event.

Another card titled User engagement will show you the screen_class you want to see, as well as the visualization percentage and average time spent on each screen.

Custom events (like your ga_event) should also be shown at the Analytics > Events section at the Firebase Dashboard.

Important: Custom events might take up to 24 hours after called to show up on Firebase.



来源:https://stackoverflow.com/questions/47929566/firebase-analytics-not-showing-screen-names-and-events

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