I'm embedding Zendesk web widget in a react component to be used in different parts of the same application. I need to replace the event handler function in order to do different things based on the current section of the application.
https://developer.zendesk.com/api-reference/widget/core/#on-userevent
To confirm you're looking to change the userEvent that will fire the function depending on what part of the app the user is in?