@salesgenterp/ui-components 0.4.219 → 0.4.220

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.
package/dist/index.js CHANGED
@@ -6063,17 +6063,14 @@ var GTagManager = function GTagManager(_ref) {
6063
6063
  if (gTagId) {
6064
6064
  setTimeout(function () {
6065
6065
  if (!document.getElementById('gTagManagerId')) {
6066
- var gtag = function gtag() {
6067
- dataLayer.push(arguments);
6068
- };
6069
6066
  var script = document.createElement('script');
6070
6067
  script.src = "https://www.googletagmanager.com/gtag/js?id=" + gTagId;
6071
6068
  script.async = true;
6072
6069
  script.id = 'gTagManagerId';
6073
6070
  document.body.appendChild(script);
6074
- window.dataLayer = window.dataLayer || [];
6075
- gtag('js', new Date());
6076
- gtag('config', "" + gTagId);
6071
+ var script1 = document.createElement('script');
6072
+ script1.innerHTML = "window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '" + gTagId + "');";
6073
+ document.body.appendChild(script1);
6077
6074
  }
6078
6075
  }, 1000);
6079
6076
  }