evollu / evollu/react-native-firebase-analytics

How can I fill value field?

Open
#32 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
206
Forks
52
PR merge metrics
No merged PRs in 30d

Description

_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](https://cloud.githubusercontent.com/assets/5166506/19799005/7d43b628-9cf4-11e6-8c46-9230340bb615.png)

How can I fill the `value` field?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.