feat(onboarding): add tracking calls to event, ecology, and wiki pages
This commit is contained in:
parent
3797ff7925
commit
7c3a10232d
3 changed files with 16 additions and 0 deletions
|
|
@ -135,6 +135,7 @@
|
|||
href="https://wiki.ghostguild.org"
|
||||
target="_blank"
|
||||
class="quick-action"
|
||||
@click="handleWikiClick"
|
||||
>
|
||||
Browse the wiki<span class="arrow">→</span>
|
||||
</a>
|
||||
|
|
@ -218,6 +219,13 @@ const { memberData, checkMemberStatus } = useAuth();
|
|||
const { isActive, statusConfig, isPendingPayment, canPeerSupport } =
|
||||
useMemberStatus();
|
||||
const { completePayment, isProcessingPayment } = useMemberPayment();
|
||||
const { trackGoal, isComplete: onboardingComplete } = useOnboarding();
|
||||
|
||||
const handleWikiClick = () => {
|
||||
if (!onboardingComplete.value) {
|
||||
trackGoal('wikiClicked');
|
||||
}
|
||||
};
|
||||
|
||||
const registeredEvents = ref([]);
|
||||
const loadingEvents = ref(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue