This endpoint is deprecated and will be removed on October 1st, 2024.
visitor | string Deprecated The unique identifier of the visitor. If not provided, a new identifier will be created and returned as a HTTP cookie. |
The click event to add.
actionCause required | string The type of operation that triggered this event. Example: 'firstSearch', 'searchEnter' |
collectionName required | string The @syscollection of the document that was clicked |
documentPosition required | integer <int32> The position of the document (one-based) that was clicked in the list of resultsThis number must take into consideration pagination settings. If the pages contain ten results each, the third document of the second page is at the position 22. |
documentUriHash required | string The @sysurihash of the document that was clicked |
language required | string The language that end user is using. Use ISO 639-1 codes. See ISO 639-1 for more information |
originLevel1 required | string The origin this event took place |
originLevel2 required | string The origin this event took place |
searchQueryUid required | string The searchQueryUid of the search that returned the document that was clicked. This must be a valid searchQueryUid that contains the provided documentUri and documentUriHash. |
sourceName required | string The @syssource of the document that was clicked |
anonymous | boolean Indicates if the user is anonymous. |
object Custom data that can contain all the user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Spaces in the key are converted to underscores. Uppercase characters in the key are converted to lowercase characters. It is highly recommended that you create your custom dimension before adding customData | |
device | string Deprecated The name of the device that the end user is using |
documentTitle | string The title of the document that was clicked. |
documentUri | string Deprecated The @sysuri of the document that was clicked |
documentUrl | string The URL of the document that was clicked. |
mobile | boolean Deprecated Whether the end user's device is a mobile device or not |
originLevel3 | string The origin this event took place |
queryPipeline | string The query pipeline of the search that returned the document that was clicked. |
rankingModifier | string The ranking modifier that affected the clicked document. |
splitTestRunName | string The name of the A/B test run, if one is active. |
splitTestRunVersion | string The version of the A/B test run, if one is active. |
userAgent | string The user agent string of the end user's browser. See User Agent for more information. |
userDisplayName | string The display name of the user performing the search event. |
username | string The unique identifier of the user performing the search event. If not provided, the username will be extracted from the token. |
{- "actionCause": "string",
- "anonymous": true,
- "collectionName": "string",
- "customData": {
- "property1": { },
- "property2": { }
}, - "device": "string",
- "documentPosition": 0,
- "documentTitle": "string",
- "documentUri": "string",
- "documentUriHash": "string",
- "documentUrl": "string",
- "language": "string",
- "mobile": true,
- "originLevel1": "string",
- "originLevel2": "string",
- "originLevel3": "string",
- "queryPipeline": "string",
- "rankingModifier": "string",
- "searchQueryUid": "string",
- "sourceName": "string",
- "splitTestRunName": "string",
- "splitTestRunVersion": "string",
- "userAgent": "string",
- "userDisplayName": "string",
- "username": "string"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "string",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
This endpoint is deprecated and will be removed on October 1st, 2024.
visitor | string Deprecated The unique identifier of the visitor. If not provided, a new identifier will be created and returned as a HTTP cookie. |
The custom event to add.
eventType required | string The type of this event |
eventValue required | string The type of operation that triggered this event |
language required | string The language that end user is using. Use ISO 639-1 codes. See ISO 639-1 for more information |
originLevel1 required | string The origin this event took place |
originLevel2 required | string The origin this event took place |
anonymous | boolean Indicates if the user is anonymous. |
object Custom data that can contain all the user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Spaces in the key are converted to underscores. Uppercase characters in the key are converted to lowercase characters. It is highly recommended that you create your custom dimension before adding customData | |
device | string Deprecated The name of the device that the end user is using |
lastSearchQueryUid | string The searchQueryUid of the last search event that occurred before this event |
mobile | boolean Deprecated Whether the end user's device is a mobile device or not |
originLevel3 | string The origin this event took place |
splitTestRunName | string The name of the A/B test run, if one is active. |
splitTestRunVersion | string The version of the A/B test run, if one is active. |
userAgent | string The user agent string of the end user's browser. See User Agent for more information. |
userDisplayName | string The display name of the user performing the search event. |
username | string The unique identifier of the user performing the search event. If not provided, the username will be extracted from the token. |
{- "anonymous": true,
- "customData": {
- "property1": { },
- "property2": { }
}, - "device": "string",
- "eventType": "string",
- "eventValue": "string",
- "language": "string",
- "lastSearchQueryUid": "string",
- "mobile": true,
- "originLevel1": "string",
- "originLevel2": "string",
- "originLevel3": "string",
- "splitTestRunName": "string",
- "splitTestRunVersion": "string",
- "userAgent": "string",
- "userDisplayName": "string",
- "username": "string"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "string",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
This endpoint is deprecated and will be removed on October 1st, 2024.
visitor | string Deprecated The unique identifier of the visitor. If not provided, a new identifier will be created and returned as a HTTP cookie. |
The search event to add.
actionCause required | string The type of operation that triggered this event. Example: 'firstSearch', 'searchEnter' |
contextual required | boolean Indicates if the query is modified by contextual filters (for instance, a query to find similar documents) |
language required | string The language that end user is using. Use ISO 639-1 codes. See ISO 639-1 for more information |
originLevel1 required | string The origin this event took place |
originLevel2 required | string The origin this event took place |
queryText required | string The text that was searched |
responseTime required | integer <int32> The time, in milliseconds, between the moment the query was sent and the moment the results were received. Must be greater than zero |
required | Array of objects (ResultModelV14) The results of this search event |
searchQueryUid required | string The unique identifier of the search event. Must be a UUID |
advancedQuery | string The advanced part of the query that was sent to the index. Usually this contains various query elements that were not manually added by the user. |
anonymous | boolean Indicates if the user is anonymous. |
object Custom data that can contain all the user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Spaces in the key are converted to underscores. Uppercase characters in the key are converted to lowercase characters. It is highly recommended that you create your custom dimension before adding customData | |
device | string Deprecated The name of the device that the end user is using |
mobile | boolean Deprecated Whether the end user's device is a mobile device or not |
numberOfResults | integer <int32> The number of results found. Must be equal to or greater than zero |
originLevel3 | string The origin this event took place |
queryPipeline | string The query pipeline of the search event. |
splitTestRunName | string The name of the A/B test run, if one is active. |
splitTestRunVersion | string The version of the A/B test run, if one is active. |
userAgent | string The user agent string of the end user's browser. See User Agent for more information. |
userDisplayName | string The display name of the user performing the search event. |
userGroups | Array of strings The groups that the end user performing the event is a member of |
username | string The unique identifier of the user performing the search event. If not provided, the username will be extracted from the token. |
{- "actionCause": "string",
- "advancedQuery": "string",
- "anonymous": true,
- "contextual": true,
- "customData": {
- "property1": { },
- "property2": { }
}, - "device": "string",
- "language": "string",
- "mobile": true,
- "numberOfResults": 0,
- "originLevel1": "string",
- "originLevel2": "string",
- "originLevel3": "string",
- "queryPipeline": "string",
- "queryText": "string",
- "responseTime": 0,
- "results": [
- {
- "documentUri": "string",
- "documentUriHash": "string"
}
], - "searchQueryUid": "string",
- "splitTestRunName": "string",
- "splitTestRunVersion": "string",
- "userAgent": "string",
- "userDisplayName": "string",
- "userGroups": [
- "string"
], - "username": "string"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "searchEventUid": "string",
- "visitId": "string",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
This endpoint is deprecated and will be removed on October 1st, 2024.
visitor | string Deprecated The unique identifier of the visitor. If not provided, a new identifier will be created and returned as a HTTP cookie. |
The search events to add. Please note that that the clientId from the first search event will be used to compute the visit.
actionCause required | string The type of operation that triggered this event. Example: 'firstSearch', 'searchEnter' |
contextual required | boolean Indicates if the query is modified by contextual filters (for instance, a query to find similar documents) |
language required | string The language that end user is using. Use ISO 639-1 codes. See ISO 639-1 for more information |
originLevel1 required | string The origin this event took place |
originLevel2 required | string The origin this event took place |
queryText required | string The text that was searched |
responseTime required | integer <int32> The time, in milliseconds, between the moment the query was sent and the moment the results were received. Must be greater than zero |
required | Array of objects (ResultModelV14) The results of this search event |
searchQueryUid required | string The unique identifier of the search event. Must be a UUID |
advancedQuery | string The advanced part of the query that was sent to the index. Usually this contains various query elements that were not manually added by the user. |
anonymous | boolean Indicates if the user is anonymous. |
object Custom data that can contain all the user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Spaces in the key are converted to underscores. Uppercase characters in the key are converted to lowercase characters. It is highly recommended that you create your custom dimension before adding customData | |
device | string Deprecated The name of the device that the end user is using |
mobile | boolean Deprecated Whether the end user's device is a mobile device or not |
numberOfResults | integer <int32> The number of results found. Must be equal to or greater than zero |
originLevel3 | string The origin this event took place |
queryPipeline | string The query pipeline of the search event. |
splitTestRunName | string The name of the A/B test run, if one is active. |
splitTestRunVersion | string The version of the A/B test run, if one is active. |
userAgent | string The user agent string of the end user's browser. See User Agent for more information. |
userDisplayName | string The display name of the user performing the search event. |
userGroups | Array of strings The groups that the end user performing the event is a member of |
username | string The unique identifier of the user performing the search event. If not provided, the username will be extracted from the token. |
[- {
- "actionCause": "string",
- "advancedQuery": "string",
- "anonymous": true,
- "contextual": true,
- "customData": {
- "property1": { },
- "property2": { }
}, - "device": "string",
- "language": "string",
- "mobile": true,
- "numberOfResults": 0,
- "originLevel1": "string",
- "originLevel2": "string",
- "originLevel3": "string",
- "queryPipeline": "string",
- "queryText": "string",
- "responseTime": 0,
- "results": [
- {
- "documentUri": "string",
- "documentUriHash": "string"
}
], - "searchQueryUid": "string",
- "splitTestRunName": "string",
- "splitTestRunVersion": "string",
- "userAgent": "string",
- "userDisplayName": "string",
- "userGroups": [
- "string"
], - "username": "string"
}
]
[- {
- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "searchEventUid": "string",
- "visitId": "string",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
This endpoint is deprecated and will be removed on October 1st, 2024.
user | string The unique identifier of the user performing the search event. If not provided, the username will be extracted from the token. |
visitor | string Deprecated The unique identifier of the visitor. If not provided, a new identifier will be created and returned as a HTTP cookie. |
{- "id": "string",
- "visitorId": "string"
}
Logs a click event. Typically, when the end-user opens or previews a result, the search interface logs a click event.
org | string The name of the organization (Coveo Cloud V2 only) |
prioritizeVisitorParameter | boolean Deprecated Default: false '''DEPRECATED''' The |
visitor | string Deprecated '''DEPRECATED''' The |
The click event to add.
actionCause required | string The type of operation that triggered this event (see |
documentPosition required | integer <int32> The 1-based index position of the item that was clicked in the result list. This number must take into consideration pagination settings. If the pages contain ten results each, the third item of the second page is at the position 23. |
language required | string (Required, except when logging View events). The language of the end-user. Must be a valid ISO 639-1 code |
searchQueryUid required | string The unique identifier of the event which led the search interface to log the click event. It is recommend to use the |
sourceName required | string The |
anonymous | boolean Whether the interaction that caused the search interface to log the event was triggered by an anonymous user. If set to |
clientId | string A value that uniquely identifies the user who is logging the event. Must be a valid UUID. |
collectionName | string The |
object The user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Whitespaces in keys are converted to underscores. Uppercase characters in keys are converted to lowercase characters. The value could be any valid JSON, but it is handled as string over Coveo usage analytics. It is highly recommended that you create your custom dimension before adding customData | |
documentAuthor | string The author of the item that was clicked |
documentCategory | string The category of the clicked item |
documentTitle | string The title of the item that was clicked |
documentUri | string Deprecated The |
documentUriHash | string Deprecated The |
documentUrl | string The URL of the item that was clicked |
originContext | string The origin of the event. Used to specify the deployment from which the user performs the action. Suggested values are |
originLevel1 | string The name/identifier of the search interface from which the event originates. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
originLevel2 | string The name/identifier of the tab from which the event originates |
originLevel3 | string The URL of the page that redirected the browser to the search interface from which the event originates, i.e. |
outcome | integer <int32> An indication of how good the outcome of this event is. A value of |
queryPipeline | string The name of the query pipeline which processed the query that led to the click event. When unspecified, the service uses the |
rankingModifier | string The ranking modifier that affected the clicked item |
splitTestRunName | string The name of the A/B test run, if one is active. See Managing A/B Tests |
splitTestRunVersion | string The version of the A/B test run, if one is active |
trackingId | string A value to identify which web property an event is related to. This can only contain lowercase letters, numbers, and underscores ( |
userAgent | string Information about the browser and operating system of the end-user who caused the search interface to log an event. See User Agent for more information |
userDisplayName | string The display name of the user performing the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
username | string The name of the user security identity who caused the search interface to log the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the username value from the access token that authenticated the request. If this fails, the username value is left blank. If unspecified and the request is authenticated with an API key, |
{- "actionCause": "documentOpen",
- "anonymous": false,
- "clientId": "489aa3e3-aed2-4563-8e81-62bb73178a56",
- "collectionName": "Default",
- "customData": {
- "property1": { },
- "property2": { }
}, - "documentAuthor": "John Doe",
- "documentCategory": "KBSupport",
- "documentPosition": 1,
- "documentTitle": "Coveo for Salesforce",
- "documentUriHash": "xyhvGJJGRDM3OiG5",
- "language": "en",
- "originContext": "CommunitySearch",
- "originLevel1": "ExternalSearch",
- "originLevel2": "all",
- "outcome": 0,
- "queryPipeline": "External Search",
- "rankingModifier": "Reveal ART",
- "searchQueryUid": "df60b2fb-c276-49ae-b704-2ee45609f3a6",
- "sourceName": "AnswersCloud",
- "splitTestRunName": "splitTest",
- "splitTestRunVersion": "splitTestRunAlpha",
- "trackingId": "online_store",
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3249.481 Safari/537.36",
- "userDisplayName": "Alice",
- "username": "alice.smith@example.com"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
The event in JSON based on https://docs.coveo.com/en/l41i0031/build-a-search-ui/measurement-protocol-parameter-reference
property name* additional property | object |
{- "property1": { },
- "property2": { }
}
Logs a custom event. Typically, when the end-user interacts with a page in a way that needs to be recorded, but that is neither a search, a click, or a view event (e.g., toggling the result list layout, changing end-user preferences), the page logs a custom event.
org | string The name of the organization (Coveo Cloud V2 only) |
prioritizeVisitorParameter | boolean Deprecated Default: false '''DEPRECATED''' The |
visitor | string Deprecated '''DEPRECATED''' The |
The custom event to add.
eventType required | string The custom event type |
eventValue required | string The custom event value |
language required | string (Required, except when logging View events). The language of the end-user. Must be a valid ISO 639-1 code |
anonymous | boolean Whether the interaction that caused the search interface to log the event was triggered by an anonymous user. If set to |
clientId | string A value that uniquely identifies the user who is logging the event. Must be a valid UUID. |
object The user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Whitespaces in keys are converted to underscores. Uppercase characters in keys are converted to lowercase characters. The value could be any valid JSON, but it is handled as string over Coveo usage analytics. It is highly recommended that you create your custom dimension before adding customData | |
lastSearchQueryUid | string The unique identifier (typically, the |
originContext | string The origin of the event. Used to specify the deployment from which the user performs the action. Suggested values are |
originLevel1 | string The name/identifier of the search interface from which the event originates. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
originLevel2 | string The name/identifier of the tab from which the event originates |
originLevel3 | string The URL of the page that redirected the browser to the search interface from which the event originates, i.e. |
outcome | integer <int32> An indication of how good the outcome of this event is. A value of |
splitTestRunName | string The name of the A/B test run, if one is active. See Managing A/B Tests |
splitTestRunVersion | string The version of the A/B test run, if one is active |
trackingId | string A value to identify which web property an event is related to. This can only contain lowercase letters, numbers, and underscores ( |
userAgent | string Information about the browser and operating system of the end-user who caused the search interface to log an event. See User Agent for more information |
userDisplayName | string The display name of the user performing the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
username | string The name of the user security identity who caused the search interface to log the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the username value from the access token that authenticated the request. If this fails, the username value is left blank. If unspecified and the request is authenticated with an API key, |
{- "anonymous": false,
- "clientId": "489aa3e3-aed2-4563-8e81-62bb73178a56",
- "customData": {
- "property1": { },
- "property2": { }
}, - "eventType": "facet",
- "eventValue": "facetSearch",
- "language": "en",
- "lastSearchQueryUid": "7bfc652a-9dea-4811-b3f9-6d24345c37ce",
- "originContext": "CommunitySearch",
- "originLevel1": "ExternalSearch",
- "originLevel2": "all",
- "outcome": 0,
- "splitTestRunName": "splitTest",
- "splitTestRunVersion": "splitTestRunAlpha",
- "trackingId": "online_store",
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3249.481 Safari/537.36",
- "userDisplayName": "Alice",
- "username": "alice.smith@example.com"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
Logs a search event. Typically, when an end-user interacts with a search interface in a way that triggers a query to the Search API (e.g., submitting a query from the search box, selecting a facet value, etc.), the search interface logs a search event.
org | string The name of the organization (Coveo Cloud V2 only) |
prioritizeVisitorParameter | boolean Deprecated Default: false '''DEPRECATED''' The |
visitor | string Deprecated '''DEPRECATED''' The |
The search event to add.
actionCause required | string The type of operation that triggered this event (see |
language required | string (Required, except when logging View events). The language of the end-user. Must be a valid ISO 639-1 code |
queryText required | string The original basic query expression ( |
responseTime required | integer <int32> The amount of time (in milliseconds) between the moment the query that caused the search interface to log a search event was sent to the Search API and the moment the Search API returned the results. Must be greater than zero |
searchQueryUid required | string The unique identifier of the event which led the search interface to log the search event. It is recommended to use the |
advancedQuery | string The original advanced query expression ( |
anonymous | boolean Whether the interaction that caused the search interface to log the event was triggered by an anonymous user. If set to |
clientId | string A value that uniquely identifies the user who is logging the event. Must be a valid UUID. |
contextual | boolean Indicates if the query is modified by contextual filters (for instance, a query to find similar items) |
object The user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Whitespaces in keys are converted to underscores. Uppercase characters in keys are converted to lowercase characters. The value could be any valid JSON, but it is handled as string over Coveo usage analytics. It is highly recommended that you create your custom dimension before adding customData | |
Array of objects (FacetStateModelV15) The facet state information in JSON ARRAY format at the time the search operation was performed | |
indexId | string The index name the search query performed against |
numberOfResults | integer <int32> The number of results which were returned by the query that caused the search interface to log a search event. Must be equal to or greater than zero |
originContext | string The origin of the event. Used to specify the deployment from which the user performs the action. Suggested values are |
originLevel1 | string The name/identifier of the search interface from which the event originates. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
originLevel2 | string The name/identifier of the tab from which the event originates |
originLevel3 | string The URL of the page that redirected the browser to the search interface from which the event originates, i.e. |
outcome | integer <int32> An indication of how good the outcome of this event is. A value of |
queryPipeline | string The name of the query pipeline which processed the query that caused the search interface to log a search event. When unspecified, the service uses the |
Array of objects (ResultModelV15) Deprecated The results of this search event | |
splitTestRunName | string The name of the A/B test run, if one is active. See Managing A/B Tests |
splitTestRunVersion | string The version of the A/B test run, if one is active |
trackingId | string A value to identify which web property an event is related to. This can only contain lowercase letters, numbers, and underscores ( |
userAgent | string Information about the browser and operating system of the end-user who caused the search interface to log an event. See User Agent for more information |
userDisplayName | string The display name of the user performing the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
userGroups | Array of strings The groups that the end-user performing the event is a member of. If the request is authenticated with a search token, the service also attempts to extract the |
username | string The name of the user security identity who caused the search interface to log the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the username value from the access token that authenticated the request. If this fails, the username value is left blank. If unspecified and the request is authenticated with an API key, |
{- "actionCause": "facetSelect",
- "advancedQuery": "(@objecttype==('Developer Guide', 'Developers Topic'))",
- "anonymous": false,
- "clientId": "489aa3e3-aed2-4563-8e81-62bb73178a56",
- "contextual": true,
- "customData": {
- "property1": { },
- "property2": { }
}, - "facetState": [
- {
- "displayValue": "Laptop",
- "facetPosition": 1,
- "facetType": "specific",
- "field": "productcategory",
- "id": "productcategory1",
- "state": "selected",
- "title": "Product Category",
- "value": "laptop",
- "valuePosition": 2
}
], - "indexId": "string",
- "language": "en",
- "numberOfResults": 1866,
- "originContext": "CommunitySearch",
- "originLevel1": "ExternalSearch",
- "originLevel2": "all",
- "outcome": 0,
- "queryPipeline": "External Search",
- "queryText": "coveo",
- "responseTime": 145,
- "results": [
- {
- "documentUri": "string",
- "documentUriHash": "string"
}
], - "searchQueryUid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "splitTestRunName": "splitTest",
- "splitTestRunVersion": "splitTestRunAlpha",
- "trackingId": "online_store",
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3249.481 Safari/537.36",
- "userDisplayName": "Alice",
- "userGroups": [
- "string"
], - "username": "alice.smith@example.com"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "searchEventUid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
Logs one or more search events. Typically, when an end-user interacts with a search interface in a way that triggers a query to the Search API (e.g., submitting a query from the search box, selecting a facet value, etc.), the search interface logs a search event. Logging a batch of more than three items should generally be avoided, due to possible timing issues (e.g., all items in a batch inherit the same datetime).
org | string The name of the organization (Coveo Cloud V2 only) |
prioritizeVisitorParameter | boolean Deprecated Default: false '''DEPRECATED''' The |
visitor | string '''DEPRECATED''' The |
The search events to add.
actionCause required | string The type of operation that triggered this event (see |
language required | string (Required, except when logging View events). The language of the end-user. Must be a valid ISO 639-1 code |
queryText required | string The original basic query expression ( |
responseTime required | integer <int32> The amount of time (in milliseconds) between the moment the query that caused the search interface to log a search event was sent to the Search API and the moment the Search API returned the results. Must be greater than zero |
searchQueryUid required | string The unique identifier of the event which led the search interface to log the search event. It is recommended to use the |
advancedQuery | string The original advanced query expression ( |
anonymous | boolean Whether the interaction that caused the search interface to log the event was triggered by an anonymous user. If set to |
clientId | string A value that uniquely identifies the user who is logging the event. Must be a valid UUID. |
contextual | boolean Indicates if the query is modified by contextual filters (for instance, a query to find similar items) |
object The user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Whitespaces in keys are converted to underscores. Uppercase characters in keys are converted to lowercase characters. The value could be any valid JSON, but it is handled as string over Coveo usage analytics. It is highly recommended that you create your custom dimension before adding customData | |
Array of objects (FacetStateModelV15) The facet state information in JSON ARRAY format at the time the search operation was performed | |
indexId | string The index name the search query performed against |
numberOfResults | integer <int32> The number of results which were returned by the query that caused the search interface to log a search event. Must be equal to or greater than zero |
originContext | string The origin of the event. Used to specify the deployment from which the user performs the action. Suggested values are |
originLevel1 | string The name/identifier of the search interface from which the event originates. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
originLevel2 | string The name/identifier of the tab from which the event originates |
originLevel3 | string The URL of the page that redirected the browser to the search interface from which the event originates, i.e. |
outcome | integer <int32> An indication of how good the outcome of this event is. A value of |
queryPipeline | string The name of the query pipeline which processed the query that caused the search interface to log a search event. When unspecified, the service uses the |
Array of objects (ResultModelV15) Deprecated The results of this search event | |
splitTestRunName | string The name of the A/B test run, if one is active. See Managing A/B Tests |
splitTestRunVersion | string The version of the A/B test run, if one is active |
trackingId | string A value to identify which web property an event is related to. This can only contain lowercase letters, numbers, and underscores ( |
userAgent | string Information about the browser and operating system of the end-user who caused the search interface to log an event. See User Agent for more information |
userDisplayName | string The display name of the user performing the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
userGroups | Array of strings The groups that the end-user performing the event is a member of. If the request is authenticated with a search token, the service also attempts to extract the |
username | string The name of the user security identity who caused the search interface to log the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the username value from the access token that authenticated the request. If this fails, the username value is left blank. If unspecified and the request is authenticated with an API key, |
[- {
- "actionCause": "facetSelect",
- "advancedQuery": "(@objecttype==('Developer Guide', 'Developers Topic'))",
- "anonymous": false,
- "clientId": "489aa3e3-aed2-4563-8e81-62bb73178a56",
- "contextual": true,
- "customData": {
- "property1": { },
- "property2": { }
}, - "facetState": [
- {
- "displayValue": "Laptop",
- "facetPosition": 1,
- "facetType": "specific",
- "field": "productcategory",
- "id": "productcategory1",
- "state": "selected",
- "title": "Product Category",
- "value": "laptop",
- "valuePosition": 2
}
], - "indexId": "string",
- "language": "en",
- "numberOfResults": 1866,
- "originContext": "CommunitySearch",
- "originLevel1": "ExternalSearch",
- "originLevel2": "all",
- "outcome": 0,
- "queryPipeline": "External Search",
- "queryText": "coveo",
- "responseTime": 145,
- "results": [
- {
- "documentUri": "string",
- "documentUriHash": "string"
}
], - "searchQueryUid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "splitTestRunName": "splitTest",
- "splitTestRunVersion": "splitTestRunAlpha",
- "trackingId": "online_store",
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3249.481 Safari/537.36",
- "userDisplayName": "Alice",
- "userGroups": [
- "string"
], - "username": "alice.smith@example.com"
}
]
[- {
- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "searchEventUid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
]
This endpoint is exposed for backward compatibility reasons. Use monitoring/health
instead. Returns the status of the Usage Analytics Write service. Possible values are 'online', 'unavailable' and 'degraded'.
{ }
Logs a view event. Although view events are not currently available for usage analytics reports, they are required to feed Coveo Machine Learning event recommendations models. A page corresponding to an item which should be considered as a possible candidate result for the output of a Coveo Machine Learning event recommendation model must log a view event on its own whenever it is navigated to.
org | string The name of the organization (Coveo Cloud V2 only) |
prioritizeVisitorParameter | boolean Deprecated Default: false '''DEPRECATED''' The |
visitor | string Deprecated '''DEPRECATED''' The |
The view event to add.
language required | string (Required, except when logging View events). The language of the end-user. Must be a valid ISO 639-1 code |
location required | string The URL of the viewed page or component, usually |
anonymous | boolean Whether the interaction that caused the search interface to log the event was triggered by an anonymous user. If set to |
clientId | string A value that uniquely identifies the user who is logging the event. Must be a valid UUID. |
contentIdKey | string The name of a field in the index that identifies the item uniquely. A good practice is to use |
contentIdValue | string The value of the field selected as |
contentType | string The type of content in the page |
object The user defined dimensions and their values. Keys can only contain alphanumeric or underscore characters. Whitespaces in keys are converted to underscores. Uppercase characters in keys are converted to lowercase characters. The value could be any valid JSON, but it is handled as string over Coveo usage analytics. It is highly recommended that you create your custom dimension before adding customData | |
originContext | string The origin of the event. Used to specify the deployment from which the user performs the action. Suggested values are |
originLevel1 | string The name/identifier of the search interface from which the event originates. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
originLevel2 | string The name/identifier of the tab from which the event originates |
originLevel3 | string The URL of the page that redirected the browser to the search interface from which the event originates, i.e. |
outcome | integer <int32> An indication of how good the outcome of this event is. A value of |
referrer | string This parameter is exposed for backward compatibility reasons. Use |
splitTestRunName | string The name of the A/B test run, if one is active. See Managing A/B Tests |
splitTestRunVersion | string The version of the A/B test run, if one is active |
title | string The title of the item |
trackingId | string A value to identify which web property an event is related to. This can only contain lowercase letters, numbers, and underscores ( |
userAgent | string Information about the browser and operating system of the end-user who caused the search interface to log an event. See User Agent for more information |
userDisplayName | string The display name of the user performing the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the |
username | string The name of the user security identity who caused the search interface to log the event. Can only be specified when authenticated with a token with impersonate privilege. If unspecified and the request is authenticated with a search token, the service attempts to extract the username value from the access token that authenticated the request. If this fails, the username value is left blank. If unspecified and the request is authenticated with an API key, |
{- "anonymous": false,
- "clientId": "489aa3e3-aed2-4563-8e81-62bb73178a56",
- "contentIdKey": "'@permanentid'",
- "contentIdValue": "648a63d6a19545297692b4ae41a7d5e947c711be5f3c23dff69af3106960",
- "contentType": "Docs",
- "customData": {
- "property1": { },
- "property2": { }
}, - "language": "en",
- "originContext": "CommunitySearch",
- "originLevel1": "ExternalSearch",
- "originLevel2": "all",
- "outcome": 0,
- "splitTestRunName": "splitTest",
- "splitTestRunVersion": "splitTestRunAlpha",
- "title": "Coveo for Salesforce",
- "trackingId": "online_store",
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3249.481 Safari/537.36",
- "userDisplayName": "Alice",
- "username": "alice.smith@example.com"
}
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
Returns the current visitId
, visitorId
and clientId
.
clientId | string The unique identifier of the visitor. If a client id is provided, it is prioritized over any value passed for the visitor id parameter. |
org | string The name of the organization (Coveo Cloud V2 only) |
prioritizeVisitorParameter | boolean Deprecated Default: false '''DEPRECATED''' The |
user | string The unique identifier of the user performing the search event. If not provided, the username will be extracted from the token. |
visitor | string Deprecated '''DEPRECATED''' The |
{- "clientId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
- "visitorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}