An on-site message is a type of web message where the notification is displayed within the website. It is not sent at a specific time but it is shown to users when users are using the app. Examples include popups, yes/no prompts, banners, and more. In order to show on-site messages, there is no permit requirement.
Important Notes
- Created onsite messages will be stored in D·engage backend and will be served to web SDKs.
- On-site messages on the D·engage platform is triggered by page navigation.
- For displaying onsite massages you just have to add
setNavigation
function to every page navigation.- If the website is a Single Page Application, please send
setNavigation
function on every page navigation.
// Page navigation without extra information
dengage('setNavigation');
How to enable onsite messaging
Settings > applications > Web Push App > Definition > "On-Site Messaging" enable click on
Minimum Interval For Fetching Messages: SDK will fetch messages for that user periodically and stores those messages in local storage. This determines the minimum required elapsed time before fetching the new messages again. (min 15 minutes)
Minimum Duration Between Displaying Messages: If there are multiple messages in the local storage waiting. Most of the time you don't want them to be shown every page navigation. This may disturb the user. So this determines the minimum required elapsed time before showing the next message from the queue.
Trigger On SDK Load: This will trigger setNavigation function automatically when the SDK loaded. If your website is not a single page application then you can use this option. By using this option you don't have to do any code changes to your website.