Flurry Analytics Plugin for Cordova
Adds support for Flurry Analytics to your Cordova or PhoneGap apps.
This plugin was heavily inspired by https://github.com/jfpsf/flurry-phonegap-plugin. Big thanks to its creators.
How do I install it?
If you're like me and using Cordova CLI:
cordova plugin add cordova-plugin-flurryanalytics
or
phonegap local plugin add cordova-plugin-flurryanalytics
TODO: add manual installation steps
How do I use it?
TODO: complete usage documentation
// create a new instanceflurryAnalytics = // requried appKey: '<your app key>' // optional version: 'my_custom_version' // overrides the version of the app continueSessionSeconds: 3 // how long can the app be paused before a new session is created, must be less than or equal to five for Android devices userId: 'blakgeek' gender: 'm' // valid values are "m", "M", "f" and "F" age: 38 logLevel: 'ERROR' // (VERBOSE, DEBUG, INFO, WARN, ERROR) enablePulse: true // defaults to false (I think :/ ) enableLogging: true // defaults to false enableEventLogging: false // should every event show up the app's log, defaults to true enableCrashReporting: true // should app crashes be recorded in flurry, defaults to false, iOS only enableBackgroundSessions: true // should the session continue when the app is the background, defaults to false, iOS only reportSessionsOnClose: false // should data be pushed to flurry when the app closes, defaults to true, iOS only reportSessionsOnPause: false // should data be pushed to flurry when the app is paused, defaults to true, iOS only; // sets userId for this sessionflurryAnalytics; // sets user's age for this sessionflurryAnalytics; // sets user's for this sessionflurryAnalytics; // log an event to flurryflurryAnalytics; // log an event to flurry with custom parametersvar ovenParams = temp: 350 mode: 'convection' rackPosition: 'center'flurryAnalytics; // start a timed eventflurryAnalytics; // start a timed event with custom parametersvar riceParams = salt: '2tsp' pepper: 'dash' water: '2cups'flurryAnalytics; // complete a timed eventflurryAnalytics; // complete a timed event and change the value of parametersvar newRiceParams = butter: '2pads'flurryAnalytics; // log an errorflurryAnalytics; // log a page viewflurryAnalytics; // set the location for the event (this is will only be used for very course grained statistics like cityvar location = latitude: 172500 longitude: -626667 verticalAccuracy: -1 // optional iOS only horizontalAccuracy: 1440 // optional iOS onlyflurryAnalytics;