fix(analytics): Pass tests

Restores the "UUID" property so that tests no longer fail. Corrects various typos in analytics service test. Moves landing page tracking to the Jade file to avoid duplicate tracking.
This commit is contained in:
Sabe Jones
2015-06-23 10:11:03 -05:00
parent 8b04768b37
commit fcd278c2f6
4 changed files with 19 additions and 19 deletions

View File

@@ -7,8 +7,7 @@
angular.module('habitrpg')
.controller("AuthCtrl", ['$scope', '$rootScope', 'User', '$http', '$location', '$window','ApiUrl', '$modal', 'Analytics',
function($scope, $rootScope, User, $http, $location, $window, ApiUrl, $modal, Analytics) {
Analytics.track({'hitType':'pageview','eventCategory':'page','eventAction':'landing page','page':'/static/front'});
$scope.Analytics = Analytics;
$scope.logout = function() {
localStorage.clear();