@blotoutio/providers-google-analytics-4-sdk
Advanced tools
Comparing version 0.40.0 to 0.41.0
@@ -56,2 +56,3 @@ 'use strict'; | ||
!manifest.variables || | ||
!manifest.variables['measurementId'] || | ||
manifest.variables['flowType'] === 'server') { | ||
@@ -259,13 +260,10 @@ return; | ||
!window.gtag || | ||
(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['flowType']) === 'server') { | ||
!(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['measurementId']) || | ||
manifestVariables['flowType'] === 'server') { | ||
return; | ||
} | ||
const { event, eventData } = getEvent(eventName, data, eventId); | ||
if (manifestVariables) { | ||
if (manifestVariables['measurementId']) { | ||
eventData['send_to'] = manifestVariables['measurementId']; | ||
} | ||
if (manifestVariables['debug'] === '1') { | ||
eventData['debug_mode'] = true; | ||
} | ||
eventData['send_to'] = manifestVariables['measurementId']; | ||
if (manifestVariables['debug'] === '1') { | ||
eventData['debug_mode'] = true; | ||
} | ||
@@ -306,3 +304,3 @@ window.gtag('event', event, { ...eventData, app: 'blotout' }); | ||
loaded: isLoaded, | ||
sdkVersion: "0.40.0" , | ||
sdkVersion: "0.41.0" , | ||
}; | ||
@@ -309,0 +307,0 @@ }; |
16
index.js
@@ -57,2 +57,3 @@ var ProvidersGoogleAnalytics4Sdk = (function () { | ||
!manifest.variables || | ||
!manifest.variables['measurementId'] || | ||
manifest.variables['flowType'] === 'server') { | ||
@@ -260,13 +261,10 @@ return; | ||
!window.gtag || | ||
(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['flowType']) === 'server') { | ||
!(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['measurementId']) || | ||
manifestVariables['flowType'] === 'server') { | ||
return; | ||
} | ||
const { event, eventData } = getEvent(eventName, data, eventId); | ||
if (manifestVariables) { | ||
if (manifestVariables['measurementId']) { | ||
eventData['send_to'] = manifestVariables['measurementId']; | ||
} | ||
if (manifestVariables['debug'] === '1') { | ||
eventData['debug_mode'] = true; | ||
} | ||
eventData['send_to'] = manifestVariables['measurementId']; | ||
if (manifestVariables['debug'] === '1') { | ||
eventData['debug_mode'] = true; | ||
} | ||
@@ -307,3 +305,3 @@ window.gtag('event', event, { ...eventData, app: 'blotout' }); | ||
loaded: isLoaded, | ||
sdkVersion: "0.40.0" , | ||
sdkVersion: "0.41.0" , | ||
}; | ||
@@ -310,0 +308,0 @@ }; |
{ | ||
"name": "@blotoutio/providers-google-analytics-4-sdk", | ||
"version": "0.40.0", | ||
"version": "0.41.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
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
32504
985