Site Search Cookie Usage
SearchStax Site Search Analytics uses cookies to track the user’s search behavior. This page contains FAQ information about Site Search cookie usage topics.
Analytics Cookies
Site Search Analytics uses the following cookies:
Name | Purpose |
ms_visitorid | This cookie is used to identify a user/visitor uniquely. |
searchstax_session_id | This cookie is used to uniquely identify a user session. In an older toolkit (Legacy Vue2 accelerator), this cookie was named searchcookie ). |
How to Stop Cookie Generation
With the Search UI App v3 (deprecated), it was possible to stop cookies from being generated by modifying a single line of code in your custom search webpage from:
const session = getOrSetCookie('searchcookie');
To:
const session = null;
The new UI Kits v4 have the same ability, but you must invoke it differently.
window.onload = function () {
var cookieNamesToCheck = ["searchcookie", "ms_visitorid"];
if (isAnyCookieRejected(cookieNamesToCheck)) {
searchstax.setCookiesDisabled()
}
};
The section you previously set to null should now be searchstax.setCookiesDisabled()
.