Skip to main content

Overview

You should test your On-site Messaging (OSM) campaigns during creation. This ensures that the messages appear as expected on different devices and browsers. The message may display differently on your website than in the dashboard preview. Use the Test Campaign feature to preview on-site messages on your devices before activating them.

Access the Test Campaign Feature

The Test Campaign feature is on the second step of campaign creation. See the following image: Screenshot showing the Test Campaign feature in the MoEngage dashboard.

Use the Test Campaign Feature

The Test Campaign feature lets you see how your on-site messages will look on your website. To send a test message to your device before you activate the campaign for live users, follow these steps:
  1. On the Test Campaign section during campaign creation, paste the URL where you want to view the campaign. Screenshot showing the URL input field for a test campaign.
  2. Make sure the MoEngage SDK is integrated on the target URL for the test campaign to display.
  3. Click the Test Campaign button. A new tab opens in the same browser, and the on-site message displays there. This test message is only visible in the browser where you clicked the button in the MoEngage dashboard; it is not visible to your other website visitors.
  4. Test campaigns remain active for 30 seconds. During this time, the campaign displays in the same browser even after you refresh the page. This behavior differs from live campaigns.
The Test Campaign feature does not work on Safari (iPhone and Mac). Test sends don’t render or redirect in Safari because of the browser’s stricter security policies for newly opened windows. This is a browser limitation, so there’s no setup that enables test sends in Safari. Live campaigns redirect normally in Safari. To validate how an OSM campaign behaves in Safari, publish a live campaign targeted at yourself using the dummy URL method, then open the campaign in Safari.

Test on Mobile Web Devices

You can use one of these options to test campaigns on mobile web devices:
To simulate with Chrome’s device mode, follow these steps:
  1. In your Chrome browser, open your website and then open Developer Options. Screenshot showing how to open developer options in Chrome.
  2. Switch your website to mobile web view. Screenshot showing how to switch to mobile view in Chrome developer tools.
Note: This method provides an approximation. Results may not always be precise. For more information, see Chrome Device Mode.

Next Steps