Events and custom methods for Embedded widgets

Registering event handlers and methods for Embedded widgets

Event notifications

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.

Usage

window._sn.widgets.push({ 
engineid: '-insert-your-engine-id',
afterSearchDebounced: function (searchText)
{
/* insert your code here */
}
});


For a complete example please take a look at how to integrate with Google Analytics.


Options