From 8742d7d7179cafd9c0ecfc24dfdcc41259c491f0 Mon Sep 17 00:00:00 2001 From: Christian Bedon Date: Wed, 27 Sep 2023 17:02:23 -0500 Subject: [PATCH] fix: event value should be loan count --- src/components/Checkout/DonationItem.vue | 1 + src/components/Checkout/OrderTotals.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Checkout/DonationItem.vue b/src/components/Checkout/DonationItem.vue index 403a1f2bc0..7746d2c4c9 100644 --- a/src/components/Checkout/DonationItem.vue +++ b/src/components/Checkout/DonationItem.vue @@ -892,6 +892,7 @@ export default { const donationProperty = this.donation.isUserEdited ? 'user-set' : 'kiva-set'; this.$kvTrackEvent('basket', 'show', 'tip-donation-amount', donationProperty, this.donation.price * 100); + this.$kvTrackEvent('basket', 'show', 'loans', null, this.loanCount); this.setupContentfulContent(); }, watch: { diff --git a/src/components/Checkout/OrderTotals.vue b/src/components/Checkout/OrderTotals.vue index 2c61a3b5a4..96ca2a7b4c 100644 --- a/src/components/Checkout/OrderTotals.vue +++ b/src/components/Checkout/OrderTotals.vue @@ -446,7 +446,6 @@ export default { const creditValue = 100 * (!this.showApplyKivaCredit ? this.totals.kivaCreditAppliedTotal : this.totals.creditAvailableTotal); this.$kvTrackEvent('basket', 'show', 'kiva-credit', creditProperty, creditValue); - this.$kvTrackEvent('basket', 'show', 'loans', null, this.totals.loanReservationTotal * 100); this.$kvTrackEvent('basket', 'show', 'basket-size', null, this.totals.itemTotal * 100); } },