@faskai/ui-commons 0.0.0-alpha.6 → 0.0.0-alpha.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.
|
@@ -17,6 +17,11 @@ function GTMProvider({ gtmId, children, environment = 'production' }) {
|
|
|
17
17
|
return;
|
|
18
18
|
// Initialize dataLayer
|
|
19
19
|
window.dataLayer = window.dataLayer || [];
|
|
20
|
+
// Initialize gtag function
|
|
21
|
+
function gtag(...args) {
|
|
22
|
+
window.dataLayer.push(args);
|
|
23
|
+
}
|
|
24
|
+
window.gtag = gtag;
|
|
20
25
|
// Load GTM script
|
|
21
26
|
const script = document.createElement('script');
|
|
22
27
|
script.innerHTML = `
|
package/package.json
CHANGED