feat(tracking): implement incentive task tracking events and page view tracking

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-01-26 23:38:15 -08:00
parent c36d0a8131
commit 55d8594937
2 changed files with 45 additions and 2 deletions

View file

@ -421,6 +421,31 @@ export function trackPeriodicIndexingStarted(
});
}
// ============================================
// INCENTIVE TASKS EVENTS
// ============================================
export function trackIncentivePageViewed() {
posthog.capture("incentive_page_viewed");
}
export function trackIncentiveTaskCompleted(taskType: string, pagesRewarded: number) {
posthog.capture("incentive_task_completed", {
task_type: taskType,
pages_rewarded: pagesRewarded,
});
}
export function trackIncentiveTaskClicked(taskType: string) {
posthog.capture("incentive_task_clicked", {
task_type: taskType,
});
}
export function trackIncentiveContactOpened() {
posthog.capture("incentive_contact_opened");
}
// ============================================
// USER IDENTIFICATION
// ============================================