简体   繁体   English

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

[英]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.

相关问题 在 Firebase 分析控制台 (Swift) 中记录自定义事件 - Logging custom events in the Firebase Analytics console (Swift) 删除 firebase 分析事件 - Delete firebase analytics events 如何在 firebase 分析自定义事件中将对象数组作为参数传递 - How to pass array of objects as parameter in firebase analytics custom events Firebase iOS 的分析——带有预定义事件的自定义参数 (Swift) - Firebase Analytics for iOS — custom parameters with predefined events (Swift) 获取指定日期之前的项目的运行唯一计数,类似于运行总数,但不是运行的唯一计数 - Get the running unique count of items till a give date, similar to running total but instead a running unique count 在 do.net core 中添加 Firebase Log Events (Analytics) - Add Firebase Log Events (Analytics) in dotnet core 无论如何,是否可以在 Google Analytics 中查看我从 Firebase 应用程序记录的(自定义)事件? - Is there anyway to see the (custom) events that I logged from my Firebase app in Google Analytics? 在 firebase 分析调试视图中看不到事件 - Cannot see events in firebase analytics debug view 将(Sum)多个 Firebase 个子值加在一起得到总值? - Adding (Sum) multiple Firebase child values together to give a total value? React Native - Firebase 自定义事件未记录在控制台中 - React Native - Firebase custom events are not logged in the console
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM