@blotoutio/providers-google-analytics-4-sdk 0.22.0 → 0.22.2

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 +7 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -19,7 +19,9 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
19
19
  }
20
20
  };
21
21
  const init = ({ manifest, userId }) => {
22
- if (!window || !manifest.variables) {
22
+ if (!window ||
23
+ !manifest.variables ||
24
+ manifest.variables['flowType'] === 'server') {
23
25
  return;
24
26
  }
25
27
  if (!window.gtag) {
@@ -215,7 +217,9 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
215
217
  }
216
218
  };
217
219
  const handleTag = ({ data = {}, eventName, eventId, manifestVariables, }) => {
218
- if (!eventName || !window.gtag) {
220
+ if (!eventName ||
221
+ !window.gtag ||
222
+ (manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['flowType']) === 'server') {
219
223
  return;
220
224
  }
221
225
  const { event, eventData } = getEvent(eventName, data, eventId);
@@ -261,7 +265,7 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
261
265
  }
262
266
  return {
263
267
  loaded: isLoaded,
264
- sdkVersion: "0.22.0" ,
268
+ sdkVersion: "0.22.2" ,
265
269
  };
266
270
  };
267
271
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-analytics-4-sdk",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Google Analytics 4 Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",