Articles on: Analytics & customer data

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

  1. Search responses, and most browse responses, include a queryId.
  2. Your storefront keeps it and sends it with later product click and add-to-cart events.
  3. 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

Was this article helpful?

Share your feedback

Cancel

Thank you!