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:

NamePurpose
ms_visitoridThis cookie is used to identify a user/visitor uniquely.
searchstax_session_idThis cookie is used to uniquely identify a user session. In an  older toolkit (Legacy Vue2 accelerator), this cookie was named searchcookie).

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().