I've used the JavaScript quickstart document to setup Segment using the snippet.
How do I setup keepalive in the same to make sure Segment requests complete before a redirection happens?
The docs just mention a link to this comment which doesn't clearly explain how keepalive is supposed to be used when Segment is installed via snippet.