Class: MobileWebSearchLogger

MobileWebSearchLogger()

new MobileWebSearchLogger()

Coordinates the logging of MobileWebSchema events. Implements schema defined at https://meta.wikimedia.org/wiki/Schema:MobileWebSearch

Source:

Methods

(static) register(searchOverlay)

Convenience function that wires up an instance of the MobileWebSearchLogger class to the search-* events emitted by the search overlay.

Parameters:
Name Type Description
searchOverlay SearchOverlay
Source:

onSearchResultClick(event)

Handles the 'search-result-click' event.

Parameters:
Name Type Description
event Object

with property {number} event.index The zero-based index of the result in the set of results.

Source:

onSearchResults(event)

Handles the 'search-results' event.

Parameters:
Name Type Description
event Object

with property {Object[]} event.results

Source:

onSearchShow()

Handles the 'search-show' event.

Source:

onSearchStart()

Handles the 'search-start' event.

Source: