Skip to main content

Products Searched (product_searched)

Purpose: Track whenever a user performs a search either from the header search bar or the on‑page search interface. When to Fire: After you receive the search API response, immediately log how many results were returned along with contextual details (search term, location, filters, etc.). Payload Schema:

Clarification: autocomplete suggestions

  • search_source: set this to the suggestion category key returned by your autocomplete API for the clicked item (e.g., "popular_search", "recent_search", "category", "search_suggestion", etc.).
  • used_suggestion: set this to the exact suggestion text the user clicked (e.g., "shirts", "jeans").
Example: