I am writing some js code to send user-page interaction data to analytics server. I am in this context:
And I need to achieve:
Currently what I observed from making a normal AJAX request is when I navigate to another page, the request is canceled from browser side, which indicated data loss.
Any comment/answer is welcome.