Kelp on Shopify Hydrogen and React storefronts
On Hydrogen and other React storefronts, Kelp runs server-side in your route loaders.
Recommended setup
- Run search and browse in server loaders, behind a small interface so the search provider can be swapped cleanly.
- Send analytics through a same-origin proxy on your own domain.
- Cache responses where it makes sense.
- Keep the
queryIdfrom each search so clicks, add-to-carts and purchases are attributed to it. Purchase events can come from a custom Shopify pixel.
Using the SDK
The optional @kelpclick/client SDK includes React bindings (KelpProvider, useSearch and useBrowse) for React 18 and later. The core search and analytics modules have no React dependency, so they also run in loaders and on the server.
Guides
Updated on: 04/12/2026
Thank you!