Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: my kiva analytics labels updated #5689

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading