Call the web SDK from the code that confirms the action completed. For example, put this after the onboarding checklist is saved successfully.
SupportDesk('trackEvent', 'onboarding-completed', {
checklist: 'store-setup',
steps_completed: 5
});- Install the widget for the workspace where you want to see the event. Set up the command queue first if your application can call the SDK before the script loads.
- Trigger the action once from the test browser. Open Events in Desk, filter by event name, and check the source and metadata.
- For an anonymous visitor, the event belongs to that workspace and storefront’s visitor identity. Start a chat in the same browser and check the recent events in the contact’s details.
- For a logged-in customer, boot the widget with an event identity token before calling
trackEventso the event resolves to the intended User ID.