簡體   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