The Experience JS SDK provides functions to customize and extend
experiences hosted on the Wyng platform. This SDK publishes functions
accessible using the global
wyng object. Functions can set values,
hide or display content, dispatch events, or register for callbacks.
The SDK is located at the
window level and scoped by experience ID.
The methods can be accessed through
window.wyng['YOUR EXPERIENCE ID'].
_WYNG_ID_ tag, which will automatically be replaced with the experience ID.
A good starting point is something like this:
const sdk = window.wyng['_WYNG_ID_'];
|argument to control if debug mode should be turned on (|
While developing experiences, or even when troubleshooting issues on live experiences it can be useful to have some more information that is normally not visible to the user. Debug mode will do this.
To activate debug mode for an experience run the following code in the console (where
63121234124134 is the experience ID):
To turn off Debug mode after activating it run: