[英]Firebase analytics not give Custom events details instead (total) 0 items
I implemented firebase in the application.我在应用程序中实现了 firebase。 I created an event and it was shown on logs.
我创建了一个事件,它显示在日志中。 I have also Registered event parameters on the Event screen, there it was showing (total) 0 items.
我还在事件屏幕上注册了事件参数,那里显示(总计)0 个项目。
Code:代码:
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE,"NetworkShare01");
bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 1);
bundle.putString("Shared_text", "Here just a text in Hebrew language");
firebaseAnalytics.logEvent("Shared_app",bundle);
Logs:日志:
Shared_app, Bundle[{Shared_text=Here just a text in Hebrew language,
firebase_event_origin(_o)=app, firebase_screen_class(_sc)=Message,
firebase_screen_id(_si)=5901034026982773896, content_type=NetworkShare01,
item_id=1}]
Parameter reporting only works for data collected post creation.参数报告仅适用于创建后收集的数据。 This means that it can take up to 24 hours before it shows any data.
这意味着最多可能需要 24 小时才能显示任何数据。
For reference: https://support.google.com/firebase/answer/7397304?hl=en .供参考: https ://support.google.com/firebase/answer/7397304?hl=en。
Try changing this:尝试改变这个:
bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 1);
To:到:
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, String.valueOf(1));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.