SDK logs many useful information in the debug mode. It gets automatically activated when loading the SDK in Test environment.
However, to see the logs in the Live environment, enter this command in the Console section of the Browser devtools:
Moengage.setDebugLevel(2)
You can see many logs which will help to debug any wrong integration as well as it gives many useful information in nice colourful format:
Multiple Integrations
SDK might behave inappropriately if you have added it more than once in your website. In that case, you will see the error message in the browser console by enabling the debug mode as MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!
info |
Note This error message will show up only if you have used the latest SDK integration code which is mentioned in the documentation. |