Search analytics and attribution
Kelp tracks the journey from search to click, add to cart and purchase, so you can see which searches drive revenue.
How attribution works
- Search responses, and most browse responses, include a
queryId. - Your storefront keeps it and sends it with later product click and add-to-cart events.
- Kelp credits those actions to the search that surfaced the product.
Events Kelp tracks
- Search and browse:
search,collection_viewed - Product:
product_viewed,product_clicked,product_wishlisted,product_added_to_cart - Conversion:
purchase - Session:
session_started - Email:
email_subscribed,email_unsubscribed
Good to know
- Events go to your analytics host, not your search host, and are sent in batches.
- The SDK fills in session, user and timestamp fields for you. Direct API callers must send them.
- Send add-to-cart events when the add succeeds, not when the button is clicked.
Developer reference: Events / analytics API
Updated on: 04/12/2026
Thank you!