firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.77k stars 874 forks source link

FR: Firebase Analytics supporting the setDefaultEventParameters method #5812

Open ted-marozzi opened 2 years ago

ted-marozzi commented 2 years ago

Hi, Is there a fundamental reason that the firebase js sdk can't support the setDefaultEventParameters method or has it just not been implemented yet? The docs mention support for mobile, setDefaultEventParameters but not web.

Thanks for your time!

hsubox76 commented 2 years ago

We can keep this open as a feature request, but in the meantime, you can use the options argument of initializeAnalytics() to set params that would be sent with every event (it basically calls gtag('config', ...) with whatever you provide to options.config).

ted-marozzi commented 2 years ago

Thanks for your reply, I don't think that's possible as I want to use it thought the FlutterFire api which I don't think exposes the initialiseAnalytics api so yes this feature would be handy!

JonasJW commented 10 months ago

Seems like a very important feature to me as well