Captures an analytic event with a custom target and query payload.
The event name or target can be one of: $select-location, $select-category, $query-suggest, $query-search
$select-location
$select-category
$query-suggest
$query-search
The payload associated with the event.
A promise that resolves to the server response or void.
Updates the analytics state with the provided parameters.
The state parameters to update.
Captures an analytic event with a custom target and query payload.