'FirebaseAnalytics.Param.SIGN_UP_METHOD' 无法在控制台中保存 'value' 和“事件名称”

'FirebaseAnalytics.Param.SIGN_UP_METHOD' is failing to save the 'value' along with 'Event name` in the console

我正在使用这段代码来分析 sign_up 用户正在使用的方法:

Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.SIGN_UP_METHOD, "sign_up_method");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SIGN_UP, bundle);

一旦用户注册,上面给出的代码就应该将事件保存在 Firebase 控制台中。

问题 是事件正在创建,但 value 列下没有任何内容,即 sign_up_method 未显示。

这是来自控制台的快照(事件名称:sign_up 在那里,但代替 sign_up_method,有一个 -):

这里出了什么问题?

请告诉我。

我向 Firebase 支持团队询问了同样的问题,他们告诉我

Unfortunately, not all parameters are represented directly in your Analytics reports. It is only available on a subset of suggested events. But they can be used as filters in Audience definitions for every report. They are also included in data exported to BigQuery if your app is linked to a BigQuery project.

因此,要么 link 将您的应用添加到 BigQuery,要么对 Firebase 提供的内容感到满意。

请检查Firebase Analytics docs。看起来您错误地将参数设置为 FirebaseAnalytics.Param.SIGN_UP_METHOD

应该是FirebaseAnalytics.Param.METHOD而不是