Add live chat to Shopify

On Shopify, the snippet goes into your theme's main layout file, theme.liquid. Every storefront page uses that file, so one paste covers the whole store.

Checked against Shopify's help pages in October 2026.

Before you start

HTML
<script>window.$pidge = []; window.PIDGE_WEBSITE_ID = "YOUR-WEBSITE-ID";</script>
<script src="https://app.pidge.chat/client/l.js" async></script>

Your own copy is in the Pidge inbox under Websites, in Code for your website, with your website ID already filled in. Copy it from there.

Add the snippet

  1. In your Shopify admin, go to Online Store → Themes.
  2. Next to your current theme, click the … button and choose Duplicate. This gives you a copy to go back to if something goes wrong.
  3. Next to the current theme again, click … and choose Edit code.
  4. In the Layout folder, open theme.liquid.
  5. Find </body> near the end of the file. Ctrl+F (Cmd+F on a Mac) helps. Paste the snippet on the line just above it.
  6. Click Save.

List your domains in Pidge

The chat only connects on domains you've listed for the website. In the inbox, open Websites and put each domain on its own line in Domains. Subdomains are included, so example.com also covers www.example.com.

Add your own domain, like example.com, and your store's Shopify address, like yourstore.myshopify.com. Use the full Shopify address. Listing just myshopify.com would match every Shopify store, not only yours.

Pages it doesn't reach

The chat does show on your home page, collections, products, cart, pages and blog.

Check that it works

  1. Open your store in a private window. If it's password protected, enter the password first.
  2. The chat bubble should be in the bottom corner. Send yourself a message and answer it from the inbox.
  3. In the inbox, the website's Not installed yet label goes away after the first visit from a listed domain.

If the bubble shows but the chat won't connect, the domain you're on isn't in the website's list in Pidge. If there's no bubble at all, the snippet isn't on the page, or the platform is still serving an older copy of it.

Later on

The snippet lives in one theme. If you switch themes, or install a new version of your theme, open theme.liquid in the new one and add it again.

Shopify's own guide: help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code

Other platforms

Stuck, or did a step look different on your screen? Tell us in the chat on this page.

Get your snippet

Start free

The free plan covers one website and two people replying. No card needed.