Skip to main content

Search Analytics

Search Analytics

Track query quality, top products, and zero-result trends for search optimization.

Audience: Search relevance and merchandising teams improving discovery performance.

Critical: Organization-level search analytics endpoints are under /api/v1/analytics/search/*; site-level operational query tooling is under /api/v1/sites/:siteId/search/analytics/* in Modules > Search.

Who This Page Is For

Use this page for KPI-level search diagnostics across one site or the full organization.

Quick Start (2-5 Minutes)

1

Get top search queries

Review query demand and click behavior.

GET /api/v1/analytics/search/top-queries?siteId=SITE_ID&days=30&limit=50
2

Get top clicked products

Identify products driving engagement from search.

GET /api/v1/analytics/search/top-products?siteId=SITE_ID&days=30&limit=20
3

Get zero-result trends

Measure missed intent and monitor improvements over time.

GET /api/v1/analytics/search/zero-results?siteId=SITE_ID&days=30&limit=100
4

Prioritize remediation

Take highest-volume misses into zero-results resolution workflow.

Use /modules/search/zero-results operational endpoints.
5

Correlate with funnel metrics

Tie query improvements to conversion movement.

Compare with /analytics/funnels/:siteId?steps=search_query,product_click,add_to_cart,purchase.

Search analytics endpoints

GET /api/v1/analytics/search/top-queries
GET /api/v1/analytics/search/top-products
GET /api/v1/analytics/search/zero-results

Required Fields / Minimum Payload

FieldRequiredTypeUsed by eventsDescription
siteIdOptionaluuidAll endpointsScope to one site; omit for organization aggregate.
daysOptionalnumberAll endpointsLookback window.
limitOptionalnumberAll endpointsMaximum number of records returned.

Event or Endpoint Decision Matrix

ScenarioUse ThisWhy
Need demand and CTR signal by query/analytics/search/top-queriesPrimary query performance diagnostics.
Need product-level search click winners/analytics/search/top-productsSupports merchandising decisions.
Need missed-intent visibility/analytics/search/zero-resultsHighlights search coverage gaps.
Need operational remediation action/modules/search/zero-results endpointsSupports resolve workflow with status tracking.
Need search-to-conversion context/analytics/funnels/:siteId?steps=search_query,product_click,add_to_cart,purchaseConnects search behavior to downstream conversion.

Common Errors and Fixes

Top queries list looks noisy

Cause: Limit too high without query normalization post-processing.

Fix: Use narrower limit and normalize query variants in downstream analysis.

Top products missing expected SKUs

Cause: Search click events not consistently emitted from UI.

Fix: Verify click instrumentation for all result card interactions.

Zero-results remains high despite fixes

Cause: Resolutions not applied to highest-impact terms or catalog still missing products.

Fix: Prioritize by occurrences and validate post-resolution behavior.

Org-level metrics hide site anomalies

Cause: siteId omitted when one-site issue is being investigated.

Fix: Always include siteId during incident triage.

Production Checklist

  • Search KPI dashboards include top-queries, top-products, and zero-results together.Required
  • siteId filters are used for site-specific incident analysis.Required
  • Zero-result remediation backlog is tied to query volume.Required
  • Search click instrumentation is validated regularly.Required
  • Search funnel trend is checked after each major ranking change.Required

Next Steps