App Center Analytics

Contents

App Center Analytics helps you understand user behavior and customer engagement to improve your app. The SDK automatically captures session count and device properties like model, OS version, etc. You can define your own custom events to measure things that matter to you. All the information captured is available in the App Center portal for you to analyze the data.

Ionic App Center Analytics插件的安装(Installation)

ionic cordova plugin add cordova-plugin-appcenter-analytics npm install @ionic-native/app-center-analytics

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

  • Android
  • iOS

Ionic App Center Analytics插件的用法(Usage)

import { AppCenterAnalytics } from '@ionic-native/app-center-analytics';


constructor(private appCenterAnalytics: AppCenterAnalytics) { }

...

this.appCenterAnalytics.setEnabled(true).then(() => {
   this.appCenterAnalytics.trackEvent('My Event', { TEST: 'HELLO_WORLD' }).then(() => {
       console.log('Custom event tracked');
   });
});