Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase custom event parameters not visible in console

I need help with custom parameters of Firebase event, don’t seem to be able to see or use any event parameter. Basically trying to use parameters to create Audience segmentation, but parameters seem to never arrive (on the other hand all custom events arrive correctly).

As you can see from the attached screenshot the parameters list is always empty for custom events. The only parameters we can correctly see are related to system events (like first_open or in_app_purchase).

This is how we trigger custom events and parameters:

FIRAnalytics.logEvent(withName: "game_played", parameters:[
                "username": "id-\(self.username)" as NSObject,
                "gameplayed": self._gamePlayed as NSObject
                ])

Any help would really be appreciated.

Firebase console Firebase console

like image 668
Alessandro Maroldi Avatar asked Nov 22 '16 09:11

Alessandro Maroldi


People also ask

How do I see parameters in Firebase Analytics?

In Analytics for Firebase, navigate to your app. Click Events. In the row for the event you want to modify, click More > Edit parameter reporting. In the Enter parameter name field, enter the name of the parameter you'd like to register.

How long does it take for Firebase events to appear?

Seconds stream. By default, you will see a list of events logged in the last 60 seconds.

How do I view Firebase events?

View events in the dashboard You can access this data from the Events dashboard in the Firebase console. This dashboard shows the event reports that are automatically created for each distinct type of event logged by your app.


2 Answers

Google will keep confusing us with their unreliable documentation and frequent update to the terms used...

What most answers here lack, is what the terms Dimension/Metric mean under Custom definitions (in the latest version) and their relation to custom user properties and events.

Custom user property has only one string value, this can be used to segment the audience and can be reported by configuring it as a custom Dimension in the Custom definitions.

Custom event has zero or more parameters (key-value) that their value can be numeric or a string. This is where things get confusing, to get these parameters reported, you need to tell Analytics if it is a number or a string! If the param is numeric it should be considered as custom Metric (since metric==numbers), while if the param values are strings, they must be defined under Dimensions!

I had to guess that from the official docs where Google gives an example of logging an event with author param as a string and says after that:

You can create an Author dimension that gets its values from the author parameter

Notes:

  1. After the first configuration, reports will get updated only after 24-48 hrs.
  2. If there is not enough data, you may not see your param reports.
  3. An event param can be a dimension or a metric (not both).
  4. If you log in your code numeric values and set it as a dimension it won't work! Because Analytics is stupid and doesn't have auto-casting. The reverse, logging string values and setting them as metrics, will not work (seems obvious).
  5. Check your types beforehand, Analytics will not limit you as it doesn't process the underlying type before you tell it how to process it.
like image 110
eyalyoli Avatar answered Sep 22 '22 18:09

eyalyoli


Go to your event and click in the 3 points icon: event menu and click edit parameter reporting

and there you can select which parameters you want to see, so click on username and gameplayed and push "ADD" button and set the unit of measurement.

parameters

Note that it could take some time from your first events fired to be shown in console.

Also when you have a text parameter it take time to gather it's different values from fired events and to be shown correctly in console.

like image 35
Jorge Arimany Avatar answered Sep 20 '22 18:09

Jorge Arimany