Adding Custom Usage Analytics Metadata in Coveo for Sitecore
The Coveo Usage Analytics module allows you to log custom metadata in addition to the metadata already being logged by default.
This page explains how you can easily add custom metadata for your Coveo Search Page.
- Ensure you have enabled and configured the Coveo Usage Analytics module beforehand (see Coveo Usage Analytics).
- In Sitecore, using the Content Editor or Experience/Page Editor, edit the properties of the Coveo for Sitecore Analytics (Coveo Search component for the Legacy UI framework) component present in your Coveo Search Page.
In the Coveo Usage Analytics Custom Metadata section, add the name of your custom metadata with its corresponding value.
- Click OK.
- Save and publish your page.
Perform a query and verify that it is properly logged in the Coveo Usage Analytics module.
If you have just done the configuration, you should see a query count of 2.
Once a query is sent to Coveo Usage Analytics module, the dimension name will be suggested in the Add a Dimension section.
Note that the name of the custom metadata is in lower case. This means that metadata names are not case sensitive. Assigning a value to either
CustomMetadatawill end up as the same dimension.
Validate that you now have a value appearing for the newly added custom metadata.
As you can see, the first query done in the configuration does not have a value for
CustomMetadata, but the second one does have the value