Firebase Analytics

Contents

Cordova plugin for Firebase Analytics

https://github.com/chemerisuk/cordova-plugin-firebase-analytics

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-firebase-analytics npm install @ionic-native/firebase-analytics
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/firebase-analytics

Supported Platforms

  • Android
  • iOS

Usage

import { FirebaseAnalytics } from '@ionic-native/firebase-analytics/ngx';


constructor(private firebaseAnalytics: FirebaseAnalytics) { }

...

this.firebaseAnalytics.logEvent('page_view', {page: "dashboard"})
  .then((res: any) => console.log(res))
  .catch((error: any) => console.error(error));