Articles on: Platforms & integrations

Adding Kelp search to a Shopify Liquid theme

Add Kelp search to any Online Store (Liquid) theme with one theme section and one JavaScript file. No npm or build step is needed.

Before you start

  • Catalogue sync is complete and your collection has products in it.
  • You have your Kelp search host, your collection name (usually products) and a search-scoped API key.

Steps

  1. Add the sections/kelp-search.liquid section and the assets/kelp-search.js file from the guide.
  2. In the theme editor, add the section to your search template or a custom page.
  3. Fill in the section settings: search URL, API key, collection and placeholder text.
  4. Check that product links match your product URL format. The default is /products/{handle}.
  5. Test a search, a facet click and a product click.

Good to know

  • Theme settings are visible in your page HTML, so only use a key scoped to search and events. To keep the key off your storefront, route requests through an app proxy you host.
  • Product clicks are tracked with the search's queryId so Kelp can attribute them. Purchase events need a customer event or pixel.
  • For meaning-based results, enable semantic search on the collection and send a semanticWeight with each search.

Full guide: Shopify Liquid

Updated on: 04/12/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!