Skip to content

Commit

Permalink
feat: add tracking to teams page buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Jan 10, 2024
1 parent 4550a3b commit 7880334
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Teams/TeamGoal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@
{{ participationTotalCount }} members participating
</span>
</div>
<kv-button :to="`/team/challenge/${teamPublicId}`" variant="caution">
<kv-button
:v-kv-track-event="[
'teams',
'click',
'View',
teamName
]"
:to="`/team/challenge/${teamPublicId}`" variant="caution"
>
View
</kv-button>
</div>
Expand Down Expand Up @@ -103,6 +111,7 @@ export default {
teamNoImage,
teamImageUrl: '',
teamPublicId: '',
teamName: ''
};
},
computed: {
Expand Down Expand Up @@ -133,6 +142,7 @@ export default {
this.loanBecause = data.community?.team?.loanBecause ?? '';
this.teamImageUrl = data.community?.team?.image?.url ?? null;
this.teamPublicId = data.community?.team?.teamPublicId ?? '';
this.teamName = data.community?.team?.name ?? '';
}).finally(() => {
this.isLoading = false;
});
Expand Down
5 changes: 5 additions & 0 deletions src/components/Teams/TeamGoalsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<h2>{{ activeGoals.length }} teams with active challenges!</h2>
<p>
Don’t see your team on this list? <a
:v-kv-track-event="[
'teams',
'click',
'team waitlist'
]"
href="lp/team-challenge-waitlist"
>Let us know if you’re interested!</a>
</p>
Expand Down

0 comments on commit 7880334

Please sign in to comment.