Shopify: Automatically tracked when using Shopify’s native search functionality.
JavaScript
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| searchTerm | string | Yes | The search query entered |
| resultsCount | number | No | Number of results returned |
| items | array | No | Top products in search results |
When to Fire
- Search results page load
- Predictive search dropdown display
- “No results” page (with
resultsCount: 0)
Related Events
- view_content — When clicking on a search result
- view_item_list — For displaying search results as a list