page unload

The moment a page is being closed or navigated away from, when ordinary requests may be cancelled.

In more detail

On mobile, pages are often discarded without any unload event firing at all. Send final analytics on visibilitychange or pagehide rather than unload, which is unreliable, using fetch keepalive or sendBeacon.

Related terms

Taught in

References