Autocomplete Clicks (ac_click)
Purpose:
Track when a user selects or clicks on a suggestion in the autocomplete dropdown whether it’s a recent search, popular search, product recommendation, category, or other suggestion type.
When to Fire:
In the click handler for your autocomplete suggestions, immediately after the user selects one.
Payload Schema:
| Field | Type | Description |
|---|---|---|
ac_source | string | Type of suggestion clicked (e.g. "search_suggestion", "popular_search", "recent_search", "category", "product", "content"). |
used_suggestion | string | The actual suggestion text or identifier the user clicked (e.g. "jeans"). |
search_term | string | The user’s input at the time of click (e.g. "shi"). |