Events and custom methods for Embedded widgets
Registering event handlers and methods for Embedded widgets
The embedded widget support some events, just as the advanced and search suggestion widgets.
After search notification
For third-party analytics integration we added this event to receive search notifications.
afterSearchDebounced: function (searchText)
/* insert your code here */
For a complete example please take a look at Search Analytics.