Visitor ID
A usage analytics (UA) visitor ID uniquely identifies a user in a search interface, whether they’re authenticated or not.
The visitorId
query parameter is deprecated and has been replaced by the clientId
in newer versions of the Coveo UI libraries.
For compatibility, the new first-party cookie and local storage values are still named coveo_visitorId
.
The visitor ID can be manually specified or automatically generated. In older versions of the Coveo JavaScript Search Framework, the visitor ID is generated by Coveo UA and stored in a non-expiring third-party cookie, so it can be used to track individual users across multiple visits. However, the use of third-party cookies has also been deprecated.
The visitor ID is distinct from the visit ID, which does expire, and the user ID, which is automatically attributed and is used to track authenticated users. It’s also distinct from the client ID, which takes precedence over the visitor ID when both are present.
For more information, see: