chore: track x/tweet card taps in Market Insights cp-7.78.0#30453
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:
Why no E2E tags are needed:
Performance Test Selection: |
|



Description
Tracks when a user taps a tweet card in the Market Insights view by firing the existing
MARKET_INSIGHTS_INTERACTIONevent with thesource_urlset to the tweet's URL.No segment-schema changes were needed.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: adds a single analytics call on tweet-card taps and updates a unit test; behavior change is limited to emitting an event before opening the URL.
Overview
Market Insights now tracks tweet-card taps by firing
MetaMetricsEvents.MARKET_INSIGHTS_INTERACTIONwithinteraction_type: 'source_click'and the tappedsource_urlbefore opening the link.Tests were updated to assert the new analytics event is emitted when a tweet card is pressed.
Reviewed by Cursor Bugbot for commit 938efad. Bugbot is set up for automated code reviews on this repo. Configure here.