@netlify/spark-ui 0.0.46-alpha → 0.0.46-alpha.2

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.
@@ -6,7 +6,7 @@ class g {
6
6
  * @param payload additional key/value data
7
7
  */
8
8
  track(n, c = {}) {
9
- gtag("event", n, c);
9
+ gtag("event", n, { ...c });
10
10
  }
11
11
  }
12
12
  function T(r) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "0.0.46-alpha",
4
+ "version": "0.0.46-alpha.2",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",
@@ -11,4 +11,13 @@
11
11
  f.parentNode.insertBefore(j, f);
12
12
  })(window, document, 'script', 'dataLayer', 'GTM-T7WNFLD');
13
13
  </script>
14
- <!-- End Google Tag Manager -->
14
+ <!-- End Google Tag Manager -->
15
+
16
+ <!-- Google Analytics (gtag.js) -->
17
+ <script>
18
+ function gtag(){dataLayer.push(arguments);}
19
+ gtag('js', new Date());
20
+
21
+ gtag('config', 'G-X2FMMZSSS9');
22
+ </script>
23
+ <!-- End Google Analytics (gtag.js) -->
@@ -5,6 +5,6 @@ export default class Analytics {
5
5
  * @param payload additional key/value data
6
6
  */
7
7
  track(eventName: string, payload: Record<string, any> = {}): void {
8
- gtag('event', eventName, payload);
8
+ gtag('event', eventName, { ...payload });
9
9
  }
10
10
  }