Website Push For AMP

You can send Web Push notifications to users who opt-in for web push notifications on web pages built using the AMP (Accelerated Mobile Pages) framework with MoEngage. Since AMP is dedicated to optimizing the web experience for the mobile user, like faster page loading, there are a few framework-enforced restrictions, such as not running third-party scripts on AMP pages.

Moreover, the integration for AMP pages is different from the regular Web Push integration with MoEngage SDK. For more information, refer to AMP Web Push Integration. Please note that this is available only for HTTPS websites.

Integration Essentials

AMP is supported on all the major browsers on Android and iOS (refer to the complete list here). However, users can only subscribe to Web Push notifications for AMP pages on Android devices. 

Setting up an AMP integration is enabled by default on your MoEngage account. You can choose to add the AMP integration to an already existing Web Push integration or have the stand-alone AMP integration.

This integration enables the following:

  1. Ability to opt-in for Web Push on AMP pages
  2. Ability to customize the Web Push opt-in button display
  3. Ability for end-users to opt-out from Web Push after they opt-in
  4. Ability to deliver a Web Push to subscribed users. The Web Push can be personalized and can include rich features like display images, action buttons, etc.
    You can personalize your Web Push content using auxiliary data by selecting the auxiliary data attributes in the personalization editor. For more information, refer to Personalize Campaign Content Using Auxiliary Data.
  5. Ability to track Web Push impressions and user actions (button click, notification click).
  6. Ability to track system events and all 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).

 

Identifying Web Push Subscriptions from AMP pages

When subscribed successfully, the Subscribed to Web Push event for the user is triggered automatically. You can view these users by using the User behavior segmentation filter.

Filter users by using the Has Executed event and setting it to Subscribed to Web Push and setting the frequency and time. 


 

To identify the number of users who have subscribed on AMP pages, filter users who have executed the event Subscribed to Web Push with isAMP attribute as True

info

Note

If a user is already subscribed on non-AMP pages and then navigates to an AMP page, they will be automatically shown as Subscribed to AMP

 

Sending Web Push to subscribers from AMP Pages

To send a Web Push notification to your users:

  1. Create a push campaign and select Web as one of the target platforms. 
  2. You can target users who have subscribed to Web Push from APM pages by: 
    • Using the All Users segment as the target audience.
    • Creating a custom segment of identified users as shown here. 
  3. Create the message you want to send and schedule your campaign accordingly. To know more about Web Push campaigns, go through this page

 

Was this article helpful?
1 out of 1 found this helpful

How can we improve this article?