THIS IS ARCHIVED DOCUMENTATION
404 Errors on Coveo Usage Analytics Search Events
404 Errors on Coveo Usage Analytics Search Events
In this article
In this article
Symptoms
Click and Custom analytics events are sent to Coveo Analytics, but Search events are returning a 404 error.
Cause
The Coveo for Sitecore REST Analytics endpoint has a limited query string length value. If the URL length is higher than this value, it’s truncated and becomes no longer valid.
Resolution
There are two ways to fix this issue:
-
Upgrade at least to the September 2016 release of Coveo for Sitecore. This is the recommended option.
-
Manually modify the
web.configfile:-
Navigate to the
<sitecore instance>\Website\Coveo\restfolder and open theweb.configfile. -
Replace the content of the file with the following:
<?xml version="1.0"?> <configuration> <system.web> <httpRuntime maxQueryStringLength="32768" maxUrlLength="32768" /> </system.web> <system.webServer> <handlers> <add name="CoveoSearchEndpoint" path="*" verb="*" type="Coveo.SearchProvider.Rest.SitecoreRestHttpHandlerDispatcher, Coveo.SearchProvider.Rest" /> </handlers> <security> <requestFiltering> <requestLimits maxQueryString="32768" maxUrl="32768" /> </requestFiltering> </security> </system.webServer> </configuration>
-