From 7912e1e098a30d500d822060f02cd56a4c856025 Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 25 Apr 2013 12:54:32 +0200 Subject: [PATCH] correctly check if ga is defined --- src/main/webapp/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;