arky-sdk 0.7.34 → 0.7.35
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.
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -5
- package/dist/types.d.ts +1 -5
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2239,10 +2239,12 @@ async function createArkySDK(config) {
|
|
|
2239
2239
|
const businessApi = createBusinessApi(apiConfig);
|
|
2240
2240
|
const platformApi = createPlatformApi(apiConfig);
|
|
2241
2241
|
if (typeof window !== "undefined" && apiConfig.businessId) {
|
|
2242
|
-
businessApi.
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2242
|
+
businessApi.getIntegrationConfig({ businessId: apiConfig.businessId, type: "analytics" }).then((configs) => {
|
|
2243
|
+
if (!configs) return;
|
|
2244
|
+
for (const c of Array.isArray(configs) ? configs : [configs]) {
|
|
2245
|
+
if (c.measurementId) {
|
|
2246
|
+
injectGA4Script(c.measurementId);
|
|
2247
|
+
}
|
|
2246
2248
|
}
|
|
2247
2249
|
}).catch(() => {
|
|
2248
2250
|
});
|