chore: track explore conversions in predict cp-7.80.0#30722
Conversation
|
High severityH1 —
|
8c59bfc
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokePredictions: Directly impacted — PredictFeed component changes, navigation from Trending tabs to predictions list. The "View All" flow from Trending tabs now uses a new function. Need to verify the navigation still works correctly. SmokeWalletPlatform: Trending tab components (CryptoTab, MacroTab, NowTab, RwasTab, SportsTab) are modified. Per tag description, Trending is the connecting point for all subsections and changes to Predictions views embedded in Trending affect this tag. SmokeConfirmations: Per SmokePredictions tag description, opening/closing positions are on-chain transactions — should be included when selecting SmokePredictions. The changes are low-risk (analytics/entry point tracking), but the navigation path changes warrant validation of the Predictions and Trending flows. Performance Test Selection: |



Description
Track explore conversions in predict
Changelog
CHANGELOG entry: track explore conversions in predict
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3271
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
Analytics attribution and navigation params only; no changes to trading, auth, or payment logic.
Overview
This PR wires Predict analytics
entryPointthrough navigation and the feed so Explore-driven journeys can be measured as conversions.PredictFeednow accepts an optionalentryPointprop (overriding route params), uses that value for session attribution and performance traces, and passes a resolvedlistEntryPointinto market cards—defaulting topredict_feedwhen nothing is set. Search results still use the search entry point.Explore → Predict list:
navigateToPredictionsListalways sendsentryPointin route params (default explore); a newnavigateToExplorePredictionsListhelper is used from Explore tabs (Now, Crypto, Sports, Macro, RWAs). Homepage embedded feed explicitly passespredict_feed.Tests assert explore entry points on buy preview order events, market details, feed market cards, and homepage discovery tabs.
Reviewed by Cursor Bugbot for commit 8c59bfc. Bugbot is set up for automated code reviews on this repo. Configure here.