Add Olotalk to Ghost

Ghost has a built-in Code Injection area — paste the snippet into the Site Footer.

You’ll need your Assistant ID (ast_oltk_…) from your assistant’s Install step. New here? Start with the Quick start.


Install via Code Injection

In Ghost admin, go to Settings → Advanced → Code injection and paste the snippet into the Site Footer box:

<script
  src="https://cdn.jsdelivr.net/npm/@olotalk/assistant-loader@0/dist/loader.iife.js"
  data-olotalk-assistant-id="YOUR_ASSISTANT_ID"
  async
></script>
<html>
<head> … </head>
<body>
… your page …
target<script src="…/loader.iife.js" data-olotalk-assistant-id="…" async></script>
</body>
</html>
Paste the snippet into Ghost's Site Footer (Code injection). Wherever a platform puts it, the goal is the same: it loads just before the closing body tag.

Save. Site Footer code is added to every page, just before </body>.

Editing your own theme instead? Add the same <script> just before the closing </body> tag in your theme’s default.hbs.


Allow your domain

Add your live domain under your assistant’s Install domains. If you’re on a Ghost(Pro) *.ghost.io subdomain, add that too.


Verify

Open your published site and look for the chat launcher in the bottom-right. Then check your dashboard: the Install step’s Install status card shows Seen on yourdomain.com once the snippet loads — with a one-click fix if the domain isn’t allowed yet. Nothing there? See Troubleshooting.