@artisan-commerce/analytics-web 0.1.0-canary.148.14.1 → 0.1.0-canary.148.14.2
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/dist/bundle.cjs +3 -1
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +4 -2
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.umd.js +3 -1
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +6 -6
package/dist/bundle.cjs
CHANGED
|
@@ -50,7 +50,7 @@ const _State = class {
|
|
|
50
50
|
let State$1 = _State;
|
|
51
51
|
State$1._instance = null;
|
|
52
52
|
|
|
53
|
-
var version = "0.1.0-canary.148.14";
|
|
53
|
+
var version = "0.1.0-canary.148.14.1";
|
|
54
54
|
var packageJSON = {
|
|
55
55
|
version: version};
|
|
56
56
|
|
|
@@ -9695,6 +9695,7 @@ const viewProductDetails$2 = (provider, params) => {
|
|
|
9695
9695
|
productName,
|
|
9696
9696
|
currency: selectedCurrency
|
|
9697
9697
|
});
|
|
9698
|
+
const cartProduct = products.transformers.toCartProduct(product);
|
|
9698
9699
|
const total = products.getProductTotals(product);
|
|
9699
9700
|
const transformedParams = eventParamsToSnakeCase(enhancedParams);
|
|
9700
9701
|
const { meta } = State().state;
|
|
@@ -9702,6 +9703,7 @@ const viewProductDetails$2 = (provider, params) => {
|
|
|
9702
9703
|
gtag("event", "view_item", __spreadValues$1b(__spreadValues$1b({
|
|
9703
9704
|
send_to: trackingId,
|
|
9704
9705
|
event_callback: callback,
|
|
9706
|
+
items: [mapProductToGoogleItem(cartProduct)],
|
|
9705
9707
|
value: total.netPrice
|
|
9706
9708
|
}, transformedParams), transformedMeta));
|
|
9707
9709
|
};
|