fix(analytics): Add missing ID update

Also make the order of partyID and partySize consistent across updateUser calls.
This commit is contained in:
Sabe Jones
2015-07-27 14:34:31 -05:00
parent 9d7a2a1c24
commit e9ed561907
3 changed files with 6 additions and 6 deletions

View File

@@ -267,7 +267,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
$scope.message.content = '';
$scope._sending = false;
if (group.type == 'party') {
Analytics.updateUser({'partySize':group.memberCount});
Analytics.updateUser({'partyID':group.id,'partySize':group.memberCount});
}
if (group.privacy == 'public'){
Analytics.track({'hitType':'event','eventCategory':'behavior','eventAction':'group chat','groupType':group.type,'privacy':group.privacy,'groupName':group.name,'message':message});