Coveo Send Analytics To Sitecore

Warning
Legacy feature

This article pertains to the Coveo Hive framework which is now in maintenance mode.

Choose one of Coveo’s more modern, lightweight, and responsive libraries for any future search interface development. See the search interface Implementation guide for more details.

Coveo for Sitecore Specific Rendering 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 are required to enable sending Coveo analytics events to Sitecore xConnect.

  • You also need to add the Coveo for Sitecore Analytics rendering to your search interface to send analytics to Sitecore.

Insertion location

Coveo Hive

The Coveo Send Analytics To Sitecore rendering is an Allowed Control in the following placeholder(s): UI Header, Recommendations Components

Example insertion sequence for the Coveo Send Analytics To Sitecore rendering.

Coveo Hive SXA

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.

Example insertion sequence for the Coveo Send Analytics To Sitecore rendering.

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:

Coveo Send Analytics To Sitecore configuration

Coveo for Sitecore Analytics configuration

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

Generated 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