@blotoutio/providers-google-analytics-4-sdk
Advanced tools
Comparing version 0.29.0 to 0.30.0
'use strict'; | ||
const packageName = 'googleAnalytics4'; | ||
const tagManagerUrl = 'https://www.googletagmanager.com/gtag/js'; | ||
// eslint-disable-next-line @nx/enforce-module-boundaries | ||
const initGA4 = (ID) => { | ||
@@ -14,3 +18,3 @@ window.dataLayer = window.dataLayer || []; | ||
element.async = !0; | ||
element.src = `https://www.googletagmanager.com/gtag/js?id=${ID}`; | ||
element.src = `${tagManagerUrl}?id=${ID}`; | ||
const script = document.getElementsByTagName('script')[0]; | ||
@@ -268,8 +272,9 @@ if (script && script.parentNode) { | ||
loaded: isLoaded, | ||
sdkVersion: "0.29.0" , | ||
sdkVersion: "0.30.0" , | ||
}; | ||
}; | ||
// eslint-disable-next-line @nx/enforce-module-boundaries | ||
const data = { | ||
name: 'googleAnalytics4', | ||
name: packageName, | ||
init, | ||
@@ -276,0 +281,0 @@ tag, |
11
index.js
var ProvidersGoogleAnalytics4Sdk = (function () { | ||
'use strict'; | ||
const packageName = 'googleAnalytics4'; | ||
const tagManagerUrl = 'https://www.googletagmanager.com/gtag/js'; | ||
// eslint-disable-next-line @nx/enforce-module-boundaries | ||
const initGA4 = (ID) => { | ||
@@ -15,3 +19,3 @@ window.dataLayer = window.dataLayer || []; | ||
element.async = !0; | ||
element.src = `https://www.googletagmanager.com/gtag/js?id=${ID}`; | ||
element.src = `${tagManagerUrl}?id=${ID}`; | ||
const script = document.getElementsByTagName('script')[0]; | ||
@@ -269,8 +273,9 @@ if (script && script.parentNode) { | ||
loaded: isLoaded, | ||
sdkVersion: "0.29.0" , | ||
sdkVersion: "0.30.0" , | ||
}; | ||
}; | ||
// eslint-disable-next-line @nx/enforce-module-boundaries | ||
const data = { | ||
name: 'googleAnalytics4', | ||
name: packageName, | ||
init, | ||
@@ -277,0 +282,0 @@ tag, |
{ | ||
"name": "@blotoutio/providers-google-analytics-4-sdk", | ||
"version": "0.29.0", | ||
"version": "0.30.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
27518
859