Add the UpChat snippet to your Shopify storefront theme, then test it on the published store. You need permission to edit the theme.
Step 1 — Copy your UpChat installation code
- Sign in to your production UpChat account and open the bot you want on the site.
- Go to Management → Bot Details.
- Scroll to Embed code and select Direct.
- Select Copy.

Use the code copied from your own production bot. The screenshot uses Demo Bot on staging; its bot ID and staging widget address are examples, not code to copy into a customer website.
Step 2 — Add the code to your theme
- In Shopify, open Online Store → Themes.
- Duplicate your theme so you have a backup before editing code.
- Open the intended theme’s actions menu and choose Edit code.
- Open layout/theme.liquid.
- Find the closing
</body>tag and paste the complete UpChat snippet immediately before it. - Save the file. If you edited an unpublished theme, preview it and publish that theme when ready.
Do not delete the existing closing tag or surrounding theme code. If your store uses a custom layout, have your theme developer confirm which layout serves the pages you want to cover.
Shopify’s theme-code guide explains how to reach the editor and save changes. Theme updates can require you to reapply a code customization.
Storefront installation and product integration are separate
This installs a storefront chat widget. It does not connect your Shopify catalog, synchronize orders, or add the widget to checkout. UpChat’s Integrations page currently marks its general Shopify integration Coming soon, while Knowledge Base → Products has a separate Shopify inventory connection.
Verify the installation
Open the published site in a normal browser tab, open the widget, and send a test question. Check at least the home page, a second page, and a phone-sized view.
Back in Bot Details, select Check my site now. If UpChat reports that the website has code for a different bot, compare the installed bot ID with the code you just copied.
For a missing widget, see Troubleshooting: Your Widget Is Not Showing. The widget only appears on the domain saved as Website URL on Bot Details, so use your site’s main public domain. Publish your site changes before relying on a preview result, and avoid installing the snippet twice through different methods.