Best tools/libraries for web analytics [closed]

I’m creating a react & node the app is similar to the link in bio apps like

So a user creates a link example:, 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?