Shopify Integration
Add Hunch AI chat to your Shopify store.
Adding the Embed Code
- From your Shopify admin, go to Online Store > Themes
- Click Actions > Edit code
- Find and open
theme.liquid(in the Layout folder) - Find the closing
</body>tag - Paste the Hunch embed code before it:
<script src="https://cdn.hunchbank.com/embed.js" data-api-key="YOUR_API_KEY"></script>
- 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
- Save your changes
- Visit your storefront in a new browser window
- 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