@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@faskai/ui-commons",
3
3
  "author": "Fask AI <arko@fask.ai>",
4
- "version": "0.0.0-alpha.6",
4
+ "version": "0.0.0-alpha.7",
5
5
  "description": "Common UI components and utilities for Fask applications",
6
6
  "private": false,
7
7
  "main": "dist/index.js",