ionic-cordova-gulp-seed
Version:
Ionic & Cordova & Gulp seed with organized code, tests, bower support and some other stuff. Originated from ionic-angular-cordova-seed.
30 lines (25 loc) • 796 B
JavaScript
/**
* @license Angulartics v0.17.2
* (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics
* Contributed by http://github.com/chechoacosta
* License: MIT
*/
(function(angular) {
;
/**
* @ngdoc overview
* @name angulartics.chartbeat
* Enables analytics support for Chartbeat (http://chartbeat.com)
*/
angular.module('angulartics.chartbeat', ['angulartics'])
.config(['$analyticsProvider', function ($analyticsProvider) {
angulartics.waitForVendorApi('pSUPERFLY', 500, function (pSUPERFLY) {
$analyticsProvider.registerPageTrack(function (path) {
pSUPERFLY.virtualPage(path);
});
});
$analyticsProvider.registerEventTrack(function () {
console.warn('Chartbeat doesn\'t support event tracking -- silently ignored.');
});
}]);
})(angular);