mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
feat(tracking): implement incentive task tracking events and page view tracking
This commit is contained in:
parent
c36d0a8131
commit
55d8594937
2 changed files with 45 additions and 2 deletions
|
|
@ -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
|
||||
// ============================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue