Before you start
- A Ghost site, on Ghost(Pro) or self-hosted, and access to Settings in Ghost Admin.
- Your code from your assistant's Widget page.
Steps to add your Ghost chatbot
- Sign in, open your assistant's Widget page and copy the one line of code shown there. It starts with <script and ends with </script>.
- In Ghost Admin, go to Settings, then Advanced, and open Code injection.
- Paste your code into Site footer, not Site header. Ghost puts footer code just before the closing </body> tag on every page.
- Save your changes.
- Open your website in a new tab and look for the chat bubble in the bottom-right corner, or bottom-left if you've moved it in Settings. Your Widget page shows "Live on your site" once it has been seen there.
Platform steps checked on November 13, 2026 against Ghost Help: Adding styles with code injection
Good to know
- Ghost recommends Site footer for scripts so they load properly. Site header is better kept for styles and meta tags.
- Ghost also has code injection for a single post or page, in the post settings in the editor. Use that only if you want the chat on that one page.
- The chat only shows on your own domain and any you add under "Where it can appear" on your Widget page. If your site also answers on another address, add it there.
Can't edit your website?
Every assistant has its own chat page. Link to it from your website's menu, your Google Business Profile, social media or email signature. Or use "Email this to my web person" on your Widget page to send the code to whoever runs your site.
Questions
Why isn't my Ghost code injection working?
Check you pasted the whole line, from <script to </script>, into Site footer and saved. Then look at your live site in a new tab. If it still doesn't show, your theme may be missing Ghost's {{ghost_foot}} helper, which is what outputs Site footer code; Ghost's own themes include it.
Should I use Site header or Site footer?
Site footer. Ghost recommends it for scripts, and it loads after your content, so your page appears first.
Do I need to edit my Ghost theme?
No. Code injection adds the line to every page without changing your theme files, so theme updates don't remove it.