AmoabaKelvin / ishortn.ink

URL Shortening, Link Analytics & QR Code Platform
https://ishortn.ink
MIT License
66 stars 9 forks source link

feat: tracking unique clicks #151

Closed AmoabaKelvin closed 2 months ago

AmoabaKelvin commented 2 months ago

Overview This PR introduces a new feature to track and display unique clicks for our link shortening service. It enhances our analytics capabilities by distinguishing between total clicks and unique clicks, providing more valuable insights to our users. Key Changes

Updated database schema to include a new UniqueLinkVisit table Modified retrieveOriginalUrl function to track both total and unique visits Updated getLinkVisits function to return both total and unique visit data Refactored aggregateVisits function to properly handle and count unique clicks Updated LinkAnalyticsPage to display both total and unique click data

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ishortn-ink ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 1:35pm
what-the-diff[bot] commented 2 months ago

PR Summary

Please refer to the respective file changes for specific implementation details.