Skip to content

Commit

Permalink
feat: my kiva analytic labels updated (#5689)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva authored Nov 18, 2024
1 parent a39cdd8 commit 647573c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/components/MyKiva/BorrowerCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
href="/portfolio/loans" v-kv-track-event="[
'portfolio',
'click',
'see-all-borrowers'
'See all borrowers'
]"
>See all borrowers</a>
</div>
Expand Down Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/components/MyKiva/BorrowerStatusCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
</a>
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 647573c

Please sign in to comment.