Standard actions and Usage Analytics reference
Standard actions and Usage Analytics reference
This article lists some frequent actions that you may want to make available in a custom search interface implementation.
The following information is included for each action:
-
The category of Coveo Analytics event (search, click, or custom) that must be logged when this action is performed.
-
The corresponding
actionCause
(for search and click events) oreventType
andeventValue
(for custom events). -
The corresponding
customData
keys, if any.
The actions in this article are grouped into five broad categories:
-
Generic actions, such as initializing a search interface or selecting a tab
-
Search box actions, such as submitting user queries or handling Coveo Machine Learning (Coveo ML) Query Suggestions (QS)
-
Result list actions, such as opening or paging query results
-
Facet actions, such as toggling facet values (either directly or indirectly) or performing facet search
-
Custom filter actions, such as creating, updating, or interacting with custom or advanced search result filters
This article only lists common search interface actions that, when performed, require logging specific Coveo Analytics events. Other frequent actions that don’t have this requirement, such as rendering query results or facets, aren’t included.
|
You must ensure that user interactions with your custom search interface implementation log Coveo Analytics events in a way that resembles what the Coveo JavaScript Search Framework or the Atomic or Headless libraries would do in similar circumstances. Otherwise:
|
Generic actions
This section lists the generic actions that you may want to make available in a custom search interface implementation.
Initialize a search interface
The following table lists the actions to use when initializing a search interface.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Load a standard search interface |
Search |
|
N/A |
Load a recommendation interface |
Search |
|
N/A |
Select a tab
The following table lists the actions to use when selecting a tab. See Implement tabs.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Select a tab |
Search |
|
|
Handle Coveo query pipeline triggers
The following table lists the actions to use when handling Coveo query pipeline triggers.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Run an |
Custom |
|
|
|
Run a |
Custom |
|
|
|
Run a |
Custom |
|
|
|
Run a |
Custom |
|
|
|
Manage user settings
The following table lists the actions to use when managing user settings.
Action | Coveo Analytics event | actionCause |
eventType |
eventValue |
customData |
---|---|---|---|---|---|
Update user preferences |
Custom |
N/A |
|
|
|
Resolve user geolocation |
Search |
|
N/A |
N/A |
N/A |
Handle query errors
The following table lists the actions to use when handling query errors.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Go back to the previous state after a query returned no results |
Custom |
|
|
N/A |
Log a query error |
Custom |
|
|
|
Go back to the previous state after a query returned an error |
Custom |
|
|
N/A |
Reset the search box after a query returned an error |
Custom |
|
|
N/A |
Execute the same query again after a query returned an error |
Custom |
|
|
N/A |
Search box actions
This section lists the search box actions that you may want to make available in a custom search interface implementation. See Implement a search box.
Submit user queries
The following table lists the actions to use when submitting user queries. See Implement a search box - Submit a query.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Send a user query from a non-standalone search box |
Search |
|
N/A |
Execute a user query sent from a standalone search box |
Search |
|
N/A |
Clear a non-standalone search box (and send a blank user query as a side effect) |
Search |
|
N/A |
Handle Coveo ML query suggestions
The following table lists the actions to use when handling Coveo ML query suggestions. See Implement a search box - Provide Coveo Machine Learning query suggestions.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Select a Coveo ML QS from a non-standalone search box |
Search |
|
|
Execute a Coveo ML-suggested query selected from a standalone search box |
Search |
|
|
Trigger a search-as-you-type query |
Search |
|
|
Handle field-based query suggestions
The following table lists the actions to use when handling field-based QS. See Implement a search box - Provide field-based query completion suggestions.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Select a field-based suggestion |
Search |
|
N/A |
Correct queries
The following table lists the actions to use when correcting queries. See Implement a search box - Correct queries.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Select a query correction suggestion |
Search |
|
N/A |
Trigger an automatically corrected query |
Search |
|
N/A |
Result list actions
This section lists the result list actions that you may want to make available in a custom search interface implementation. See Implement a result list.
Open query results
The following table lists the actions to use when opening query results. See Implement a result list - Open query results.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Open a query result |
Click |
|
|
Open a Coveo ML Content Recommendation (CR) result in a recommendation interface |
Click |
|
|
Preview a query result |
Click |
|
|
Page query results
The following table lists the actions to use when paging query results. See Implement a result list - Page query results.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Navigate to a specific page of query results |
Custom |
|
|
|
Navigate to the next page of query results |
Custom |
|
|
|
Navigate to the previous page of query results |
Custom |
|
|
|
Scroll down to get more results in infinite scroll mode |
Custom |
|
|
N/A |
Select the number of query results to display per page |
Custom |
|
|
|
Sort query results
The following table lists the actions to use when sorting query results. See Implement a result list - Sort query results.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Select the result list sort criteria or direction |
Search |
|
|
Switch result list layouts
The following table lists the actions to use when switching result list layouts. See Implement a result list - Switch result list layouts.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Select the result list layout |
Custom |
|
|
|
Export query results
The following table lists the actions to use when exporting query results. See Implement a result list - Export results.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Export the query results to an Excel document |
Custom |
|
|
N/A |
Facet actions
This section lists the facet actions that you may want to make available in a custom search interface implementation. See Implement facets.
Toggle facet values
The following table lists the actions to use when toggling facet values. See Implement facets - Toggle facet values.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Select a single value in a facet |
Search |
|
|
Un-select a single value in a facet |
Search |
|
|
Exclude a single value in a facet |
Search |
|
|
Un-exclude a single value in a facet |
Search |
|
|
Reset selected and excluded values in a facet |
Search |
|
|
Select a numeric value range in a facet |
Search |
|
|
Select or un-select a single facet value by interacting with a query result |
Search |
|
|
Un-select or un-exclude a single facet value by interacting with breadcrumbs |
Search |
|
|
Clear all selected/excluded facet values by interacting with breadcrumbs |
Search |
|
N/A |
Sort facet values
The following table lists the actions to use when sorting facet values. See Implement facets.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Change facet sort criteria or direction |
Custom |
|
|
|
Perform facet search
The following table lists the actions to use when performing facet search. See Implement facets - Perform facet search.
Action | Coveo Analytics event | eventType |
eventValue |
customData |
---|---|---|---|---|
Search for a value in a facet |
Custom |
|
|
|
Switch between conjunctive and disjunctive facet
The following table lists the actions to use when switching between a conjunctive and disjunctive facet.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Toggle a facet operator |
Search |
|
|
Custom filter actions
The following table lists the custom filter actions that you may want to make available in a custom search interface implementation.
Action | Coveo Analytics event | actionCause |
customData |
---|---|---|---|
Create, update, or interact with a custom search result filter |
Search |
|
|
Create or update an advanced search result filter |
Search |
|
N/A |
Clear an advanced search result filter by interacting with breadcrumbs |
Search |
|
N/A |