Firebase Analytics even appears in the log, but not on the firebase console

I am trying to integrate Firebase RemoteConfig and Analytics with my Android app. Part of the remote configuration works, but part of Google Analytics does not work. 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 a client property as well as an event, but both of them do not work. I have enabled ad logging and I can see custom events and properties being published. They do not appear on the Firebase Analytics console even after 24 hours. I do not know what is wrong.

+5
source share
1 answer

@Rakesh - you're looking for the wrong place. You supply customID feilds, in your example you supply CONTENT_TYPE: IdType . You do not need at least 10 users to see the data ... if you have only 1 user, the data will be displayed for 24 hours from this user using your application.

I will say this, initially finding your own identifiers is not very straightforward ... it took me a while to find it.

The place where you can find this information: Anaylytics - Events - once on this page click on the actual CONTENT_TYPE that you want to track, in your example above, it will be idType Analytics -> Events

Then, on the Content graph, you will see your identifiers (for example: someID) ... click someID . In my case (and in my screenshots) my equivalent someIDs is a field, a button and select " Events -> CONTENT_TYPE

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

Now, if idType does not appear for you, it may be due to the fact that Firebase does not allow you to create your own CONTENT_TYPE , I am not sure that you can do that as I have not tried ... in which case you will need use the predefined CONTENT_TYPE . I do not use custom idType , I use CONTENT_TYPE: select_content .

+7
source

All Articles