flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

How to use flurry for cumulative data like total amount of moneys users spent? #16

Closed pouya92 closed 4 years ago

pouya92 commented 5 years ago

Hi, thank you for your perfect library, I need to know sum of money users spent daily on my app. how can I achieve that with your api's, Also I want to log an event with more than one parameters so is this the write way?

 Flurry.logEvent(eventType, {itemType : eventParam , itemID : eventParam2, itemCost : eventParam3, itemCurrency : eventParam4})
xnth97 commented 5 years ago

Hi @pouya92 ,

If you are using in app purchase, please use our payment APIs like Flurry.setIAPReportingEnabled and Flurry.logPayment. You will be able to view data like sum of money spent on your dashboard on flurry.com.

For event parameters, yes that's the correct way. Please also note that the keys and values in parameters dictionary must be strings. e.g.

Flurry.logEvent('Event', {'key1': 'val1', 'key2': 'val2'});

Thanks.

poting-oath commented 5 years ago

@pouya92 To get the cumulative data, or any numerical measurements, please use Flurry console by,

  1. Click on Explorer tab
  2. Use Measures under Data Analysis category
  3. In your query, select "Event Parameter - Numeric - Sum, Avg, etc..." for Metrics
poting-oath commented 4 years ago

Please check the Flurry Doc site for more information. Thanks! https://developer.yahoo.com/flurry/docs/