luisfarzati/angulartics — pull request #60 by mlegenhausen (2013-12-05 11:29:50+00:00)
Title: Cordova/Phonegap support added via GAPlugin

This plugin provides an integration of the GAPlugin for Cordova/Phonegap: https://github.com/phonegap-build/GAPlugin

### Usage example

Before you can start using you need to install the GAPlugin for your platform. The instructions can be found on the homepage.

Then add the plugin file to your `index.html` file:

```

```

Now add the module to your app configuration.

```
angular.module('app', ['angulartics', 'angulartics.google.analytics.cordova']);
```

Then configure the plugin via:

```
.config('googleAnalyticsCordovaProvider', function (googleAnalyticsCordovaProvider) {
googleAnalyticsCordovaProvider.trackingId = 'XXX';
googleAnalyticsCordovaProvider.period = 20; // default: 10 (in seconds)
googleAnalyticsCordovaProvider.debug = true; // default: false
})
```

That's it you now have mobile google analytics running in your app. Have fun.

Feedback is welcome!