Configure and Integrate On-site Messaging

On-site Messaging Campaigns allow you to show personalized pop-ups and non-intrusive banners on your website.

Web SDK integration for On-site Messaging will automatically start working on all the pages where the web SDK is integrated. 

For more information, refer to Web SDK Integration.

Disabling On-site Messaging



Optional step for On-Site messaging

If you want to disable On-site Messaging on a few pages or all pages of your website, you need to add disable_onsite: true on the pages wherever MoEngage Web SDK is active as described:

Moengage = moe({
  app_id: "XXXXXXXXXXXX",
  debug_logs: 0,
  disable_onsite: true


Sticky Banner type campaign is overlapping the website header.

Sticky banner type campaign has fixed position with top: 0. So if your website also has any fixed position element with top: 0, then it will overlap. This is the tech limitation and should be handled by your end.


You can update the position of you fixed position element as soon as the OSM template is displayed from Moengage. Use this:

  window.addEventListener('MOE_AUTOMATED_EVENTS', function (event) {
    if ( === 'MOE_ONSITE_MESSAGE_SHOWN' && && {
      const campaign = => item.key === "campaign_id");
      if (campaign && campaign.value === < your campaign ID > ) {
        //perform your action here

On-site messaging campaign is not displayed.

Verify the following:

  1. Check if the Trigger Action condition is matching or not
  2. If you have Selected Pages for onsite messaging, then check whether the URL is matching or not
  3. Check the segmentation of the Audience is matching or not.
  4. Check the platform (Web or Mobile Web) is appropriately selected.

Reach out to us directly from your MoEngage Dashbaord -> Need Help? -> Contact Support or send an email to

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