fix(analytics): Move landing page tracking

...to AuthCtrl
This commit is contained in:
Sabe Jones
2015-06-22 18:49:15 -05:00
parent f5dfa5f015
commit f8e3120b3a
2 changed files with 2 additions and 3 deletions

View File

@@ -8,6 +8,8 @@ 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.logout = function() {
localStorage.clear();
window.location.href = '/logout';