THIS IS ARCHIVED DOCUMENTATION

Adding custom usage analytics metadata in Coveo for Sitecore

In this article

The Coveo 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-Powered Search Page.

  1. Ensure that you’ve enabled and configured the Coveo UA module beforehand (see Coveo Analytics).

  2. 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-Powered Search Page.

  3. In the Coveo Usage Analytics Custom Metadata section, add the name of your custom metadata with its corresponding value.

    In the Coveo Usage Analytics Custom Metadata section add the name of your custom metadata with its corresponding value | Coveo for Sitecore 4
  4. Click OK.

  5. Save and publish your page.

  6. Perform a query and verify that it’s properly logged in the Coveo UA module.

    Perform a query and verify that it’s properly logged in the Coveo UA module | Coveo for Sitecore 4
    Perform a query and verify that it’s properly logged in the Coveo UA module | Coveo for Sitecore 4
    Note

    If you have just done the configuration, you should see a query count of 2.

  7. Once a query is sent to Coveo UA module, the dimension name will be suggested in the Add a Dimension section.

    Once a query is sent to Coveo UA module the dimension name will be suggested in the Add a Dimension section | Coveo for Sitecore 4
    Note

    Note that the name of the custom metadata is in lower case. This means that metadata names aren’t case sensitive. Assigning a value to either custommetadata or CustomMetadata will end up as the same dimension.

  8. Validate that you now have a value appearing for the newly added custom metadata.

    Validate that you now have a value appearing for the newly added custom metadata | Coveo for Sitecore 4
    Note

    As you can see, the first query done in the configuration doesn’t have a value for CustomMetadata, but the second one does have the value CustomValue.