In my app, I use an asynchronous AJAX call for each page that loads in order to track a user's flow through the application. Usually, the server request to record the visit happens quickly. However, there are instances where I seem to be missing some page visits, and I suspect it may be because users are leaving the page before the request is finished.
I understand that asynchronous AJAX calls are non-blocking. But what I'm unsure about is what happens to the AJAX request if a user navigates away from the page before it is completed. Can anyone provide insight into this situation?
For reference, the service used is a C# service.