Page view analytics showing as invalid

In this article

Symptoms

The Data Health (platform-ca | platform-eu | platform-au) page shows all recent pageview events as invalid.

Invalid page view events in Data Health report | Coveo

Cause

If you’re still referencing version 1.0 of the coveoua.js file in the Coveo Page View Analytics rendering, your page view events are no longer being recorded properly.

Resolution

The issue is resolved in the Coveo for Sitecore May 9, 2023 release (5.0.1227.1). We recommend you upgrade to this release. If you need to upgrade over multiple versions, Coveo has a procedure to streamline the process.

Workaround

As a quick fix, you can upgrade to version 2 of the coveoua.js file.

To upgrade coveoua.js to version 2

  1. Open the <SITECORE_INSTANCE_ROOT>\Views\Coveo Hive\Analytics\Coveo Page View Analytics.cshtml file in a text editor.

  2. Locate the following line:

    })(window, document, 'script', 'https://static.cloud.coveo.com/coveo.analytics.js/1.0/coveoua.js');
  3. Replace the version number as follows:

    })(window, document, 'script', 'https://static.cloud.coveo.com/coveo.analytics.js/2/coveoua.js');
  4. Save your changes.

  5. Repeat the process for any custom renderings you may have created based on the Coveo Page View Analytics rendering.