--- title: Ensure that Coveo Usage Analytics click and view events are recorded slug: mc2g0537 canonical_url: https://docs.coveo.com/en/mc2g0537/ collection: project-guide source_format: adoc --- # Ensure that Coveo Usage Analytics click and view events are recorded > **Important** > > This guide provides guidelines to analyze, review, and test different aspects of a Coveo-powered implementation. > > It shouldn't be considered an official, definitive guide to testing an implementation before it goes live, but rather a guide showcasing the basic components that Coveo implementations typically include. > > Every Coveo implementation is different and may require custom configuration. > > Therefore, you may notice discrepancies between the components and features listed in this guide and those you're using in your actual implementation. > > If you encounter issues, or have any questions related to this article, contact [Coveo Support](https://connect.coveo.com/s/case/Case/Default) for help. ## Access your browser's network monitoring tool . Open your web browser's developer tools. > **Note** > > The examples in this article use the **Google Chrome** developer tools. > For browser-specific information, see: > > * [Google Chrome](https://developers.google.com/web/tools/chrome-devtools/open) > > * [Mozilla Firefox](https://developer.mozilla.org/en-US/docs/Tools) > > * [Safari](https://support.apple.com/en-ca/guide/safari/sfri20948/mac) . Select the **Network** tab. ## Test click events When a click action is performed (for example, clicking a result link), ensure that an appropriate click event is logged. . Access the page in which you have integrated your search component. . [Access your browser's network monitoring tool](#access-your-browsers-network-monitoring-tool). . Perform a click action. . In the network monitoring tool, under the **Name** column, you should see a request whose path contains `/rest/ua/v15/analytics/click`: ![Click event path | Coveo](https://docs.coveo.com/en/assets/images/coveo-solutions/click-event-path.png) If you aren't logging click events, do one of the following: * If you're using either the [Coveo Atomic](https://docs.coveo.com/en/lcdf0264/) or Quantic libraries, add the result link component to all of your [result templates](https://docs.coveo.com/en/mc2g0332#test-result-templates). This component handles click events for you, and shouldn't be removed from your result templates. * If you're using [Coveo Headless](https://docs.coveo.com/en/lcdf0493/), you should use the [`InteractiveResult`](https://docs.coveo.com/en/headless/latest/reference/interfaces/Search.InteractiveResult.html) controller to handle click events. > **Note** > > If your implementation doesn't rely on any of these UI libraries, see [Open query results](https://docs.coveo.com/en/1372#open-query-results) and [Log click events](https://docs.coveo.com/en/2064/). ## Test view events To leverage [Coveo Machine Learning (Coveo ML)](https://docs.coveo.com/en/188/) [content recommendations](https://docs.coveo.com/en/1016/), you must ensure that your [search interface](https://docs.coveo.com/en/2741/) logs view events every time a tracked page is opened. > **Important** > > The Atomic and Headless libraries don't send view events automatically. > You must add code to log view events on every page that you want to be able to recommend through a recommendation interface. > > Depending on how you choose to build your [search interface](https://docs.coveo.com/en/2741/), see: > > * [Coveo Atomic](https://docs.coveo.com/en/atomic/latest/usage/atomic-usage-analytics/atomic-view-events/) > > * [Coveo Headless](https://docs.coveo.com/en/headless/latest/usage/headless-usage-analytics/headless-view-events/) . Access the page in which you have integrated your search component. . [Access your browser's network monitoring tool](#access-your-browsers-network-monitoring-tool). . Reload the page. . In the network monitoring tool, under the **Name** column, you should see a request whose path contains `/rest/ua/v15/analytics/view`. ![View event path | Coveo](https://docs.coveo.com/en/assets/images/coveo-solutions/view-event-path.png) > **Note** > > If your implementation doesn't rely on any Coveo search UI library (Atomic, Headless, or Quantic), see [Log view events](https://docs.coveo.com/en/2651/).