Add Olotalk with Google Tag Manager
Google Tag Manager installs Olotalk on any site without theme edits — as long as your GTM container is already on your pages.
You’ll need your Assistant ID (ast_oltk_…) and a GTM container already installed on your site. New to Olotalk? Start with the Quick start.
Create a Custom HTML tag
In Google Tag Manager, go to Tags → New → Tag Configuration → Custom HTML and paste this:
<script>
window.OlotalkConfig = { assistantId: 'YOUR_ASSISTANT_ID' };
</script>
<script
src="https://cdn.jsdelivr.net/npm/@olotalk/assistant-loader@0/dist/loader.iife.js"
async
></script>
Leave Support document.write unchecked. Under Triggering, choose All Pages (Page View). Then Save and Submit to publish the container.
Why the OlotalkConfig form? Some tag managers and sanitizers drop unknown data-* attributes. Setting window.OlotalkConfig first and loading the bare loader doesn’t depend on attributes, so it’s the most portable way to configure Olotalk inside GTM. (The data-olotalk-assistant-id attribute form works too if you prefer it.)
Consent mode
If your tags wait behind a consent banner, the assistant loads only after the visitor consents and the trigger fires. Keep the tag on an All Pages trigger and set the consent state you want it to respect.
Allow your domain
The assistant runs on whatever site hosts your GTM container — add that site’s domain(s) under your assistant’s Install domains.
Verify
Use GTM’s Preview mode to confirm the tag fires, then open your live 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.