evollu / react-native-firebase-analytics

React native bridge for firebase analytics
MIT License
206 stars 54 forks source link

How can I fill value field? #32

Open jsdario opened 8 years ago

jsdario commented 8 years ago

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?

evollu commented 7 years ago

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!

sibelius commented 7 years ago

@jsdario did u figure it out?

jsdario commented 7 years ago

@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.

annelorraineuy commented 7 years ago

@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?

jsdario commented 7 years ago

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