Skip to main content
Version: v5

Google Analytics

This plugin connects to Google's native Universal Analytics SDK Prerequisites:

  • A Cordova 3.0+ project for iOS and/or Android
  • A Mobile App property through the Google Analytics Admin Console
  • (Android) Google Play Services SDK installed via Android SDK Manager

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.


$ npm install cordova-plugin-google-analytics
$ npm install @awesome-cordova-plugins/google-analytics
$ ionic cap sync

Supported Platforms

  • Android
  • Browser
  • iOS
  • Windows Phone 8



Learn more about using Ionic Native components in React


import { GoogleAnalytics } from '@awesome-cordova-plugins/google-analytics/ngx';

constructor(private ga: GoogleAnalytics) { }

.then(() => {
console.log('Google analytics is ready now');'test');
// Tracker is ready
// You can now track pages or set additional information such as AppVersion or UserId
.catch(e => console.log('Error starting GoogleAnalytics', e));