Reputation: 351
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
Upvotes: 35
Views: 40505
Reputation: 4749
Faced same problem, and based on original answers I don't see the "Edit parameter reporting", obviously things have changed.
From the latest documentation https://firebase.google.com/docs/analytics/events?platform=android, see below snippet about custom parameters
Custom parameters: Custom parameters can be used as dimensions or metrics in Analytics reports. You can use custom dimensions for non-numerical event parameter data and custom metrics for any parameter data better represented numerically. After you've logged a custom parameter using the SDK, register the dimension or metric to ensure those custom parameters appear in Analytics reports. Do this using Analytics > Events > Manage Custom Definitions > Create Custom Dimensions
So, this has to manually created from
Analytics > Events > Manage Custom Definitions > Create Custom
Dimensions
Upvotes: 0
Reputation: 2022
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:
Upvotes: 54
Reputation: 339
In the current version of Firebase console the "Edit parameter reporting" action is gone. Custom parameters are now added through "Manage Custom Definitions" menu on top of the event list.
Upvotes: 21
Reputation: 13715
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.
Set the Type
field to Text
or Number
. For numeric parameters, set the Unit of Measurement field.
Click SAVE, then click CONFIRM.
REF: Custom-parameter reporting
Upvotes: 4
Reputation: 1180
You can see your Custom Event in Analytics - Dashboard - StreamView - Events - Top Events - see picture. But I belive this is just for last 30 minutes.
I would recomment you to use Fabric Analytics - this will meet your needs. see https://docs.fabric.io/android/answers/answers-events.html
Upvotes: 1
Reputation: 5882
Go to your event and click in the 3 points icon: 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.
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.
Upvotes: 23
Reputation: 1985
My custom events did not display their parameters in the Firebase dashboard under Events until I installed the app on a bunch of different simulators in order to get my user count up to 12. Drove me nuts seeing all those empty graphs until I found this post with the answer from Dmila Ram, which appears to be correct - thresholds apply to custom parameter display.
Upvotes: 8
Reputation: 2942
According to My understaning, there are 2 different things here.
[FIRAnalytics setUserPropertyString:food forName:@"favorite_food"];
Link to read more here
Event Parameters: These are extra info you pass in a Event you Log. Suppose you have a sample event called "detail_view" you can add "item_id", "timestamp", "session_id" etc.., as parameters. But you will need to wait for the custom event to appear for couple of hours and then manually you need to add parameters in the dashboard like this. And this operation too takes couple of hours to take effect! BTW this is how you set Event Parameters
[FIRAnalytics logEventWithName:@"share_image" parameters:@{ @"name": name, @"full_text": text }];
Link to read more here
Upvotes: 2
Reputation: 2079
According to the website https://firebase.google.com/docs/analytics/android/events,
Custom parameters: Custom parameters are not represented directly in your Analytics reports, but they can be used as filters in audience definitions that can be applied to every report. Custom parameters are also included in data exported to BigQuery if your app is linked to a BigQuery project.
Custom parameters should always arrive with your events. However, custom parameters are used in Audience in the SDK and if there is an audience that matches your definition, they will be reported to the server. You just cannot see them in the report for now.
Upvotes: 1