Record events when an invitation is shown to a user and when they join the room
This commit is contained in:
parent
92e99ab299
commit
b5993e821d
1 changed files with 6 additions and 0 deletions
|
|
@ -381,6 +381,7 @@ export default {
|
|||
.then(
|
||||
function (ignoreduser) {
|
||||
console.log("Join: joining room");
|
||||
this.$analytics.event("Invitations", "Room Joined");
|
||||
this.loadingMessage = this.$t("join.status_joining");
|
||||
return this.$matrix.matrixClient.joinRoom(this.roomId);
|
||||
}.bind(this)
|
||||
|
|
@ -422,6 +423,11 @@ export default {
|
|||
Math.floor(Math.random() * this.availableAvatars.length)
|
||||
]
|
||||
);
|
||||
// mounted() is called more than once, so multiple instances of this event
|
||||
// do not necessarily indicate a user was shown the join page more than once.
|
||||
// To analyze this data, segment users into those who have an "Invitations"
|
||||
// action and set up conversion tracking triggered by Room Joined (once per visit).
|
||||
this.$analytics.event("Invitations", "Join Page Shown");
|
||||
},
|
||||
destroyed() {
|
||||
this.$matrix.off("Room.myMembership", this.onMyMembership);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue