Flurry Analytics

Contents

This plugin connects to Flurry Analytics SDK

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Flurry Analytics插件的安装(Installation)

ionic cordova plugin add cordova-plugin-flurryanalytics npm install @ionic-native/flurry-analytics
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/flurry-analytics

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

  • Android
  • iOS

Ionic Flurry Analytics插件的用法(Usage)

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

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));