MoEngage supports sending web pushes to users who opt-in for web push on web pages built using the AMP (Accelerated Mobile Pages) framework. Since AMP is dedicated to optimizing the web experience for the mobile user like faster page loading, there are a few restrictions the framework enforces, like not running third-party scripts on AMP pages. So, the integration for AMP pages is completely different from the regular web push integration with MoEngage SDK. You can see the detailed step for AMP Web Push integration here. Please note that this is available only for HTTPS websites.
AMP is supported on all the major browsers on Android and iOS (full list here), but a Web Push subscription on AMP pages is only possible on Android devices.
The option to set up an AMP integration is enabled by default for your MoEngage account. You can choose to add AMP integration, in addition, to an already existing Web Push integration, or you can also have the stand-alone only AMP integration as well.
This integration currently enables
- Ability to opt-in for Web Push on AMP pages
- Ability to customize the Web Push opt-in button display
- The ability for end-users to opt-out from web push after they opt-in
- Ability to deliver a Web Push to subscribed users. The Web push can be personalized and/or can include rich features like display images, action buttons, etc.
- Ability to track Web Push impressions and user actions (button click, notification click).
The integration currently cannot track system events or any custom events.
How to target AMP Web Push Subscribers
Once you have completed the AMP for Web Push Integration, the visitors of your published AMP pages can opt-in for web push by clicking on the Subscription widget(button).
How to identify Web Push Subscriptions from AMP pages
When subscribed successfully, Subscribed to Web Push event for the user is triggered automatically. To identify no. of users who have subscribed, on the segmentation page, filter users who have executed the event Subscribed to web push with Is AMP attribute as TRUE.
Sending Web push to subscribers from AMP Pages
While creating the Push campaign, you should select the Web platform as one of the target platforms. Since integration does not include tracking user events, targeting subscribers from AMP pages based on behavioral attributes is impossible. For targeting the users who subscribe for Web Push from AMP pages, either use All Users as the target audience or create a custom segment of identified users as defined in the previous section.