Real-Time Web Analytics with NodeJs, Socket.io, and VueJs a real-time web analytics dashboard, similar to what you would find on Google Analytics.
HTML
Real-Time Web Analytics with NodeJs, Socket.io, and VueJs
a real-time web analytics dashboard, similar to what you would find on Google Analytics.
A user loads our page
A new socket connection is created via the client-side JavaScript
The client-side JavaScript sends the NodeJs + Socket.io server information about the user (which page they are on and which website referred them to ours) over that socket connection
The server adds the connection to a list of active ones and computes the total counts for the pages and referring sites
The server then sends the computed statistics to the dashboard over a socket connection to display the information