---
title: Coveo Send Analytics To Sitecore
slug: '2479'
canonical_url: https://docs.coveo.com/en/2479/
collection: coveo-for-sitecore-v5
source_format: adoc
---
# Coveo Send Analytics To Sitecore

:figure-caption!:

> **Legacy feature**
>
> The Coveo Hive Framework is now in maintenance mode and is no longer recommended for new implementations.
>
> To build new search experiences, use one of Coveo's more modern, lightweight, and responsive libraries.
> To get started, see the [Build search](https://docs.coveo.com/en/2473.md) article.

![Coveo for Sitecore Specific Rendering](c4sc-v5/sitecore-20-px-new.png)
This rendering duplicates Coveo-powered search interface analytics requests sent to the Coveo Usage Analytics service and sends the duplicate to the Sitecore Experience Profile endpoint.

## Usage notes

* Usage analytics are only sent to the Sitecore Experience Profile endpoint when viewing the published site.
Actions performed when viewing site pages in the **Experience Editor** or in **Preview Mode** aren't recorded in usage analytics.

* A few [manual steps](https://docs.coveo.com/en/2702.md) are required to enable sending Coveo analytics events to Sitecore xConnect.

* You also need to add the [**Coveo for Sitecore Analytics**](https://docs.coveo.com/en/2186/?c4scV5HiveType=tab-hive) rendering to your search interface to send analytics to Sitecore.

## Insertion location

+
<div>
<h3>Coveo Hive</h3>
  
The **Coveo Send Analytics To Sitecore** rendering is an Allowed Control in the following placeholder(s): `UI Header`, `Recommendations Components`

  <video width="690" height="335" controls="">
  <source src="https://docs.coveo.com/en/assets/images/c4sc-v5/send-analytics-to-sitecore-hive.mp4" type="video/mp4" />
  Your browser doesn't support the video tag.
</video>
  <div class="figure-caption">Example insertion sequence for the **Coveo Send Analytics To Sitecore** rendering.
  </div>
</div>
<div>
<h3>Coveo Hive SXA</h3>
  
Coveo for Sitecore SXA rendering insertion locations aren't limited by placeholder Allowed Controls. The **Coveo Send Analytics To Sitecore** rendering may be inserted anywhere within the **Coveo Search Interface**, whether in a Coveo for Sitecore or Sitecore placeholder.

  <video width="690" height="335" controls="">
  <source src="https://docs.coveo.com/en/assets/images/c4sc-v5/send-analytics-to-sitecore-sxa.mp4" type="video/mp4" />
  Your browser doesn't support the video tag.
</video>
  <div class="figure-caption">Example insertion sequence for the **Coveo Send Analytics To Sitecore** rendering.
  </div>
</div>
+

## Data source options

The following table lists the available data source options for this rendering.

| Option name | Description |
|---|---|
| Sitecore Analytics endpoint | The endpoint used to send the Coveo-powered search interface analytics to Sitecore Analytics. |

## Sample generated HTML and corresponding visual output

You add a **Coveo Send Analytics To Sitecore** rendering and a **Coveo for Sitecore Analytics** rendering to a Coveo-powered search page.
You configure their data sources as follows:

+
<div style="display: flex;justify-content: space-between;">
<div style="width:49%;">
  <div><img src="https://docs.coveo.com/en/assets/images/c4sc-v5/send-to-sitecore-data-source-config.png"  alt="Coveo Send Analytics to Sitecore component data source configuration with Sitecore Analytics endpoint field"/></div>
  <div class="figure-caption">
  
Coveo Send Analytics To Sitecore configuration

  </div>
</div>
<div style="width:49%;">
  <div><img src="https://docs.coveo.com/en/assets/images/c4sc-v5/coveo-for-sitecore-data-source-config.png"  alt="Coveo for Sitecore analytics component data source with custom values for the Search Hub and Coveo Usage Analytics custom metadata fields"/></div>
  <div class="figure-caption">
  
Coveo for Sitecore Analytics configuration

  </div>
</div>
</div>
+

A website visitor then opens your search page and performs a search query with `samsung` as the keyword.

**Generated HTML**:

```html
<div class="CoveoSendAnalyticsToSitecore"
data-sc-analytics-endpoint-uri="/coveo/rest/v6/analytics">
</div>
```

**Generated call to Sitecore Analytics**:

![Call to Sitecore | Coveo for Sitecore 5](https://docs.coveo.com/en/assets/images/c4sc-v5/sample-call-to-sitecore.png)