Display Debug Id

Once the SDK is initialized, MagicPixel SDK exposes a method to print or display the debug id that can be used to validate analytics on the MagicPixel web portal.

On the settings page of your application, invoke the below method to get the debugId and either show an alert message with the debugId or display it in a manner that is consistent with the user experience of the application.

Copy

const mpDebugId = MagicPixel.getDebugId();

// Example
alert('MP Debug Id: ' + mpDebugId);

PreviousConfiguration NextTracking Events