- Introduction
- Step-by-Step Integration Guide
- Step 1: Set Up a Google Tag Manager Account
- Step 2: Obtain the Chatbot Integration Code
- Step 3: Log In to Google Tag Manager
- Step 4: Create a New Tag
- Step 5: Configure the Tag Settings
- Step 6: Paste the Chatbot Integration Code
- Step 7: Specify the Trigger
- Step 8: Set the Trigger
- Step 9: Save the Tag
- Step 10: Publish the Changes
- Step 11: Verify Chatbot Integration
- Conclusion
Introduction #
Integrating an AI chatbot with your website using Google Tag Manager (GTM) allows you to leverage the chatbot’s capabilities seamlessly. This guide provides a step-by-step process for setting up the integration.
Before You Begin: #
Ensure you have a Google Tag Manager account and have set up a GTM container for your website.
Step-by-Step Integration Guide #
Step 1: Set Up a Google Tag Manager Account #
- If you don’t have one, create a Google Tag Manager account at Google Tag Manager.
- Sign in using your Google account and follow the setup instructions for your GTM container.
Step 2: Obtain the Chatbot Integration Code #
- Open your AI chatbot project in Noem.AI.
- Navigate to the “Test and Deploy” section.
- Noem.AI will detect if you have Google Tag Manager installed and will send events accordingly.
- The default events include:
- ‘event’: ‘customEvent’
- ‘eventCategory’: ‘Chatbot’
- ‘eventAction’: ‘messageSent’ / ‘messageReceived’
- Customize events as needed by overriding the onMessageSent and onMessageReceived functions on your bot.
- Copy the chatbot integration code by clicking the “copy” icon in the top right corner.
Step 3: Log In to Google Tag Manager #
- Access your GTM account.
- Select the container for your website where you want to integrate the chatbot.
Step 4: Create a New Tag #
- Inside your GTM container, navigate to the “Tags” section in the left-hand menu.
- Click the “New” button to create a new tag.
Step 5: Configure the Tag Settings #
- Give the tag a descriptive name (e.g., “Chatbot Integration”).
- In the “Tag Configuration” section, click the pencil icon to edit.
- Under “Choose a tag type to begin setup,” select “Custom HTML”.
Step 6: Paste the Chatbot Integration Code #
- Paste the code you copied in Step 2 into the “HTML” field.
- Click “Save” to apply your changes.
Step 7: Specify the Trigger #
- In the tag configuration, navigate to the “Triggering” section.
- Click the pencil icon to edit the triggering settings.
- Click the “+” icon to add a new trigger.
Step 8: Set the Trigger #
- Choose the trigger type as “Page View” to control when the chatbot loads.
- For the trigger settings, select “All Pages” to make the chatbot appear on every page of your website.
- Click “Save” to apply your changes.
Step 9: Save the Tag #
- After configuring the tag settings and specifying the trigger, click “Save” to save your new tag.
Step 10: Publish the Changes #
- To make your chatbot integration live, click “Submit” at the top right of the GTM interface.
- Review the changes, then click “Submit” again to publish them.
Step 11: Verify Chatbot Integration #
- Within a few minutes, the chatbot should appear on your website.
- Verify its functionality by interacting with the chatbot.
Conclusion #
You have successfully integrated your AI-powered chatbot into your website using Google Tag Manager. Periodically review and update the chatbot configuration in your chatbot dashboard to maintain optimal performance and user engagement.
For support and assistance, visit our support portal: Noem.AI GTM Integration Documentation.
Leave a Reply