繁体   English   中英

Firebase 分析不提供自定义事件详细信息(总计)0 项

[英]Firebase analytics not give Custom events details instead (total) 0 items

我在应用程序中实现了 firebase。 我创建了一个事件,它显示在日志中。 我还在事件屏幕上注册了事件参数,那里显示(总计)0 个项目。

代码:

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

日志:

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}] 

参数报告仅适用于创建后收集的数据。 这意味着最多可能需要 24 小时才能显示任何数据。

供参考: https ://support.google.com/firebase/answer/7397304?hl=en。

尝试改变这个:

bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 1);

到:

bundle.putString(FirebaseAnalytics.Param.ITEM_ID, String.valueOf(1));

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM