tango-app-ui-auth 3.3.1-beta.7 → 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,23 +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 )
303
292
  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]);
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 }]);
309
295
  }
310
296
  this.gs.userAccess.next(res.data?.permission);
311
297
  this.cd.detectChanges();