Skip to content

Fix direct sale tracking leadEventData#3381

Merged
steven-tey merged 1 commit intomainfrom
fix-direct-track-sale
Jan 25, 2026
Merged

Fix direct sale tracking leadEventData#3381
steven-tey merged 1 commit intomainfrom
fix-direct-track-sale

Conversation

@steven-tey
Copy link
Collaborator

@steven-tey steven-tey commented Jan 25, 2026

Summary by CodeRabbit

Bug Fixes

  • Improved sale conversion tracking to capture more complete data from click events, enhancing conversion attribution accuracy.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link
Contributor

vercel bot commented Jan 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dub Ready Ready Preview Jan 25, 2026 6:43am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 25, 2026

📝 Walkthrough

Walkthrough

The pull request modifies trackSale to spread all fields from clickData into leadEventData instead of only setting the link_id field. This changes how click and lead event data are merged when a lead event already exists, potentially adding or overriding multiple fields in the resulting leadEventData object.

Changes

Cohort / File(s) Summary
Click Data Merge
apps/web/lib/api/conversions/track-sale.ts
Changed leadEventData composition to merge all clickData fields via spread operator instead of only assigning clickData.link_id

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • devkiran

Poem

🐰 A spread of click data flows so free,
Into the lead event, harmoniously!
No more just link_id's lonely call,
All fields now merge—the grandest haul! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically identifies the main change: fixing direct sale tracking's leadEventData handling, which aligns with the code change merging clickData fields into leadEventData.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@steven-tey steven-tey merged commit 4af8bcb into main Jan 25, 2026
8 of 9 checks passed
@steven-tey steven-tey deleted the fix-direct-track-sale branch January 25, 2026 06:51
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.

1 participant