chore: track reward task click and completion events#913
Merged
Conversation
Add posthog tracking for the rewards page so PM can measure how often each reward task is clicked vs actually completed: - workspace_task_click fires when the user clicks a non-daily reward task (mobile_share excluded — its click only opens the QR modal, the meaningful signal is the screenshot upload tracked via done). - workspace_task_done fires inside the confirm modal's success path, only on a fresh claim (not alreadyClaimed), and includes mobile_share. Type values mirror the PM-defined names: star_us, X, Reddit, linkedin, Facebook, Whatsapp, mobile. daily_checkin is intentionally untracked per spec. Mapping is held in two Partial<Record<RewardTaskId, string>> tables so adding a new task id doesn't silently start emitting an unknown type.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
mrcfps
approved these changes
Apr 8, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add two PostHog events to the rewards page so PM can measure click frequency and click→completion conversion for each social/open-source reward task:
workspace_task_click— fires when a user clicks a reward taskworkspace_task_done— fires when a user successfully claims a task in the confirm modalWhy
PM needs the click → completion funnel per task to decide which reward tasks to expand or retire.
Event `type` values
PM-defined naming:
Implementation notes
Affected areas
Checklist