Firebase Analytics不显示屏幕名称和事件 [英] Firebase Analytics not showing screen names and events

查看:274
本文介绍了Firebase Analytics不显示屏幕名称和事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从旧的Google Analytics(分析)迁移到Firebase Analytics,现在我正在使用以下方法跟踪屏幕:

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 */);

还尝试使用此方法:

    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.

第一个问题是,在Firebase面板中,我找不到测试命令"事件...不确定在哪里可以找到它,但找不到.

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.

第二个问题是,我可以看到我用来打开屏幕的活动的屏幕类",它代表活动的名称,但是我作为参数传递给firebase的屏幕的名称是不存在.如果我过滤以显示屏幕名称,我会得到:

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

推荐答案

如果您正在使用setCurrentScreen()事件,则应该可以在 Analytics>事件面板上看到它.然后,选择 screen_view ,然后屏幕上将显示标题为firebase_screen的卡片,其中将显示 sceen_view 事件,并按您在记录事件时为其赋予的名称进行分组

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.

另一张名为用户参与度的卡片将显示您要查看的screen_class,以及每个屏幕上的可视化百分比和平均时间.

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.

自定义事件(如您的ga_event)也应显示在Firebase控制台的 Analytics(分析)>事件部分中.

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

重要:自定义事件可能需要接到电话后24小时出现在Firebase上.

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

这篇关于Firebase Analytics不显示屏幕名称和事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆