@blotoutio/providers-google-analytics-4-sdk 0.36.2 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +4 -1
- package/index.js +4 -1
- package/index.mjs +4 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -77,6 +77,9 @@ const getItems = (contents = []) => {
|
|
|
77
77
|
item_id: content.id.toString(),
|
|
78
78
|
quantity: content.quantity || 1,
|
|
79
79
|
};
|
|
80
|
+
if (content.sku) {
|
|
81
|
+
data['item_sku'] = content.sku;
|
|
82
|
+
}
|
|
80
83
|
if (content.title) {
|
|
81
84
|
data['item_name'] = content.title;
|
|
82
85
|
}
|
|
@@ -301,7 +304,7 @@ const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
|
301
304
|
}
|
|
302
305
|
return {
|
|
303
306
|
loaded: isLoaded,
|
|
304
|
-
sdkVersion: "0.
|
|
307
|
+
sdkVersion: "0.38.0" ,
|
|
305
308
|
};
|
|
306
309
|
};
|
|
307
310
|
|
package/index.js
CHANGED
|
@@ -78,6 +78,9 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
78
78
|
item_id: content.id.toString(),
|
|
79
79
|
quantity: content.quantity || 1,
|
|
80
80
|
};
|
|
81
|
+
if (content.sku) {
|
|
82
|
+
data['item_sku'] = content.sku;
|
|
83
|
+
}
|
|
81
84
|
if (content.title) {
|
|
82
85
|
data['item_name'] = content.title;
|
|
83
86
|
}
|
|
@@ -302,7 +305,7 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
302
305
|
}
|
|
303
306
|
return {
|
|
304
307
|
loaded: isLoaded,
|
|
305
|
-
sdkVersion: "0.
|
|
308
|
+
sdkVersion: "0.38.0" ,
|
|
306
309
|
};
|
|
307
310
|
};
|
|
308
311
|
|
package/index.mjs
CHANGED
|
@@ -75,6 +75,9 @@ const getItems = (contents = []) => {
|
|
|
75
75
|
item_id: content.id.toString(),
|
|
76
76
|
quantity: content.quantity || 1,
|
|
77
77
|
};
|
|
78
|
+
if (content.sku) {
|
|
79
|
+
data['item_sku'] = content.sku;
|
|
80
|
+
}
|
|
78
81
|
if (content.title) {
|
|
79
82
|
data['item_name'] = content.title;
|
|
80
83
|
}
|
|
@@ -299,7 +302,7 @@ const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
|
299
302
|
}
|
|
300
303
|
return {
|
|
301
304
|
loaded: isLoaded,
|
|
302
|
-
sdkVersion: "0.
|
|
305
|
+
sdkVersion: "0.38.0" ,
|
|
303
306
|
};
|
|
304
307
|
};
|
|
305
308
|
|