Wednesday, 1 July 2020

What's the standard way to make analytics dashboard in a MERN/MEAN/MEVN Stack Application?

Without using google analytics. I want to make analytics for my website to know number of visitors, online users, visitors for each page and so.Analytics DashboardI thought of making a collection in the database named stats and an API route /statsto send POST /stats request whenever a user visits a page for example, then increment the document of visitors for that page in the database.However, this will cause problems like it'll send a request on every component re-render!Also, I think it'll slow the website to send a request on every action. As I'm planning to add more complex stats and monitor all the details about how the user is using my website.So, is there a standard way to do this to avoid these problems?

Submitted July 01, 2020 at 01:05PM by AhmedHossam01

No comments:

Post a Comment