The web-push messages, I see that the working service can be triggered by several events, such as push, notificationclick. To track your CTR, an event is notificationclickvery important. In the same way, there is an event such as "rejectnotification", which is fired when the user rejects the notification. In this way, the service worker can track users who reject notifications.
source
share