@blotoutio/providers-google-analytics-4-sdk
Advanced tools
Comparing version 0.10.2 to 0.10.3
13
index.js
@@ -22,5 +22,3 @@ var ProvidersGoogleAnalytics4Sdk = (function () { | ||
const init = ({ manifest, userId }) => { | ||
if (!window || | ||
!manifest.variables || | ||
manifest.variables['type'] === 'DYNAMIC') { | ||
if (!window || !manifest.variables) { | ||
return; | ||
@@ -173,9 +171,10 @@ } | ||
const tag = ({ data, eventName, manifestVariables }) => { | ||
if (manifestVariables['type'] === 'FULL') { | ||
const tag = ({ data, eventName }) => { | ||
const isLoaded = window && window.gtag && !!getCookieValue('_ga'); | ||
if (isLoaded) { | ||
handleTag({ data, eventName }); | ||
} | ||
return { | ||
loaded: !!getCookieValue('_ga'), | ||
sdkVersion: "0.10.2" , | ||
loaded: isLoaded, | ||
sdkVersion: "0.10.3" , | ||
}; | ||
@@ -182,0 +181,0 @@ }; |
{ | ||
"name": "@blotoutio/providers-google-analytics-4-sdk", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "Google Analytics 4 Browser SDK for EdgeTag", | ||
@@ -5,0 +5,0 @@ "author": "Blotout", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6815
193