FEATURE: analytics client now scrape user email and room group

This commit is contained in:
Kharhamel 2021-09-30 16:14:55 +02:00
parent d0c0f3e7fc
commit 726f52976d
7 changed files with 20 additions and 8 deletions

View file

@ -112,7 +112,7 @@ class ConnectionManager {
const data = await Axios.post(`${PUSHER_URL}/register`, { organizationMemberToken }).then(
(res) => res.data
);
this.localUser = new LocalUser(data.userUuid, data.textures);
this.localUser = new LocalUser(data.userUuid, data.textures, data.email);
this.authToken = data.authToken;
localUserStore.saveUser(this.localUser);
localUserStore.setAuthToken(this.authToken);
@ -196,7 +196,7 @@ class ConnectionManager {
return Promise.reject(new Error("Invalid URL"));
}
if (this.localUser) {
analyticsClient.identifyUser(this.localUser.uuid);
analyticsClient.identifyUser(this.localUser.uuid, this.localUser.email);
}
this.serviceWorker = new _ServiceWorker();