I was just reading how to check users leave a page earlier on when suddenly I thought of performing AJAX when user leaves the page to send analytical data back to the server.
Is performing AJAX on the onunload
event a good or bad practice/implementation?