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

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,23 @@ 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.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 )
303
+ window.pagesense = window.pagesense || [];
304
+ window.pagesense.push(['identifyUser', res.data?.userName]);
305
+ window.pagesense.push(['ClientName', res.data?.clientName]);
306
+ window.pagesense.push(['Email', res.data?.email]);
307
+ window.pagesense.push(['LoginTime', this.dayjs().format('DD/MM/YYYY HH:mm')]);
308
+ window.pagesense.push(['userId', res.data?._id]);
303
309
  }
304
310
  this.gs.userAccess.next(res.data?.permission);
305
311
  this.cd.detectChanges();