Firebase analytics events don't show value

Alen picture Alen · Jun 12, 2016 · Viewed 18.1k times · Source

I have a game and I want to send event every time user sets new high score, I check if current score is > that previous and if it is I send that new high score to firebase. code:

Bundle bundle = new Bundle();
bundle.putLong(FirebaseAnalytics.Param.LEVEL, extras.getInt("score"));
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.LEVEL_UP, bundle);

This is how it looks like in firebase console: image link

You can see how events are grouped by their value.

Problem is that i have 4 different modes and I want to capture high scores for each, so this is how I tried that:

Bundle bundle = new Bundle();
bundle.putLong(FirebaseAnalytics.Param.LEVEL, extras.getInt("score")); 
mFirebaseAnalytics.logEvent("mode4level", bundle);

And this is what I get in firebase console: image link

Grouped events by value are missing, I have only Event Location, Event demographics, Events per session.

How can I fix that, key part of analytics is missing ? Thank you.

Answer

Steve Ganem picture Steve Ganem · Jun 12, 2016

Reporting on parameters is limited to a subset of suggested events such as the LEVEL_UP event you mentioned. You can find more information in this thread.

Technically, you could register a user property like "game_mode" and setting the value of this before you log LEVEL_UP. Then you could filter your LEVEL_UP event reporting using the filter game_mode=<mode>. We don't generally recommend doing this since user properties are meant to be used for attributes of your users that do not change often. However, it may suit your needs here.

Alternatively, you can just add a "game_mode" parameter to the LEVEL_UP event and then link your app to BigQuery to analyze your raw data to get a breakdown of levels per game mode.