@blotoutio/providers-google-analytics-4-sdk 0.15.0 → 0.16.0
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/index.js +8 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -219,8 +219,13 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
221
221
|
const { event, eventData } = getEvent(eventName, data, eventId);
|
|
222
|
-
if (manifestVariables
|
|
223
|
-
|
|
222
|
+
if (manifestVariables) {
|
|
223
|
+
if (manifestVariables['measurementId']) {
|
|
224
|
+
eventData['send_to'] = manifestVariables['measurementId'];
|
|
225
|
+
}
|
|
226
|
+
if (manifestVariables['debug'] === '1') {
|
|
227
|
+
eventData['debug_mode'] = true;
|
|
228
|
+
}
|
|
224
229
|
}
|
|
225
230
|
window.gtag('event', event, Object.assign(Object.assign({}, eventData), { app: 'blotout' }));
|
|
226
231
|
};
|
|
@@ -256,7 +261,7 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
256
261
|
}
|
|
257
262
|
return {
|
|
258
263
|
loaded: isLoaded,
|
|
259
|
-
sdkVersion: "0.
|
|
264
|
+
sdkVersion: "0.16.0" ,
|
|
260
265
|
};
|
|
261
266
|
};
|
|
262
267
|
|