react-native-firebase-analytics icon indicating copy to clipboard operation
react-native-firebase-analytics copied to clipboard

How can I fill value field?

Open jsdario opened this issue 8 years ago • 5 comments

This might be a duplicate of https://github.com/evollu/react-native-firebase-analytics/issues/18

I believe I am doing this right. I am trying to log all my redux actions like this:

function analytics (state = 0, action = {}) {
  const { type, ...rest } = action
  // ignore all the following events for analytics
  switch (type) {
    case types.__INIT__:
    case types.REHYDRATE:
    case types.router.PUSH:
    case types.router.REFRESH:
      return state
    // by default, log everything possible
    default:
      Analytics.logEvent(type, {'action': JSON.stringify(rest)})
      return true
  }
}

But this is how they end up on firebase: screen shot 2016-10-28 at 09 51 28

How can I fill the value field?

jsdario avatar Oct 28 '16 07:10 jsdario

I don't know how to do it. there should be some place where you can drill down each event right? Perhaps ask firebase team? I want to do this too!

evollu avatar Dec 01 '16 16:12 evollu

@jsdario did u figure it out?

sibelius avatar Dec 08 '16 17:12 sibelius

@sibelius, apparently firebase itself is forcing you to hire their Big Query peer service (since they are Google now, :sights:. I contacted them directly.

By the moment we are making advantage of event naming itself. Seems not to be a huge problem to have custom values on events. We do not know still which are Firebase plans with this feature, maybe they allow event values in the future.

jsdario avatar Dec 08 '16 17:12 jsdario

@jsdario I'm a little confused. So with BigQuery, are you able to see the values passed to the events or is this not 'allowed' by Firebased anymore?

annelorraineuy avatar Feb 17 '17 18:02 annelorraineuy

@annelorraineuy in theory it is possible, I was unfamiliar with Firebase at that moment

jsdario avatar Feb 20 '17 11:02 jsdario