@blotoutio/providers-google-analytics-4-sdk 0.15.0 → 0.15.1

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.
Files changed (2) hide show
  1. package/index.js +8 -3
  2. 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 && manifestVariables['measurementId']) {
223
- eventData['send_to'] = manifestVariables['measurementId'];
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.15.0" ,
264
+ sdkVersion: "0.15.1" ,
260
265
  };
261
266
  };
262
267
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-analytics-4-sdk",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Google Analytics 4 Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",