Add live chat to Ghost

Ghost has a Code injection setting for code that goes on every page. The snippet goes in the Site footer box.

Checked against Ghost'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 Ghost Admin, go to Settings → Advanced → Code injection.
  2. Paste the snippet into Site footer.
  3. Save.

The Site footer goes on every page and post. It isn't added to newsletter emails.

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. On Ghost(Pro), if people also visit the site on its ghost.io address, add that full address too, like yoursite.ghost.io.

Check that it works

  1. Open the site in a private window, so you aren't signed in as staff or a member.
  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.

Things to know

Ghost's own guide: ghost.org/help/code-injection-styles/

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.