Tracking link clicks in NextJS app

We have a front end app that’s built with NextJS. While navigating the site, the page doesn’t reload by design.

We want to track link clicks, so that we can get a sense of how users navigate our site from page to page.

Is there a recommended approach to achieve this? Thanks!

Are the links just <a> tags? If so the link click tracking plugin should be able to capture this for you.