THIS IS ARCHIVED DOCUMENTATION
404 Errors on Coveo Usage Analytics Search Events
404 Errors on Coveo Usage Analytics Search Events
Coveo for Sitecore (September 2016)
Symptoms
Click and Custom analytics events are sent to Coveo Usage Analytics (Coveo UA), 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.config
file:-
Navigate to the
<sitecore instance>\Website\Coveo\rest
folder and open theweb.config
file. -
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>
-