Search tracking
Ecommerce Search tracks user searches to gather data for its dashboard. This data includes details from the search requests and results. The collected information is used to create reports on how users search.
Sampling
Collecting metrics from search queries comes at a performance cost. To mitigate this, search tracking is sampled to minimize the impact on system performance. The metrics displayed on the dashboards are then adjusted based on the sample percentage. This means that the numbers you see are statistical approximations that are designed to be close to the actual numbers, providing a reliable representation without the full performance overhead.
Tracking sessions
For deeper analysis, each search request should include a session ID. This ID links actions taken by the same user within a short period (like 30 minutes). A session ID differs from a user ID. A user ID lasts longer, while a session ID is short-lived and only for a specific session.
Session IDs aren’t created or managed by Ecommerce Search. They must be stored locally (in the browser) and should follow these guidelines:
- Create a session ID when someone enters the site and doesn’t have one.
- Store the session ID in sessionStorage to make sure it's deleted at the end.
- Do not set an expiration time. Delete it only when the session ends.
Information
Session IDs are optional, but are a requirement for the generation of findability reports.