Testing your On-site Messaging Campaigns


When you are creating your On-site Messaging campaigns in MoEngage, it is always recommended to test your message display on your website to ensure that it is as per your expectations.

After you design on-site messages on the MoEngage dashboard, the actual display on a device may differ from what is being shown on the dashboard because of different browsers and devices that your users are using.

To help you test the on-site messages easily on your devices, you can leverage the Test Campaign functionality.

Where to find the Test Campaign feature?

When you are creating On-site Messaging campaign, you would be able to see the Test Campaign feature on the step-2 of campaign creation as shown below - 


How does it work?

The Test Campaign functionality allows you to quickly experience the look and feel of your on-site messages on your website.

To receive an on-site message on your device before activating the campaign for your live users, navigate to the test campaign section during campaign creation and paste the URL where you want to see the campaign - 


Please ensure that the MoEngage SDK is integrated on the target URL for the test campaign to be shown.

Once you click on the test campaign, a new tab will open in the same browser and your on-site message will be shown there. This test message will only be shown on the same browser on which you click the Test Campaign button of the MoEngage dashboard and will not be visible to your other website visitors.

Please note that Test Campaigns are active for 30 seconds and during this time, you will keep seeing this campaign on the same browser even after refreshing the page. This will not happen for your live campaigns.

Test Campaign for mobile web

To be able to Test Campaigns for mobile web, you can use any one of the below options - 

Option 1: Simulate using Chrome Device Mode

  1. Open your website on your chrome browser and open developer options as shown below -

  2. Switch to mobile web view for your website as shown below -

Please note that this approach will only show you an approximation and the results may not be accurate in all cases. You can read more on Chrome Device Mode here.


Option 2: Testing on a dummy URL with a live campaign

  1. Start creating an On-site Messaging campaign as per the steps mentioned here. On Step-1, make sure to select a specific page with a dummy source parameter. It could be something which only you would know to access, like ?source=moe_onsite_test as shown below -

    This will ensure that the campaign you create is limited to the dummy webpage which no one will access and no any of your live users.

  2. Go ahead and publish this campaign and access the dummy URL from your mobile browser to get a look and feel of your in-app message on your mobile website. Edit the campaign as required to change the display until it is as per your expectations.


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