feat(merklRewards): enhance analytics tracking for claim and tooltip interactions#25761
feat(merklRewards): enhance analytics tracking for claim and tooltip interactions#25761PatrykLucka merged 1 commit intomainfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These are non-functional changes that:
No E2E tests exist for the Earn/MerklRewards feature (confirmed via codebase search). The changes don't affect any flows that existing E2E tests would cover. Running E2E tests would not provide additional validation for these analytics-only changes. Performance Test Selection: |
|



Description
Add analytics tracking for two Segment events in the mUSD claim bonus flow:
mUSD Claim Bonus Button Clicked (updated) — now also fires from the
ClaimOnLineaBottomSheetwhen the user taps "Continue" (action_type: claim_bonus) or dismisses via the close button (action_type: dismiss). The existing event from the asset overview "Claim" CTA is unchanged. Network/asset context is forwarded from the parent component via route params.Tooltip Opened (new trigger) — fires when the user taps the info (i) icon next to "Claimable bonus" in
PendingMerklRewards, withtooltip_name: "Claim Bonus Info",location: "asset_overview", andexperience: "MUSD_BONUS".Both events use the non-deprecated
useAnalyticshook andEVENT_NAMEconstants.Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Primarily adds analytics event tracking and constants, with minimal impact on user flow beyond extra side-effect calls; risk is limited to incorrect/missing analytics properties.
Overview
Adds additional analytics instrumentation to the mUSD Merkl rewards flow.
The claim-on-Linea bottom sheet now fires
EVENT_NAME.MUSD_CLAIM_BONUS_BUTTON_CLICKEDfor both Continue (action_type: claim_bonus) and Close (action_type: dismiss), andClaimMerklRewardsforwards optional network/asset context via newanalyticsContextroute params (with a newCLAIM_BONUS_BOTTOM_SHEETlocation constant).PendingMerklRewardsnow tracksEVENT_NAME.TOOLTIP_OPENEDwhen the “Claimable bonus” info icon is tapped, including tooltip metadata and experience, with tests updated to assert these events.Written by Cursor Bugbot for commit dbce143. This will update automatically on new commits. Configure here.