IntegrationsShopify

Chat Widget Tutorial

This guide adds the floating Octocom chat widget to a Shopify store using the app embed — no code and no script tag required.

There are two steps, and both are required: enable the app embed in your theme, then whitelist your storefront domain in the Octocom dashboard. Enabling the embed on its own is the most common reason the widget doesn't appear.

Before you start

This only works on Shopify-hosted storefronts

The app embed is injected by your Shopify theme, so it only runs on pages Shopify renders — your .myshopify.com storefront and any custom domain pointed at it.

If your storefront is a headless / custom build (Hydrogen, Next.js, or any site that only uses Shopify for checkout or order data), the theme editor has no effect on it. Add the widget with a script tag instead, following Launch Chat Widget.

Stores often run both: for example a custom site on example.com that syncs orders to a Shopify storefront on us.example.com. In that setup the app embed covers us.example.com only, and example.com needs the script tag. Not sure which you have? Open the page and view source — Shopify-rendered storefronts include cdn.shopify.com asset URLs.

1. Enable the app embed

  1. Navigate to your Shopify store's admin page.

  2. Under "Sales channels" click "Online store".

  3. Select the theme you'd like to add the widget to, then click "Customize".

  4. In the left sidebar, click "App embeds".

  5. Enable the widget.

  6. Save your theme.

Octocom isn't listed under App embeds

The app embed only appears in the theme editor once the Octocom app is installed on that specific store and enabled for it. Finding Octocom in the Shopify App Store with only an "Open" button means it's installed on your account but not available to this theme yet.

If you run several Shopify stores, each one needs this separately. Contact your account manager and they can enable it for all of your stores at once.

2. Whitelist your storefront domain

The widget will only render on domains you have explicitly allowed. This step applies to Shopify exactly as it does to any other site — the app embed loads Octocom, and Octocom then checks the domain before showing anything.

  1. Go to the Octocom Dashboard.
  2. Navigate to Settings → Channels → Web Chat → Deployment.
  3. Add the domain your customers actually visit — the storefront domain shown in the browser address bar (for example example.com), not your example.myshopify.com admin domain.
  4. Enable deployment using the toggle, and click Save.

Octocom web chat settings

Each hostname needs its own entry

Domains are matched by exact hostname, so every storefront hostname you want the widget on has to be listed separately:

  • example.com and us.example.com are different hostnames — list both.
  • www.example.com and example.com are treated as the same, so you only need one of them.
  • Locale paths on one hostname (example.com/us/, example.com/nl/) are all covered by that single entry.

3. Verify it works

Open your storefront in a private/incognito window and confirm the chat launcher appears. If it doesn't:

What you seeLikely cause
Widget missing on a Shopify pageDomain not whitelisted, or deployment toggle off — recheck step 2
Widget missing on one domain but working on anotherThat hostname isn't in the Deployment list
Widget missing on your main site, working on the Shopify oneMain site is a custom storefront — use the script tag guide
Octocom missing from App embedsApp not enabled for that store — see the callout in step 1
Widget appears in the theme editor preview but not liveTheme changes weren't saved, or you published a different theme

You can also restrict the widget to specific pages (for example /faq or /contact) from the same Deployment tab.

On this page