Skip to main content

Shopify Integration

Add Hunch AI chat to your Shopify store.

Adding the Embed Code

  1. From your Shopify admin, go to Online Store > Themes
  2. Click Actions > Edit code
  3. Find and open theme.liquid (in the Layout folder)
  4. Find the closing </body> tag
  5. Paste the Hunch embed code before it:
<script src="https://cdn.hunchbank.com/embed.js" data-api-key="YOUR_API_KEY"></script>
  1. Click Save

Shopify Considerations

  • Works with all Shopify themes (Dawn, Brooklyn, Venture, etc.)
  • The widget appears on all pages including product, cart, and checkout
  • No impact on page load performance
  • Works with Shopify 2.0 and older themes

Customizing for Shopify

You can configure the chat widget specifically for your store:

  • Set a greeting related to your products
  • Configure triggers to appear on product pages
  • Use exit intent to recover abandoned carts

Testing

  1. Save your changes
  2. Visit your storefront in a new browser window
  3. The chat widget should appear in the bottom corner

Troubleshooting

  • Not showing: Make sure the code is placed before </body> and you saved the file
  • Theme issues: Some themes may have conflicting CSS - check browser console for errors
  • Multiple stores: Add each Shopify store as a separate website in your Hunch dashboard