Firebase analytics event parameters not showing in console
Asked Answered
R

2

7

I have been logging my event clicks, which seem to show up but I can't seem to find parameters anywhere in the Firebase Console. All I see is:

Events with custom reporting parameters will show up here

Here is how I am adding parameters:

var map = {'label': value};
_analytics.logEvent(name: 'session_button', parameters: map);

I can see session_button showing up in my console, just no data for the event parameters. Am I missing anything?

Rawden answered 21/5, 2020 at 20:51 Comment(4)
Hey have u tried _analytics.logEvent('session_button', map);Berkeleianism
Why would that work?Rawden
b/c you are using named params, and on their official doc, they just use it the naming. It's just something to tryBerkeleianism
@Berkeleianism The code you posted is exactly the same as the OPs but does not correctly pass the named parameters that the official docs specify. It won't work guaranteed.Perry
P
3

You don't seem to have any error in your code.

In the events tab of the Firebase Analytics console you have to click the three vertical dots on the right of your session_button event and do Edit parameter reporting. From there you can add the parameter that you want. Your custom label parameter should be on that list assuming the event has been triggered at some point. Following this your parameters should show up in other views.

Perry answered 21/5, 2020 at 22:58 Comment(0)
D
0

Just Follow the below steps

If you are debugging than first enable debug mode

For enable

adb shell setprop debug.firebase.analytics.app PACKAGE_NAME

For disable

adb shell setprop debug.firebase.analytics.app .none.

And finally set this method to true you will get the all logs.

Call this method setAnalyticsCollectionEnabled

Reference Link:

https://firebase.google.com/docs/analytics/debugview

https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics#logEvent(java.lang.String,%20android.os.Bundle)

Demarcusdemaria answered 14/6, 2023 at 7:8 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.