Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Analytics even show up in log but not on firebase console

I am trying to integrate Firebase RemoteConfig and Analytics with my Android application. Remote configuration part is working but Analytics part is not working. Here is my build.gradle

   // Firebase configuration
   compile group:'com.google.firebase', name:'firebase-core', version: '9.4.0'
   compile group:'com.google.firebase', name:'firebase-config', version: '9.4.0'

   // Firebase analytics
   compile 'com.google.android.gms:play-services-analytics:9.4.0'

Here is my Activity code.

 FirebaseAnalytics firebaseAnalytics = FirebaseAnalytics.getInstance(this);
      firebaseAnalytics.setUserId("5107611364");
      firebaseAnalytics.setUserProperty("custom_user_property", "custom_user_proerty_value");

      Bundle bundle = new Bundle();
      bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "SomeID");
      bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "SomeIDName");
      bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "IdType");
      firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);

I am trying to publish customer property as well as the event but both of them are not working. I have enabled adb logging and I can see that custom event and property are published. These do not appear on the Firebase Analytics console even after 24hrs. I don't know what is wrong.

like image 594
Rakesh Avatar asked Aug 03 '16 05:08

Rakesh


People also ask

How do I know if Firebase Analytics is working?

In the Firebase console, open your project. Select Analytics from the menu to view the Analytics reporting dashboard. The Events tab shows the event reports that are automatically created for each distinct type of event logged by your app.

How do I find Firebase Analytics logs?

You can view aggregated statistics about your events in the Firebase console dashboards. These dashboards update periodically throughout the day. For immediate testing, use the logcat output as described in the previous section. You can access this data from the Events dashboard in the Firebase console.

How much time does it take for Firebase Analytics first report?

Firebase says that it can take up to 24h hours, but the docs say that the dashboard updates "a few times every day".


Video Answer


1 Answers

@Rakesh - you are looking in the wrong location. You are supplying customID feilds, in your example you are supplying CONTENT_TYPE : IdType. You don't need a minimum of 10 users to see the data...if you only have 1 user that data will appear within 24 hours of that user using your app.

I will say this, initially finding your own custom IDs is not very straight forward...it took me a while to find it too.

The place to find that custom reported info is: Anaylytics - Events - once on this page, click on the actual CONTENT_TYPE you are wishing to track, in your example above, it would be idType Analytics -> Events

Then on the Content graph you will see your customIDs (ie: someID)...click on someID. In my case (and in my screenshots) my equivelant someIDs are "field, button & select" Events -> CONTENT_TYPE

and then you will see all the data related to the values (someIDName) you passed into someID. CONTENT_TYPE -> customIDs

Now, if idType is not appearing for you then that may because Firebase isn't allowing you to create your own CONTENT_TYPE, I am not certain if you can do that as I have not tried...and in that case you would need to use a predefined CONTENT_TYPE. I am not using a custom idType, I am using CONTENT_TYPE : select_content.

like image 115
rolinger Avatar answered Sep 28 '22 15:09

rolinger