Search code examples
androidfirebasefirebase-analytics

Firebase analytics are not logging


we are using firebase to log our user events. some of the events are getting logged in the dashboard but most of the events are not getting logged . It is very hard to believe that "No user performed these events", because we have more than 500K users and these events are very basic.

We are also using google analytics, where all expected events are being logged.

Please suggest how to analyze it.

/**
 * This method will log the events in firebase console
 * @param itemId
 * @param itemName
 * @param screen
 */
public  void logFirebaseCustomEvent(String event,String itemId,String itemName,String screen){
    Bundle bundle = new Bundle();
    bundle.putString(FirebaseAnalytics.Param.ITEM_ID, itemId);
    bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, itemName);
    bundle.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, screen);
    mFirebaseAnalytics.logEvent(event, bundle);
}

Thanks


Solution

  • I found the reason with the help of debug view(https://firebase.google.com/docs/analytics/debugview). I was sending invalid event name.

    Now it is working fine. :) :)