@b3dotfun/sdk 0.0.30-alpha.7 → 0.0.30-alpha.9
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-VER9DKJH87";
|
|
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",
|
|
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-VER9DKJH87";
|
|
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",
|
|
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,4 +1,4 @@
|
|
|
1
|
-
const GA4_MEASUREMENT_ID = "";
|
|
1
|
+
const GA4_MEASUREMENT_ID = "G-VER9DKJH87";
|
|
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",
|
|
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
|
/**
|