Step 1: Default Behavior for Session Tracking
By default, session tracking is turned on. If you are integrating with a session consent management system, you will want to have session tracking off by default. The process of setting this default behavior depends on how your search experience has been created.
- If you are utilizing the Search HH Theme, set
sessionTrackingEnabled
tofalse
in theglobal_config.json
file If you are building with the Search UI SDK, set
sessionTrackingEnabled
tofalse
when you initialize Search in JavaScript:ANSWERS.init({ experienceKey: 'europeanAnswers', experienceVersion: 'PRODUCTION', locale: 'es', sessionTrackingEnabled: false });
Note
If you plan to toggle session tracking, it is important that session tracking is turned off by default. If it is turned on to start, then turned off dynamically, session cookies may still be used to store and pass a session ID; we do not attempt to interfere with the browser’s cookies once they have already been set.
<% elem.innerText %>