FEATURE: analytics client now scrape user email and room group
This commit is contained in:
parent
d0c0f3e7fc
commit
726f52976d
7 changed files with 20 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue