Submit search
submit: async (query, config, options) => {
if (
query.length >= config.minQueryLength
) {
const response = await search(
{
query,
},
{
redirect: true,
track: config.nostoAnalytics ? "serp" : undefined,
...options
}
)
// Do something with response. For example, update Search Engine Results Page products state.
}
},📊 Nosto Analytics (enabled by default)
📈 Google Analytics (enabled by default)
Last updated
Was this helpful?