Skip to content

feat: track widget dashboard button clicks (AI Credits, GoodReserve, Superfluid Rewards) - #67

Open
goodbounties-nanoclaw-agent[bot] wants to merge 2 commits into
mainfrom
feat/widget-dashboard-tab-selected-events
Open

feat: track widget dashboard button clicks (AI Credits, GoodReserve, Superfluid Rewards)#67
goodbounties-nanoclaw-agent[bot] wants to merge 2 commits into
mainfrom
feat/widget-dashboard-tab-selected-events

Conversation

@goodbounties-nanoclaw-agent

Copy link
Copy Markdown

Closes #66

Adds Amplitude click-tracking for the widget dashboard buttons on the home screen, generalized for any widget - not just AI Credits.

Changes

  • src/analytics/types.ts: add AICreditsTabSelected, GoodReserveTabSelected, SuperfluidCampaignTabSelected to AnalyticsEventTypes and the AnalyticsEvent union (no extra properties).
  • src/sections/Home/components/WalletSection.tsx: add a static widgetId -> event type map (mirrors the existing eventType map in Tabs.tsx) and fire captureEvent from the dashboard action Link's onClick when the clicked action is one of the three widget buttons. Core dashboard actions (Send/Receive/Swap/GoodDollar/Predictions/WalletConnect) are unaffected - they only track completion, not the click.

Amplitude project: NewGoodWallet

Verification

  • tsc --noEmit clean (pre-existing, unrelated src/ui/assets/index.ts SVG module errors confirmed present on main too).
  • biome check clean on both changed files.

…-selected analytics events

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

On-Behalf-Of: gdpatchagent[onecli] (yaskkeryodtdijpv)
…edits, GoodReserve, Superfluid Rewards)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

On-Behalf-Of: gdpatchagent[onecli] (yaskkeryodtdijpv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PATCH] Track widget dashboard button clicks: AI Credits, GoodReserve, Superfluid Rewards

0 participants