feat(analytics): Mixpanel implementation WIP

This commit is contained in:
Sabe Jones
2015-05-27 12:44:38 -05:00
parent 39cb9bfb99
commit 726a8f1acb
15 changed files with 84 additions and 8 deletions

View File

@@ -180,6 +180,7 @@ habitrpg.controller("InventoryCtrl",
$rootScope.selectedQuest = undefined;
}
$scope.questInit = function(){
mixpanel.track("Quest",{"owner":true,"response":"accept","questName":$scope.selectedQuest.key});
$rootScope.party.$questAccept({key:$scope.selectedQuest.key}, function(){
$rootScope.party.$get();
});