This demo shows how to detect whether a beacon is sent using service workers
Send beacon