Tracking parameters with Firebase Analytics

212 views
Skip to first unread message

Derek Gladstone

unread,
Jun 3, 2021, 3:34:39 AM6/3/21
to Firebase Google Group
It seems like you can track an event's total count, but you can't track an event's parameter's total count, aside from events that were triggered in the last 30 minutes. Am I missing something, or is there no way to realistically use the parameter tracking? 

This seems to be the case even for the events automatically collected. For example, the event in_app_purchase has the parameter product_id, and I don't see a way to view tracking information on product_id for all events in total.

Why use these parameters if you can only see their usage from the last 30 minutes? Any feedback would be greatly appreciated!

Derek Gladstone

unread,
Jun 3, 2021, 5:21:20 PM6/3/21
to Firebase Google Group
Okay I missed one very important step. When you're creating the custom definition, you have to create one for the event AND the parameter. Then the parameter will start showing.

Here's what I ended up doing for my problem:
1) Created "room_messages" on custom definitions for the event
2) Created "room_id" on custom definitions for the parameter
3) Use code below

firebase.analytics().logEvent("room_messages", {
  room_id: room_id,
  room_user: `${room_id}-${user.uid}`,
});

4) Now on the room_messages in Firebase's events page, there's a window for Room Id showing the tracking.

Reply all
Reply to author
Forward
0 new messages