Before you start
- Google Tag Manager already installed on your website, and permission to publish its container.
- Your agent ID, from your assistant's Widget page.
Steps to add your chatbot with a Custom HTML tag
- 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>.
- Find your agent ID in that line: the long code in quotes after data-business-id=.
- In Tag Manager, open your website's container and click Tags, then New.
- Click Tag Configuration and select Custom HTML.
- Paste the line shown under these steps into the HTML field and replace YOUR-AGENT-ID with your agent ID.
- Click Triggering and choose All Pages.
- Name the tag, such as "Chat assistant", and click Save.
- Click Submit, then Publish.
- 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.
The line to paste in step 5
It's the same chat script your Widget page shows, with your agent ID in the address instead of a data-business-id attribute. Tag Manager rebuilds each script it adds and leaves that attribute out, but it keeps the address.
<script src="https://app.chatlume.co/widget.js?id=YOUR-AGENT-ID" async></script>Platform steps checked on November 13, 2026 against Tag Manager Help: Custom tags
Good to know
- If your site uses Tag Manager to wait for cookie consent, the chat loads only when this tag is allowed to fire.
- If you can edit your site's footer, pasting the one line from your Widget page there works too, and doesn't depend on Tag Manager loading.
- Tag Manager's Preview shows whether the tag fired before you publish.
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 is the code different from the one on my Widget page?
Tag Manager rebuilds each script it adds and keeps only a few of its attributes, such as the address. Our usual line carries your agent ID in a data-business-id attribute, which it leaves out, so this version puts the ID in the address instead.
Do I need Google Tag Manager to add a chatbot?
No. If you can edit your site's footer or custom code settings, paste the one line there, as in our guide for any HTML website. Tag Manager helps when it's already on your site and editing the site itself is harder.