Flurry Analytics

Contents

This plugin connects to Flurry Analytics SDK

https://github.com/blakgeek/cordova-plugin-flurryanalytics

Installation

ionic cordova plugin add cordova-plugin-flurryanalytics npm install @ionic-native/flurry-analytics

Supported Platforms

  • Android
  • iOS

Usage

import { FlurryAnalytics, FlurryAnalyticsObject, FlurryAnalyticsOptions } from '@ionic-native/flurry-analytics';

constructor(private flurryAnalytics: FlurryAnalytics) { }

...

const options: FlurryAnalyticsOptions = {
 appKey: '<your app key>', // REQUIRED
 reportSessionsOnClose: true,
 enableLogging: true
};

let fa: FlurryAnalyticsObject = this.flurryAnalytics.create(options);

fa.logEvent('event name')
  .then(() => console.log('Logged an event!'))
  .catch(e => console.log('Error logging the event', e));