You are handling that with .NET Core or .NET framework? There are differences in how you might handle the requests and responses in both these frameworks. Since you already have tried something for .NET Core,
Quote:
which routes he visit
This part of your application can be handled within the ASP.NET MVC, check out this thread for more on that,
ASP.NET MVC 4 intercept all incoming requests - Stack Overflow[
^]
Quote:
button click,
Now this part has to be handled from outside, and installation of plugins such as Application Insights and Google Analytics and they can handle the front-end event logging.
Google Analytics[
^]
What is Azure Application Insights? | Microsoft Docs[
^]
My personal recommendation is Application Insights, as it provides an amazing set of dashboard and reporting tools too.