'use strict';
angular
  .module('freelook.info')
  .factory('analytics', function ($window, $rootScope, $location) {

    function init() {
      $rootScope.$on('$routeChangeSuccess', function () {
        if ($window.ga) {
          $window.ga('send', 'pageview', {page: $location.path()});
        }
      });
    }

    return {
      init: init
    };

  });



@@ -265,16 +265,35 @@
  %7Bpage: 
+decodeURIComponent(
 $locatio
@@ -298,13 +298,13 @@
 ion.
-path(
+url()
 )%7D);

improve analytics