I want to log custom events in the firebase analytics and I am using the standard way of doing it like below:
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, eventCategory);
bundle.putString(FirebaseAnalytics.Param.ITEM_ID,eventType);
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, eventName);
FcmAnalytics.getInstance(context).logEvent(eventType, bundle);
Although I referred documentation and multiple questions and even the firebase analytics documentation I am finding it difficult to understand with the way things are working here. I think most of them would have this issue as there is no clear documentation for this topic
Firstly can someone explain to me the meanings of the ITEM_CATEGORY
, ITEM_NAME
, ITEM_ID
while logging the event and how are these reflected on the console.
Suppose I want to log an custom event on click of a button with a custom event name say "button_click_event"
and want to see the same event on the console to see how many users have clicked the button, how do i do it?
I have used some predefined EVENTS like SELECT_CONTENT
and VIEW_ITEM
so how do I know which button was selected or which page was viewed, as only the event category names like "select_content"/"view_item"
are shown in the console. How do I do it? Please help?