Add Olotalk to HubSpot CMS

HubSpot’s website settings include a site-wide footer HTML field for hosted pages.

You’ll need your Assistant ID (ast_oltk_…) from your assistant’s Install step, and a HubSpot plan that includes hosted website/landing pages (Content Hub or Marketing Hub). New here? Start with the Quick start.

Looking for the HubSpot CRM integration, syncing captured leads into contacts and deals? That’s separate from installing the assistant, see Leads & conversions → HubSpot.


In HubSpot, go to Settings → Content → Pages. In the Templates area, paste the snippet into the Site Footer HTML field (not Site Header HTML), then Save:

<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 the Site Footer HTML field. Wherever a platform puts it, the goal is the same: it loads just before the closing body tag.

To apply it to one domain only, pick that domain under Choose a domain to edit its settings and use Override default settings.

Site Footer HTML applies to HubSpot-hosted website and landing pages. Blog posts and knowledge base articles have their own separate footer-HTML fields, set those too if you run the assistant there.


Allow your domain

Add your live domain under your assistant’s Install domains. HubSpot’s system domain is *.hs-sites.com, add that if you serve pages from the default HubSpot subdomain.


Verify

Open a published HubSpot page 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.