@artisan-commerce/analytics-web 0.2.0-canary.156 → 0.2.0-canary.157
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 +5 -11
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.d.ts +5 -5
- package/dist/bundle.mjs +5 -11
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.umd.js +5 -11
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +6 -6
package/dist/bundle.umd.js
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
let State$1 = _State;
|
|
51
51
|
State$1._instance = null;
|
|
52
52
|
|
|
53
|
-
var version = "0.2.0-canary.
|
|
53
|
+
var version = "0.2.0-canary.157";
|
|
54
54
|
var packageJSON = {
|
|
55
55
|
version: version};
|
|
56
56
|
|
|
@@ -916,6 +916,8 @@ ${key}: ${value}`;
|
|
|
916
916
|
return "coupon_menu";
|
|
917
917
|
if (categoryName == null ? void 0 : categoryName.includes("HOME"))
|
|
918
918
|
return "home_product";
|
|
919
|
+
if (categoryName == null ? void 0 : categoryName.includes("REWARDS"))
|
|
920
|
+
return "rewards_menu";
|
|
919
921
|
return "product_menu";
|
|
920
922
|
};
|
|
921
923
|
const getProductAddedFrom = (addedFrom) => {
|
|
@@ -3718,17 +3720,9 @@ ${key}: ${value}`;
|
|
|
3718
3720
|
const totals = shoppingCartCore.getShoppingCartTotal(shoppingCart);
|
|
3719
3721
|
const { total, totalPoints, shippingCost, totalTaxes } = totals;
|
|
3720
3722
|
const items = toItems("initiateCheckout", params);
|
|
3721
|
-
const products = shoppingCartCore.getShoppingCartProducts(shoppingCart);
|
|
3722
|
-
const totalItems = products.reduce((acc, product) => acc + product.amount, 0);
|
|
3723
3723
|
const extraParams = {
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
purchase_revenue: total,
|
|
3727
|
-
shipping_value_in_usd: shippingCost,
|
|
3728
|
-
shipping_value: shippingCost,
|
|
3729
|
-
tax_value_in_usd: totalTaxes,
|
|
3730
|
-
tax_value: totalTaxes,
|
|
3731
|
-
unique_items: items == null ? void 0 : items.length
|
|
3724
|
+
shipping: shippingCost,
|
|
3725
|
+
tax: totalTaxes
|
|
3732
3726
|
};
|
|
3733
3727
|
gtag("event", "begin_checkout", __spreadProps$24(__spreadValues$3f(__spreadValues$3f(__spreadValues$3f({
|
|
3734
3728
|
send_to: trackingId,
|