I am trying to use Angulartics with Ionic Framework. However, nothing is tracking on google analytics. Here is how a set it up.
index.html.slim file
<script src="lib/angulartics/src/angulartics.js"> <script src="lib/angulartics/src/angulartics-ga-cordova.js">
javascript:
(function(i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function() { (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date(); a=s.createElement(o), m=s.getElementsByTagName(o)[0]; a.async=1; a.src=g; m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '#{ENV['GOOGLE_ANALYTICS_ID']', { 'cookieDomain': 'none' });`
Added it to my angular module
angular.module('app', ['angularMoment', 'angulartics', 'angulartics.google.analytics.cordova', 'ngCordova'])`
Adde $analyticsProvider to my config in routes
.config ($analyticsProvider, $stateProvider, $urlRouterProvider) ->
I am not getting any data on my google analytics Dashboard. Can someone please explain how to install Angulartics in my ionic project.