Laravel Link Referral Analytics

Customer: AI | Published: 17.11.2025
Бюджет: 300 $

My Laravel app already handles purchases smoothly; what’s missing is solid referral insight. I’d like you to wire up link-based referral tracking end-to-end so I can see how many of those referred links actually turn into paid orders and at what conversion rate. Here’s the flow I picture: when a referral link is generated, we store a unique token, log the visitor’s journey, and on successful checkout mark the purchase as attributed to that token. From there I need a quick way—an Eloquent query, dashboard card or simple API endpoint—to pull the overall conversion rate for any given link or referrer. Key points • Framework: existing Laravel 10 project with Sanctum and Nova; your code should slot in cleanly following current conventions. • Metrics: focus is strictly on purchase conversions; click counts or source breakdowns aren’t required right now, but please keep the structure flexible enough to add them later. • Deliverables: database migration(s), tracking middleware / service class, model relationships, and a concise README so my team can reproduce and test the behaviour locally. I’ll validate the work by generating a test link, completing a dummy purchase, and confirming the conversion rate reflects that single sale. Let me know which approach you prefer—custom tables, package integration, or a mix—and your estimated timeline.