feat(analytics): Track party buttons

This commit is contained in:
Sabe Jones
2015-09-07 12:02:01 -04:00
parent 168ba0c96c
commit d6f416b6d3
2 changed files with 3 additions and 1 deletions

View File

@@ -106,6 +106,7 @@
}
function inviteOrStartParty(group) {
Analytics.track({'hitType':'event','eventCategory':'button','eventAction':'click','eventLabel':'Invite Friends'});
if (group.type === "party" || $location.$$path === "/options/groups/party") {
group.type = 'party';
$rootScope.openModal('invite-party', {
@@ -115,7 +116,6 @@
}
});
} else {
Analytics.track({'hitType':'event','eventCategory':'button','eventAction':'click','eventLabel':'Invite Friends'});
$location.path("/options/groups/party");
}
}