From 647573c4b1bc561d2a055198dc1e57228550eb75 Mon Sep 17 00:00:00 2001 From: Roger Gutierrez <94026278+roger-in-kiva@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:18:52 -0600 Subject: [PATCH] feat: my kiva analytic labels updated (#5689) --- src/components/MyKiva/BorrowerCarousel.vue | 10 +++++----- src/components/MyKiva/BorrowerStatusCard.vue | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/MyKiva/BorrowerCarousel.vue b/src/components/MyKiva/BorrowerCarousel.vue index 8367912d46..965b9128fb 100644 --- a/src/components/MyKiva/BorrowerCarousel.vue +++ b/src/components/MyKiva/BorrowerCarousel.vue @@ -94,7 +94,7 @@ href="/portfolio/loans" v-kv-track-event="[ 'portfolio', 'click', - 'see-all-borrowers' + 'See all borrowers' ]" >See all borrowers @@ -203,9 +203,9 @@ const link = computed(() => { const btnEventLabel = computed(() => { if (!hasActiveLoans.value) { - return 'see-previously-supported-borrowers'; + return 'see-previously-supported-people'; } - return 'Make-a-loan-no-loans-state'; + return 'Make a loan - no loans state'; }); const filteredLoans = computed(() => { @@ -241,9 +241,9 @@ const onInteractCarousel = interaction => { onMounted(() => { if (!hasActiveLoans.value) { - $kvTrackEvent('portfolio', 'view', 'no-active-borrowers'); + $kvTrackEvent('portfolio', 'view', 'No active borrowers'); } else { - $kvTrackEvent('portfolio', 'view', 'active-borrowers', loans.value.length); + $kvTrackEvent('portfolio', 'view', 'Active borrowers', loans.value.length); } window.addEventListener('resize', throttledResize); diff --git a/src/components/MyKiva/BorrowerStatusCard.vue b/src/components/MyKiva/BorrowerStatusCard.vue index 9ba51df6bd..a44cfc4570 100644 --- a/src/components/MyKiva/BorrowerStatusCard.vue +++ b/src/components/MyKiva/BorrowerStatusCard.vue @@ -37,7 +37,7 @@ class="tw-text-action" :href="`/lend/${loan.id}`" variant="primary" - v-kv-track-event="['portfolio', 'click', 'view-details', borrowerName, loan.id]" + v-kv-track-event="['portfolio', 'click', 'View borrower details', borrowerName, loan.id]" > View details @@ -219,7 +219,7 @@ const weeksToRepay = computed(() => { const toggleWhatIsNext = () => { if (!open.value) { - $kvTrackEvent('portfolio', 'click', 'what-is-next', borrowerName.value, loan.value.id); + $kvTrackEvent('portfolio', 'click', 'What’s next?', borrowerName.value, loan.value.id); } open.value = !open.value; };