tango-app-ui-auth 3.3.1-beta.6 → 3.3.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -289,17 +289,9 @@ class TangoAuthLoginComponent {
289
289
  if (res && res.code == 200) {
290
290
  if (res.data.userType === 'client') {
291
291
  let userId = res.data?._id;
292
- window.hj('identify', userId, {
293
- 'loginTime': this.dayjs().format('DD/MM/YYYY HH:mm'),
294
- 'clientName': res.data?.clientName,
295
- 'email': res.data?.email,
296
- 'userName': res.data?.userName,
297
- });
298
- window.clarity("set", 'userId', res.data?._id);
299
- window.clarity("set", 'loginTime', this.dayjs().format('DD/MM/YYYY HH:mm'));
300
- window.clarity("set", 'clientName', res.data?.clientName);
301
- window.clarity("set", 'email', res.data?.email);
302
- window.clarity("set", 'userName', res.data?.userName);
292
+ window.pagesense = window.pagesense || [];
293
+ window.pagesense.push(['identifyUser', res.data?.email]);
294
+ window.pagesense.push(['trackUser', { 'ClientName': res.data?.clientName, 'Email': res.data?.email, 'UserName': res.data?.userName, 'LoginTime': this.dayjs().format('DD/MM/YYYY HH:mm'), 'userId': res.data?._id }]);
303
295
  }
304
296
  this.gs.userAccess.next(res.data?.permission);
305
297
  this.cd.detectChanges();