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
OPTIONALOptional 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
});
Troubleshooting
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.
Solution:
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 (event.detail.name === 'MOE_ONSITE_MESSAGE_SHOWN' && event.detail.data && event.detail.data.length) {
const campaign = event.detail.data.find(item => 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:
- Check if the Trigger Action condition is matching or not
- If you have Selected Pages for onsite messaging, then check whether the URL is matching or not
- Check the segmentation of the Audience is matching or not.
- 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 support@moengage.com.