@blotoutio/providers-google-analytics-4-sdk
Advanced tools
Comparing version 0.22.0 to 0.22.1
10
index.js
@@ -22,3 +22,5 @@ var ProvidersGoogleAnalytics4Sdk = (function () { | ||
const init = ({ manifest, userId }) => { | ||
if (!window || !manifest.variables) { | ||
if (!window || | ||
!manifest.variables || | ||
manifest.variables['flowType'] === 'server') { | ||
return; | ||
@@ -219,3 +221,5 @@ } | ||
const handleTag = ({ data = {}, eventName, eventId, manifestVariables, }) => { | ||
if (!eventName || !window.gtag) { | ||
if (!eventName || | ||
!window.gtag || | ||
(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['flowType']) === 'server') { | ||
return; | ||
@@ -266,3 +270,3 @@ } | ||
loaded: isLoaded, | ||
sdkVersion: "0.22.0" , | ||
sdkVersion: "0.22.1" , | ||
}; | ||
@@ -269,0 +273,0 @@ }; |
{ | ||
"name": "@blotoutio/providers-google-analytics-4-sdk", | ||
"version": "0.22.0", | ||
"version": "0.22.1", | ||
"description": "Google Analytics 4 Browser SDK for EdgeTag", | ||
@@ -5,0 +5,0 @@ "author": "Blotout", |
10134
284