@blotoutio/providers-google-analytics-4-sdk
Advanced tools
Comparing version 0.11.0 to 0.12.0
22
index.js
@@ -31,2 +31,3 @@ var ProvidersGoogleAnalytics4Sdk = (function () { | ||
user_id: userId, | ||
send_page_view: false, | ||
}); | ||
@@ -36,3 +37,3 @@ } | ||
const getItems = (contents = [], currency) => { | ||
const getItems = (contents = []) => { | ||
return contents.map((content) => { | ||
@@ -44,5 +45,2 @@ const data = { | ||
}; | ||
if (currency) { | ||
data['currency'] = currency.toUpperCase(); | ||
} | ||
if (content.category) { | ||
@@ -71,3 +69,3 @@ data['item_category'] = content.category; | ||
value: data['value'], | ||
items: getItems(data['contents'], data['currency']), | ||
items: getItems(data['contents']), | ||
}, | ||
@@ -82,3 +80,3 @@ }; | ||
value: data['value'], | ||
items: getItems(data['contents'], data['currency']), | ||
items: getItems(data['contents']), | ||
}, | ||
@@ -93,3 +91,3 @@ }; | ||
value: data['value'], | ||
items: getItems(data['contents'], data['currency']), | ||
items: getItems(data['contents']), | ||
}, | ||
@@ -104,3 +102,3 @@ }; | ||
value: data['value'], | ||
items: getItems(data['contents'], data['currency']), | ||
items: getItems(data['contents']), | ||
}, | ||
@@ -115,3 +113,3 @@ }; | ||
value: data['value'], | ||
items: getItems(data['contents'], data['currency']), | ||
items: getItems(data['contents']), | ||
}, | ||
@@ -127,3 +125,3 @@ }; | ||
value: data['value'], | ||
items: getItems(data['contents'], data['currency']), | ||
items: getItems(data['contents']), | ||
}, | ||
@@ -165,3 +163,3 @@ }; | ||
} | ||
window.gtag('event', event, eventData); | ||
window.gtag('event', event, Object.assign(Object.assign({}, eventData), { app: 'blotout' })); | ||
}; | ||
@@ -200,3 +198,3 @@ | ||
loaded: isLoaded, | ||
sdkVersion: "0.11.0" , | ||
sdkVersion: "0.12.0" , | ||
}; | ||
@@ -203,0 +201,0 @@ }; |
{ | ||
"name": "@blotoutio/providers-google-analytics-4-sdk", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"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
7330
204