diff --git a/front/src/js/app.js b/front/src/js/app.js index 7fee1f2..18cb76b 100644 --- a/front/src/js/app.js +++ b/front/src/js/app.js @@ -35,7 +35,7 @@ yltApp.run(['$rootScope', '$location', function($rootScope, $location) { // Google Analytics $rootScope.$on('$routeChangeSuccess', function(){ - if (ga) { + if (typeof ga !== "undefined") { ga('send', 'pageview', {'page': $location.path()}); } });