Google Tag Manager AI Chatbot

Install your Nivon AI chatbot through the Google Tag Manager container your site already loads. Paste the code into a Custom HTML tag, preview it and publish, without editing your site's code.

Google Tag Manager logo

What you can do

No site code to edit

Add the chatbot through your existing GTM container instead of changing your site's HTML.

Code ready to paste

The Integration tab gives you Tag Manager code with your published key and chatbot ID already filled in.

Preview before it goes live

Check that the tag fires and the widget appears in Tag Assistant before you publish.

Change the chatbot, not the tag

Model, tone, appearance and knowledge are managed in Nivon, so everyday changes don't need a new tag.

Nivon Google Tag Manager integration

Install with Google Tag Manager in three steps

You need a Google Tag Manager container that already runs on your site, and a Nivon agent trained on your content.

01

Copy the Tag Manager code

In your agent's Integration tab, under Add the code manually, select Tag Manager and copy the code.

02

Create a Custom HTML tag

In your GTM container, add a new tag, choose Custom HTML, paste the code and set the trigger to All Pages.

03

Preview and publish

Check the tag in Tag Assistant preview, then select Submit and Publish to make it live.

FAQs

Google Tag Manager (GTM) lets you add the Nivon chatbot to your website without editing its code. If your site already loads tags through a GTM container, you paste Nivon's Tag Manager code into a Custom HTML tag, publish the container, and the chat widget appears on every page the tag fires on.

How to add Nivon to Google Tag Manager

Before you begin

  • A Google Tag Manager container that's installed and published on your website, and access to it in GTM.
  • A Nivon agent that's configured and ready to receive conversations.

Step 1: Copy the Tag Manager code from Nivon

Log in to the Nivon dashboard, open your agent and go to the Integration tab. Under Add the code manually, select Tag Manager and copy the code shown there. It already includes your published key and chatbot ID, so paste it as it is.

Step 2: Create a Custom HTML tag

  1. In Google Tag Manager, open your container and select Tags, then New.
  2. Under Tag Configuration, choose Custom HTML.
  3. Paste the Nivon code into the HTML field.
  4. Under Triggering, choose All Pages. Use Initialization - All Pages instead if you want the widget to load as early as possible.
  5. Name the tag, for example "Nivon chatbot", and select Save.

Step 3: Preview and publish

  1. Select Preview, open your website in Tag Assistant, and check that the Nivon tag fires and the chat widget appears.
  2. Select Submit, then Publish, to make the change live.

Step 4: Test the chatbot

Open your website, open the chat widget and send a test message. Check that the right chatbot replies.

Use cases

  • Sites that already manage tags in GTM: add the chatbot alongside your analytics and marketing tags.
  • Teams without easy access to the site's code: marketing or support can install the chatbot from GTM.
  • Checking before rollout: use GTM's Preview mode to see the chatbot on your site before visitors do.

Troubleshooting

The widget doesn't appear

  • Check that the published GTM container runs on that page.
  • In Tag Assistant preview, check that the Nivon tag fires.
  • Check that you pasted the complete code from the Integration tab.
  • If you've set allowed domains, make sure the site's domain is on the list.

The widget appears a moment late

That's expected with GTM, because the widget loads after the container loads. Switch the tag's trigger to Initialization - All Pages to load it as early as possible.

The wrong chatbot appears

Check the chatbot ID in the code and compare it with the agent you meant to install. Copy the code again from that agent's Integration tab.

Good to know

  • You don't need to update the tag when you change your chatbot's model, tone, appearance or knowledge. Those settings are managed in Nivon.
  • The code includes your published key. If you regenerate the key in Nivon, update the tag with the new code from the Integration tab.
  • Prefer to add the script directly? See Installation Guides for HTML, React and Next.js, the WordPress plugin, or the Webflow guide, where you paste the same script into Footer code under Site settings > Custom code.

Get started

Great customer support starts with Nivon's AI chatbot

Build an AI customer support chatbot that learns your product, answers customers instantly in your team's voice, and is there for them 24/7.

Start for free
  • Set up in minutes
  • 95+ languages supported
Nivon dashboard for creating an AI chatbot agent