Best tools/libraries for web analytics [closed]

I’m creating a react & node the app is similar to the link in bio apps like https://linktr.ee

So a user creates a link example: myapp.com/userslink, now I need analytics for this page to show on the user’s dashboard, analytics like page views, location, what was clicked, last 7 days, last 30 days, etc.

What’s the best way to achieve this?