Fix "ReferenceError: ga is not defined"

This commit is contained in:
Paul Hooijenga
2018-03-05 09:43:13 +01:00
parent 6bdbfa2657
commit 5646a22245
+1 -1
View File
@@ -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()});
}
});