diff --git a/src/main/webapp/js/services.js b/src/main/webapp/js/services.js index 82e2ad5c..aa018b03 100644 --- a/src/main/webapp/js/services.js +++ b/src/main/webapp/js/services.js @@ -2,7 +2,7 @@ var module = angular.module('commafeed.services', [ 'ngResource' ]); module.service('AnalyticsService', [ '$state', function($state) { this.track = function(path) { - if (!ga) { + if (typeof variable === 'undefined') { return; } path = path || $state.$current.url.prefix;