--- title: ViewedByCustomer component slug: '3073' canonical_url: https://docs.coveo.com/en/3073/ collection: coveo-for-salesforce source_format: adoc --- # ViewedByCustomer component [.version.no-link.lightning] Lightning experience > **Important** > > * For this feature to work, you need to have the corresponding service enabled. > Contact [Coveo Sales](https://www.coveo.com/en/contact) to enable this feature. > > * The `CoveoViewedByCustomer` component won't work if the [`UserActions` Component](https://docs.coveo.com/en/2973/) isn't initialized on your search interface. The _ViewedByCustomer_ component allows your agents to see, within the Salesforce Lightning console, every result which the user clicked. It displays an icon and a label on each result, if already viewed by the customer who created the case. The component can be added in the [Coveo Insight Panel Lightning Component](https://docs.coveo.com/en/1028/). See [Manage the Viewed by Customer Label](https://docs.coveo.com/en/3129#manage-the-viewed-by-customer-label) for more information. > **Note** > > This is a [result template](https://docs.coveo.com/en/413/) component and needs to be added to all result templates to show all results that were viewed by the customer. > If a result template is missed, results that use that template won't display the Viewed By Customer icon. ## Usage ```xml ``` ## Options ### `showIcon` The icon displayed when the component is displayed itself. The default value is `true`. ```xml
``` ### `label` The label that should be displayed when the component is displayed. The default value is `Viewed by Customer`. ```xml
``` Where you replace `` by the name you want to be displayed for the component. ## Method This component doesn't offer any method.