tnx-shared 5.1.630 → 5.1.632

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.
@@ -33631,7 +33631,8 @@
33631
33631
  this.favIcon = this.document.querySelector('#appFavicon');
33632
33632
  this.icon = '';
33633
33633
  this.showMenuIconInactive = false;
33634
- if (gtag) {
33634
+ this.environment = this._moduleConfigService.getConfig().environment;
33635
+ if (gtag && this.environment.googleAnalyticCode) {
33635
33636
  gtag('config', this.environment.googleAnalyticCode);
33636
33637
  this._router.events.subscribe(function (event) {
33637
33638
  if (event instanceof i3.NavigationEnd) {
@@ -33639,7 +33640,6 @@
33639
33640
  }
33640
33641
  });
33641
33642
  }
33642
- this.environment = this._moduleConfigService.getConfig().environment;
33643
33643
  this.appCode = this._moduleConfigService.getConfig().appCode;
33644
33644
  this.icon = this.environment.appMetadata.main.favicon;
33645
33645
  if (this.favIcon) {
@@ -33692,7 +33692,7 @@
33692
33692
  var user, domain, subPath, linkRedirect_1, oldUrl;
33693
33693
  var _this = this;
33694
33694
  return __generator(this, function (_b) {
33695
- if (gtag) {
33695
+ if (gtag && this.environment.googleAnalyticCode) {
33696
33696
  user = this._userService.getCurrentUser();
33697
33697
  gtag('set', { user_id: user.userName });
33698
33698
  gtag('config', this.environment.googleAnalyticCode, {