Deploy AI Agent with Google Tag Manager (GTM)

1. Sign in to your Google account.

2. Go to the Google Tag Manager home and click on the Create Account button on the right.

Go to the Google Tag Manager home and click on the Create Account button on the right.

3. Enter the account and container name. The container holds all your tags, such as the Google Analytics tag, Google Ads tag, or ChatBot tag. Choose the target platform to web and click on the Continue button.

Enter the account and container name

4. Read through the GTM Terms of Service, click Yes to accept them, and continue.

5. You’ll get a container with a code snippet. Copy the code and paste it into every page of your site in the recommended places.

container with a code snippet

6. Click Ok to close the code snippet box and finish setting up the GTM manager and your first container.

Adding the ChatBot tag to your website

1. Go to your chatbot flow and click on the integrations icon. Then click on the “Connect” button for the chat widget integration.

Go to your chatbot flow and click on the integrations icon

2. Go to the Publish section in the chat widget integration screen.

Go to the Publish section in the chat widget integration screen

3. Click on the Copy minify code button.

Click on the Copy minify code button

4. In the Google Tag Manager Home, click on the New Tag tile.

In the Google Tag Manager Home, click on the New Tag tile

5. Click on the Tag Configuration tile and select Custom HTML from the tags list.

Click on the Tag Configuration tile and select Custom HTML from the tags list

6. Paste the ChatBot tracking code to the HTML field.

Paste the ChatBot tracking code to the HTML field

7. Click on the Triggering tile and select All pages from the tags list.

Click on the Triggering tile and select All pages from the tags list

8. After you add the trigger, hit the Save button on the right.

After you add the trigger, hit the Save button on the right

9. Name your tag and click Save.

Name your tag and click Save

10. Once you’re back in GTM’s home, click on the Publish button to apply the changes.

Once you’re back in GTM’s home, click on the Publish button to apply the changes

Sample KENYT.AI GTM CODE –
BOTID is the only variable.

<script>

  (function() {

    var el = document.createElement('script'); el.setAttribute('src', 'https://www.kenyt.ai/botapp/ChatbotUI/dist/js/bot-loader.js');

el.setAttribute('type','text/javascript');

el.setAttribute('data-bot',BOTID); document.body.appendChild(el);

  })();

</script>

What are your feelings

Try Kenyt AI Assistant FREE for 30 Days

Exclusive: Free WhatsApp Campaigns for First 25 Sign-Ups!

Wait! Don’t Miss Out on the
Future of AI-Driven Engagement!

Your competitors are already transforming their business with AI Agents. Don’t fall behind. Get a personalized demo to see how Kenyt.AI can give you the edge.

Trusted by over 600+ leading companies

Trusted by over 600+ leading companies