To listen to a WalkMe event, include a callback function in the the windows scope. WalkMe will try to call the function every time an event is fired. The function needs to be declared before the event happens and can be declared even before WalkMe is loaded into the page. There are three different functions that can be written in order to listen to the events:
walkme_ready: This will be called when WalkMe is fully loaded on the page.
walkme_player_event: This will have all the events associated with the Menu.
walkme_event: Events related to WalkMe items and internal WalkMe functionality.