Flurry Analytics


This plugin connects to Flurry Analytics SDK


Ionic Flurry Analytics插件的安装(Installation)

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

Ionic Flurry Analytics插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Flurry Analytics插件的用法(Usage)

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

constructor(private flurryAnalytics: FlurryAnalytics) { }


const options: FlurryAnalyticsOptions = {
 appKey: '', // 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));