Integrations & CMS

Live chat for Google Tag Manager: install in 5 minutes

How to add Sana Chat to a Google Tag Manager website: with a “Custom HTML” tag.

What you need

A Sana Chat account and the embed code: panel → “Sites and widget” → code. It looks like this:

<script src="//sana-chat.com/w/SITE_KEY" async></script>

Installing on Google Tag Manager

  • create a “Custom HTML” tag and paste the embed code;
  • set the trigger to “All Pages”;
  • save and click “Submit” → “Publish”.

Check

Open your site in a new tab — the chat button appears in the bottom right corner. Send a test message: it arrives in the panel under “Conversations”. The widget updates itself; you never need to touch the code again.

Analytics events

The JS API can push chat events to the dataLayer — see the example in “Widget JavaScript API”.

Next steps

Connect messengers (WhatsApp, Telegram, VK, MAX, Instagram, email and website chat), switch on Sana AI and invite your team — all in one panel.

Questions and answers

Will the chat slow down my Google Tag Manager site?

No. The code loads asynchronously after your page and weighs under 40 KB compressed. It has practically no effect on loading speed or PageSpeed scores.

Do I need to update the code after changing the chat?

No. The embed code never changes: new features, texts and widget settings arrive by themselves within five minutes.

Can I add the chat to several websites?

Yes. Create a separate widget for each site under “Sites and widget”: each has its own key, greeting and agents, and all conversations arrive in one inbox.

The chat did not appear — what should I check?

Make sure the code is on the published version of the site before </body>, then clear the CMS and browser cache. Still nothing? Write to us in the chat and we will help within minutes.

Still have questions?

Write to us in the chat — we reply within minutes and help you set everything up. Or leave a message on the contacts page.

Related