SearchAnalyticsActions (Deprecated)
SearchAnalyticsActions (Deprecated)
|
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
The search analytics action creators.
See Dispatch Actions.
Loader Function
loadSearchAnalyticsActions
Returns possible search analytics action creators.
Parameters
-
engine:
SearchEngineThe headless engine.
Returns SearchAnalyticsActionCreators: The search analytics action creators.
SearchAnalyticsActionCreators
logCategoryFacetBreadcrumb
The event to log when a category facet breadcrumb is deselected.
Parameters
-
payload:
LogCategoryFacetBreadcrumbActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logClearBreadcrumbs
The event to log when clearing breadcrumbs.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logCloseSmartSnippetFeedbackModal
The event to log when a user no longer wishes to provide feedback about why the smart snippet answer wasn’t relevant.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logCollapseSmartSnippet
The event to log when a smart snippet is collapsed.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logCollapseSmartSnippetSuggestion
The event to log when a smart snippet suggestion, or related question, is collapsed.
Parameters
-
payload:
QuestionAnsweringDocumentIdActionCreatorPayload | QuestionAnsweringUniqueIdentifierActionCreatorPayloadThe action creation payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logDateFacetBreadcrumb
The event to log when a date facet breadcrumb is deselected.
Parameters
-
payload:
LogDateFacetBreadcrumbActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logDidYouMeanClick
The event to log when a user triggers a search by clicking a did-you-mean suggestion.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logDislikeSmartSnippet
The event to log when a user provides negative feedback for a given smart snippet answer.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logExpandSmartSnippet
The event to log when a smart snippet is expanded.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logExpandSmartSnippetSuggestion
The event to log when a query suggestion is selected.
Parameters
-
payload:
QuestionAnsweringDocumentIdActionCreatorPayload | QuestionAnsweringUniqueIdentifierActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetBreadcrumb
The event to log when a facet breadcrumb is deselected.
Parameters
-
payload:
LogFacetBreadcrumbActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetClearAll
The event to log when all selected values in a facet are deselected.
Parameters
-
facetId:
stringThe facet id.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetDeselect
The event to log when a selected facet value is deselected.
Parameters
-
payload:
LogFacetDeselectActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetSelect
The event to log when an idle facet value is selected.
Parameters
-
payload:
LogFacetSelectActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetShowLess
The event to log when shrinking a facet to show fewer values.
Parameters
-
facetId:
stringThe facet id.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetShowMore
The event to log when expanding a facet to show more values.
Parameters
-
facetId:
stringThe facet id.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logFacetUpdateSort
The event to log when the facet sort criterion is changed.
Parameters
-
payload:
LogFacetUpdateSortActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logInterfaceChange
The event to log when a tab is selected.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logInterfaceLoad
The event to log when a search interface loads for the first time.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logLikeSmartSnippet
The event to log when a user provides positive feedback for a given smart snippet answer.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logNavigateBackward
The event to log when going to the previous state of the search interface.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logNavigateForward
The event to log when going to the next state of the search interface.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logNoResultsBack
The event to log when no results is shown and the end users cancel last action.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logNotifyTrigger
The event to log when a user action triggers a notification set in the effective query pipeline on the search page.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkInsightAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logNumericFacetBreadcrumb
The event to log when a numeric facet breadcrumb is deselected.
Parameters
-
payload:
LogNumericFacetBreadcrumbActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logOmniboxFromLink
The event to log when a search interface loads for the first time, for a user who selected a query suggestion from a standalone search box.
Parameters
-
metadata:
OmniboxSuggestionMetadataThe metadata of the clicked query suggestion that triggered the redirect.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logOpenSmartSnippetFeedbackModal
The event to log when a user wishes to provide feedback about why the smart snippet answer wasn’t relevant.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logPageNext
The event to log when navigating to the next page of results.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logPageNumber
The event to log when selecting a page in the pager.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logPagePrevious
The event to log when navigating to the previous page of results.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logPagerResize
The event to log when changing the number of results per page.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logQuerySuggestionClick
The event to log when a query suggestion is selected.
Parameters
-
payload:
LogQuerySuggestionClickActionCreatorPayloadThe action creator payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logResultsSort
The event to log when the results sort criterion is changed.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logSearchboxSubmit
The event to log when performing a search using a search box.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logSearchFromLink
The event to log when a search interface loads for the first time, for a user who performed a search using a standalone search box.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logSmartSnippetDetailedFeedback
The event to log when a user provides detailed feedback about why the smart snippet answer wasn’t relevant.
Parameters
-
details:
stringA personalized message from the end user about the relevance of the answer.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logSmartSnippetFeedback
The event to log when a user provides feedback about why the smart snippet answer wasn’t relevant.
Parameters
-
feedback:
'does_not_answer' | 'partially_answers' | 'was_not_a_question'The generic feedback that the end user wishes to send.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Custom;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logStaticFilterClearAll
The event to log when all selected values of a static filter are deselected.
Parameters
-
payload:
LogStaticFilterClearAllActionCreatorPayloadThe action creation payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logStaticFilterDeselect
The event to log when a static filter value is deselected.
Parameters
-
payload:
LogStaticFilterToggleValueActionCreatorPayloadThe action creation payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logStaticFilterSelect
The event to log when a static filter value is selected.
Parameters
-
payload:
LogStaticFilterToggleValueActionCreatorPayloadThe action creation payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logTriggerExecute
The event to log when a user action executes a JavaScript function set in the effective query pipeline on the search page.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkInsightAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logTriggerQuery
The event to log when a user action triggers a new query set in the effective query pipeline on the search page.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkInsightAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logTriggerRedirect
The event to log when a user action redirects them to a URL set in the effective query pipeline on the search page.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkInsightAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
logUndoTriggerQuery
The event to log when a user undoes a query set in the effective query pipeline on the search page.
Parameters
-
payload:
LogUndoTriggerQueryActionCreatorPayloadThe action creation payload.
Returns AsyncThunkAction<{
analyticsType: AnalyticsType.Search;
}, void, AsyncThunkInsightAnalyticsOptions<StateNeededBySearchAnalyticsProvider>>: A dispatchable action.
Related types
DateFacetValue
Properties
-
end:
stringThe ending value for the date range, formatted as
YYYY/MM/DD@HH:mm:ssor the Relative date format "period-amount-unit" -
endInclusive:
booleanWhether or not the end value is included in the range.
-
numberOfResults:
numberThe number of results that have the facet value.
-
start:
stringThe starting value for the date range, formatted as
YYYY/MM/DD@HH:mm:ssor the Relative date format "period-amount-unit" -
state:
'idle' | 'selected'The state of the facet value, indicating whether it is filtering results (
selected) or not (idle).
LogCategoryFacetBreadcrumbActionCreatorPayload
Properties
-
categoryFacetId:
stringThe category facet id.
-
categoryFacetPath:
string[]The category facet selected path.
LogDateFacetBreadcrumbActionCreatorPayload
Properties
-
facetId:
stringThe facet id of the date facet corresponding to the breadcrumb.
-
selection:
DateFacetValueThe date facet value deselected using the breadcrumb.
LogFacetBreadcrumbActionCreatorPayload
Properties
-
facetId:
stringThe facet id associated with the breadcrumb.
-
facetValue:
stringThe facet value displayed in the breadcrumb.
LogFacetDeselectActionCreatorPayload
Properties
-
facetId:
stringThe facet id.
-
facetValue:
stringThe facet value that was deselected.
LogFacetSelectActionCreatorPayload
Properties
-
facetId:
stringThe facet id.
-
facetValue:
stringThe facet value that was selected.
LogFacetUpdateSortActionCreatorPayload
Properties
-
criterion:
FacetSortCriterion | RangeFacetSortCriterionThe updated sort criterion.
-
facetId:
stringThe facet id.
LogNumericFacetBreadcrumbActionCreatorPayload
Properties
-
facetId:
stringThe facet id of the numeric facet corresponding to the breadcrumb.
-
selection:
NumericFacetValueThe numeric facet value deselected using the breadcrumb.
LogQuerySuggestionClickActionCreatorPayload
Properties
-
id:
stringThe search box id.
-
suggestion:
stringThe selected query suggestion.
LogStaticFilterClearAllActionCreatorPayload
Properties
-
staticFilterId:
stringThe static filter id.
LogStaticFilterToggleValueActionCreatorPayload
Properties
-
staticFilterId:
stringThe static filter id.
-
staticFilterValue:
StaticFilterValueMetadataThe static filter value.
LogUndoTriggerQueryActionCreatorPayload
Properties
-
undoneQuery:
stringThe query that was undone.
NumericFacetValue
Properties
-
end:
numberThe ending value for the numeric range.
-
endInclusive:
booleanWhether or not the end value is included in the range.
-
numberOfResults:
numberThe number of results that have the facet value.
-
start:
numberThe starting value for the numeric range.
-
state:
'idle' | 'selected'The state of the facet value, indicating whether it is filtering results (
selected) or not (idle).
StaticFilterValueMetadata
Properties
-
caption:
stringThe caption displayed to the user.
-
expression:
stringThe query expression.