@blotoutio/providers-google-analytics-4-sdk
Advanced tools
Comparing version 0.57.0 to 0.58.0
@@ -330,3 +330,12 @@ 'use strict'; | ||
const tag = ({ data, eventName, manifestVariables, eventId }) => { | ||
const isLoaded = window && window.gtag && !!getCookieValue('_ga'); | ||
let isLoaded; | ||
if (manifestVariables['flowType'] === 'browser') { | ||
isLoaded = true; | ||
} | ||
else if (manifestVariables['flowType'] === 'server') { | ||
isLoaded = false; | ||
} | ||
else { | ||
isLoaded = window && window.gtag && !!getCookieValue('_ga'); | ||
} | ||
if (isLoaded) { | ||
@@ -337,3 +346,3 @@ handleTag({ data, eventName, manifestVariables, eventId }); | ||
loaded: isLoaded, | ||
sdkVersion: "0.57.0" , | ||
sdkVersion: "0.58.0" , | ||
}; | ||
@@ -340,0 +349,0 @@ }; |
13
index.js
@@ -331,3 +331,12 @@ var ProvidersGoogleAnalytics4Sdk = (function () { | ||
const tag = ({ data, eventName, manifestVariables, eventId }) => { | ||
const isLoaded = window && window.gtag && !!getCookieValue('_ga'); | ||
let isLoaded; | ||
if (manifestVariables['flowType'] === 'browser') { | ||
isLoaded = true; | ||
} | ||
else if (manifestVariables['flowType'] === 'server') { | ||
isLoaded = false; | ||
} | ||
else { | ||
isLoaded = window && window.gtag && !!getCookieValue('_ga'); | ||
} | ||
if (isLoaded) { | ||
@@ -338,3 +347,3 @@ handleTag({ data, eventName, manifestVariables, eventId }); | ||
loaded: isLoaded, | ||
sdkVersion: "0.57.0" , | ||
sdkVersion: "0.58.0" , | ||
}; | ||
@@ -341,0 +350,0 @@ }; |
{ | ||
"name": "@blotoutio/providers-google-analytics-4-sdk", | ||
"version": "0.57.0", | ||
"version": "0.58.0", | ||
"description": "Google Analytics 4 Browser SDK for EdgeTag", | ||
@@ -5,0 +5,0 @@ "author": "Blotout", |
Sorry, the diff of this file is not supported yet
38963
1111