@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 +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
6075
|
-
gtag('js', new Date());
|
|
6076
|
-
|
|
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
|
}
|