I have integrated firebase into my Android application. I am sending custom events as follows :
Bundle bundle = new Bundle(); bundle.putString("First Category", "First catValue"); bundle.putString("sub Cat", "sub CatValue"); bundle.putLong(FirebaseAnalytics.Param.VALUE, "value"); firebaseAnalytics.logEvent("My Custom Event", bundle);
None of my custom events show on events tab on firebase analytics dashboard.
I have taken look in some questions already asked like this one : Android Firebase Analytics Custom Events Reporting in Console
But couldn't solve my problem as I tried some of the suggestions there, like it was suggested to test with more than 10 users to be able to get the custom events which I did but nothing is shown in the events tab.
I debugged using following commands:
adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC
My events are getting logged on command prompt but not getting reflected on firebase dashboard.
Am I sending custom events wrongly ? Do I need to configure anything on firebase dashboard to get the custom events ?
Update :
When I debugged using commands :
adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC
I found this important log stating Name must consist of letters, digits or _ (underscores).
Then I changed my event as below :
Bundle bundle = new Bundle(); bundle.putString("First_Category", "First_catValue"); bundle.putString("sub_Cat", "sub_CatValue"); bundle.putLong(FirebaseAnalytics.Param.VALUE, "value"); firebaseAnalytics.logEvent("My_Custom_Event", bundle);
Then I enabled debug view https://support.google.com/firebase/answer/7201382?hl=en&utm_id=ad as suggested by adbitx in answer below, then events started showing.
View events in the dashboard You can access this data from the Events dashboard in the Firebase console. This dashboard shows the event reports that are automatically created for each distinct type of event logged by your app.
But on Android devices with Play Services, this one hour timer is across all apps using Firebase Analytics. In addition, Firebase Analytics will send down all of its data from the client if your user triggers a conversion event (like making an in-app purchase).
Your reports should refresh approximately every 4 hours.
Enable events as conversions You may add up to 30 events per project as conversions, in addition to the five default conversions ( first_open , in_app_purchase , app_store_subscription_convert , app_store_subscription_renew , and purchase ).
Update :
When I debugged using commands :
adb shell setprop log.tag.FA VERBOSE adb shell setprop log.tag.FA-SVC VERBOSE adb logcat -v time -s FA FA-SVC
I found this important log stating
Name must consist of letters, digits or _ (underscores).
Then I changed my event as below :
Bundle bundle = new Bundle(); bundle.putString("First_Category", "First_catValue"); bundle.putString("sub_Cat", "sub_CatValue"); bundle.putLong(FirebaseAnalytics.Param.VALUE, "value"); firebaseAnalytics.logEvent("My_Custom_Event", bundle);
Then I enabled debug view https://support.google.com/firebase/answer/7201382?hl=en&utm_id=ad as suggested by adbitx in answer, then events started showing.
It usually takes a few hours for the data to show up on your dashboard. If you would like to check whether your events are logged and received correctly by Firebase Analytics, try DebugView and you should be able to verify the traffic. The 10 users threshold is for Audience, not custom events.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With