Analytics logEvent as integer values #6092
Unanswered
FelipeEmos
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Me and my team are having a great time using the library, but I've stumbled upon the following limitation.
When I log an event with the
firebase.analytics().logEvent
function, all the parameters of type Number are been logged to firebase as doubles. That makes sense because javascript doesn't have an integer type. Unfortunately, I need to log integers when using thelogEvent
function. Is that possible?Let's suppose I need to log the following params:
All of them will be logged as doubles, so I figured this library could have a wrapper that can serve as a type annotation if someone wants to be explicit about a type. Something like:
That will give the user a better control of the types being logged to firebase.
What do you think about such feature?
We really need something like that and we're looking forward to implement it soon.
Beta Was this translation helpful? Give feedback.
All reactions