Automatically collected events and default event parameters

135 views
Skip to first unread message

Giacomo Marangoni

unread,
Feb 10, 2024, 11:15:08 AM2/10/24
to Firebase Google Group
Hello there,
I'm working with FirebaseAnalytics on iOS and Android. I got a question that I can't answer.
Is it possible to set default event parameter for automatically collected events like `first_open` or `session_start`?

I'm trying to reach this goal but I can't. I set default event parameter through `setDefaultEventParameters` as soon as the app launches but It doesn't work despite the documentation said: "Adds parameters that will be set on every event logged from the SDK, including automatic ones."

I'm not the only one with this kind of problem (e.g issue). What should I do?

Thank you so much in advance.
Kind regards.
Giacomo

sumitc...@google.com

unread,
Feb 26, 2024, 7:18:32 PM2/26/24
to Firebase Google Group
Hi Giacomo,

Note that depending when you're expecting to see the default event parameters on the first_open and session_start events, this could be expected behavior. The first time the app is started, the initial first_open and session_start events will not have any default event parameters applied.

After you've applied them, subsequent session_start events and the like should indeed include any default event parameters and values that you've set.

Hope that helps,
-Sumit

Reply all
Reply to author
Forward
0 new messages