To use Google Analytics with Ionic Framework you need the following:

Google Anaytics account which you can create here

Dan Wislon Google Anayltics Plugin from here

Ionic App

First we need to set the property in Google Analytics. So go a head and create an App property as shown below

Once you create the Property you will get a Tracking ID which you will use in the App

Next you need to install the Google Analytics Plugin into your App. It can be installed from the command line by running the following:

cordova plugin add https://github.com/danwilson/google-analytics-plugin.git

We are ready to start integrating the App with Google Analytics. For that we will implement a service the include the functions shown below:

You can get the service code from GitHub