@b3dotfun/sdk 0.0.30-alpha.7 → 0.0.30-alpha.8

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sendGA4Event = exports.loadGA4Script = void 0;
4
- const GA4_MEASUREMENT_ID = "";
4
+ const GA4_MEASUREMENT_ID = "G-Z67JCLMNZE";
5
5
  /**
6
6
  * Initialize Google Analytics 4
7
7
  */
@@ -18,7 +18,10 @@ const initializeGA4 = () => {
18
18
  }
19
19
  // Configure GA4
20
20
  window.gtag("js", new Date());
21
- window.gtag("config", "G-Z67JCLMNZE", { send_page_view: false }); // We'll handle page views manually if needed
21
+ window.gtag("config", GA4_MEASUREMENT_ID, {
22
+ page_location: window.location.href,
23
+ page_hostname: window.location.hostname,
24
+ });
22
25
  };
23
26
  /**
24
27
  * Load Google Analytics 4 script and initialize
@@ -1,4 +1,4 @@
1
- const GA4_MEASUREMENT_ID = "";
1
+ const GA4_MEASUREMENT_ID = "G-Z67JCLMNZE";
2
2
  /**
3
3
  * Initialize Google Analytics 4
4
4
  */
@@ -15,7 +15,10 @@ const initializeGA4 = () => {
15
15
  }
16
16
  // Configure GA4
17
17
  window.gtag("js", new Date());
18
- window.gtag("config", "G-Z67JCLMNZE", { send_page_view: false }); // We'll handle page views manually if needed
18
+ window.gtag("config", GA4_MEASUREMENT_ID, {
19
+ page_location: window.location.href,
20
+ page_hostname: window.location.hostname,
21
+ });
19
22
  };
20
23
  /**
21
24
  * Load Google Analytics 4 script and initialize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.30-alpha.7",
3
+ "version": "0.0.30-alpha.8",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -1,4 +1,4 @@
1
- const GA4_MEASUREMENT_ID = "";
1
+ const GA4_MEASUREMENT_ID = "G-Z67JCLMNZE";
2
2
 
3
3
  /**
4
4
  * Initialize Google Analytics 4
@@ -17,7 +17,10 @@ const initializeGA4 = () => {
17
17
 
18
18
  // Configure GA4
19
19
  window.gtag("js", new Date());
20
- window.gtag("config", "G-Z67JCLMNZE", { send_page_view: false }); // We'll handle page views manually if needed
20
+ window.gtag("config", GA4_MEASUREMENT_ID, {
21
+ page_location: window.location.href,
22
+ page_hostname: window.location.hostname,
23
+ });
21
24
  };
22
25
 
23
26
  /**