Identify/Segment your Web Push subscribers

In this article, we describe how you can discover and segment-

  • Total number of users granting/blocking web push permission
  • Number of web push subscription events occurring in a specified time
  • Number of users modifying Web Push Permissions
  • Number of users migrated to MoEngage system (in case you were using any other web push service before)

Do ensure you have already integrated web push as mentioned here.

Web Push permission states

Web Push subscription puts users in one of the three states - granted, denied and prompt. The MoEngage identifier for this is "Web Push Preference"

  • granted - If the user has clicked "Allow" on the push notification opt-in. You can find this number by running the below segmentation query -

  • denied - If the user has clicked "Block" on the push notification opt-in. You can find this number by running the below segmentation query -

  • prompt - This is the default state and if the user has closed the push notification opt-in. You can find this count by running the below segmentation query

Web Push subscription events

You can also find out how many users have subscribed to Web Push over a specified time (allowed time filters - in the last X days, in between 2 dates, before a date, after a date and on a date.

MoEngage identifier for this event is "Web User Subscribed". You can leave the attribute field empty.

Users Modifying Web Push Permission

We also track users who modify their push permissions. This could be a case where a user who was earlier subscribed to Push notifications has removed the permission or a user who had earlier blocked the permission has given the permission manually now.

MoEngage identifier for this case is "Web Push Preference Check". You can run the following segmentation query to get the count of users removing permissions.

To get the users granting push permission, you can run the following query:

Web Push migrated Users

This is applicable only if your website was using any other web push service before. Once you integrate with MoEngage, any existing subscribed user's push token would automatically be migrated to MoEngage system. 

MoEngage identifier for this case is "Web Migrated User". You can run the following segmentation query to get this count.

Note: This attribute will also be true if a user cleared browser/site cache without removing the permission. In this case, there is no way to determine if the user had granted permission on another service provider or MoEngage since the cache is cleared.

In case you have any queries, you can always raise a support request from "Need Help?" drop-down. 

 

Have more questions? Submit a request

Comments