Updated on September 25, 2023

Below is a simple guide for users who have integrated a chatbot to their website and now want to track its performance. We are going to integrate Google Analytics with a chatbot built using Kommunicate’s Kompose chatbot builder.

Before we dive in, let’s see why its important to integrate Google Analytics with your chatbot.

6 Reasons to integrate Google Analytics to your chatbot

Here are 6 reasons why you should incorporate Google Analytics with your chatbot

1. Chatbot performance measurement:

 Integrating Google Analytics with your chatbot can let you measure the performance of your chatbot, including the number of conversations,  average length of a conversation, number of users who interact with it, etc. With this information in place, you can measure how effective the chatbot is, and also identify areas of improvement.

2. Data Security and Privacy: 

One of the foremost reasons for incorporating Google Analytics to your chatbot is that GA prioritizes data encryption and confidentiality. All the data that is transmitted between GA and your chatbot is encrypted using industry standard protocols, such as SSL/TLS. Google is very particular about preventing unauthorized access to your data. Methods like these ensure that your information is secure during transmission

3. Personalize interactions:

When you integrate Google Analytics with your chatbot, you have the ability to personalize chatbot interactions by using data to segment users. Once you achieve user segmentation, you can deliver targeted messages. This segmentation can be on the basis of the user’s interests, location, purchase history, etc. Based on each segment, you can deliver different messages that will be relevant to that particular user.

4. Know more about who is using your chatbot

Getting to know your target audience is an important step in creating a chatbot that meets the needs of the customer. With GA integration, you can get better insights as to who is using your chatbot, their demographics, purchase history and interests. This is all vital information for you to provide tailored content to each user.

5. Identify trends of chatbot usage

When you integrate Google Analytics with your chatbot, it lets you collect data such as what are the times that users are most active on your bot, what are their FAQs etc. It can also give you a clue as to which keyword they are using frequently. With all this information, you can optimize your chatbot for the best possible results.

6. Improve the content of the chatbot

With Google Analytics integration, you can identify which messages your chatbots send are the most effective. You can measure the CTR of different messages or the number of times users ask follow up questions. This will help you create more engaging and informative content.

Now that we know how a Google Analytics integration can vastly benefit you, let us see how you can build a chatbot using Kommunicate and then integrate Google Analytics 4.

How to build a chatbot using Kommunicate and integrate it with GA4

Building a chatbot has never been easier. Kommunicate’s Kompose chatbot builder is a GUI bot builder. Kompose is easy to use, and you can master it without any coding skills.

We have summarized all the steps into this quick video here:

Step 1: Go to Bot integrations section:

Login to the Kommunicate dashboard. If you do not have a Kommunicate account, you can sign up for free. Navigate to the ‘Bot Integration’ section. Under the “Bot Integrations” section click “Create a bot with Kompose(Chatbot Builder)”.

Create a bot

In the ‘Bot profile’ page, Set up your Bot by providing Bot Name & Language then “Save and proceed”.

Bot name

The next page is the ‘Human handoff’ section, where you can enable the ‘Automatic bot to human handoff’ setting, and click the “Finish bot setup” button.

Disable feature

Step 2: Go to Manage Bots

After the bot setup is done, go to the Manage bots under the Bot section. Click on the Go to Bot Builder.

Go to bot builder

Step 3: Create a welcome message for your chatbot

After creating your first bot, you’ll be transferred to Kommunicate Flow Designer. By default, we’ve already prepared a basic conversation tree there to help you get going.

Flow designer

Step 4: Integrate Google Analytics  

Once your bot is ready, you can now integrate it with Google Analytics. Head on over to the integrations section and “Automation and Analytics.” Now, select Google Analytics.

Integrate Google Analytics

You will now have to enter the Google Analytics tracking ID in the next page. 

Enter Tracking ID

To obtain the Tracking ID, go to Google Analytics and “Admin View.”  Then select Data Streams from the list of items and select your traffic source (In our case, it was the Kommunicate website.)

You will get the Web Stream Details like the screenshot below:

Copy measurement ID

The measurement ID mentioned here is the tracking ID.

Now that you have integrated Google analytics with your chatbot, let us look at specific Use cases for Google Analytics.

Setting up Events:

Events allow you to measure user interactions on your app or website. For instance, if someone loads a page or clicks a link, it is recorded as an event. You can learn more about events in this detailed blog post here.

Here is a list of events, their triggers, and their labels, when you integrate Google Analytics with Kommunicate’s chatbots. Please note that these are click events.
Events to send to Google Analytics are as per GA4.

When to triggerEventCategoryEventActionEventLabelEventValue
On message sendKommunicate_widgetkm_widget_message_sentMessage Sent 
On click of FAQ menuKommunicate_widgetkm_widget_faq_clickFAQ Menu 
On click of greeting message notificationKommunicate_widgetkm_widget_greeting_message_clickChat Widget Open 
On click of notificationKommunicate_widgetkm_widget_notification_clickNotification 
On click of ‘Show resolved’Kommunicate_widgetkm_widget_resolve_clickShow Resolve 
On click of ‘Start New Conversation’ or starting new conversation through codeKommunicate_widgetkm_widget_start_new_conversationConversation Start 
On click of attachment iconKommunicate_widgetkm_widget_send_attachmentAttachment Icon Click 
On click of voice iconKommunicate_widgetkm_widget_voice_inputVoiceInput 
On click of location iconKommunicate_widgetkm_widget_location_shareLocation Share 
On click of ‘Rate this conversation’Kommunicate_widgetkm_widget_CSAT_startedRating Conversation 
On click of rate conversation emoticons – all 3Kommunicate_widgetkm_widget_ratings_conversationCSAT Rate Poor, CSAT Rate Average, CSAT Rate Great
put it depending on which one is selected
1, 5, 10 based on selected rating
On click of ‘submit your rating’Kommunicate_widgetkm_widget_CSAT_submitCSAT Submit 
On click of close ‘x’ iconKommunicate_widgetkm_widget_closeChat Widget Close 
On chat widget open, it can be by click or through codeKommunicate_widgetkm_widget_openChat Widget Open 
On click of ‘Restart this conversation’Kommunicate_widgetkm_widget_restart_conversationConversation Restart 
On click of Rich MessageKommunicate_widgetkm_widget_rich_message_button_clickRichMessage Button Click 

You should ensure that the  GA4 ID which is present in the website is the same as the one we have entered in the dashboard.

Users can see the live events under Debug view in GA4 or under “Real Time” in reports.

And there you have it. Integrating Google Analytics with Kommunicate’s Chatbot. Do try it out and let us know what you think about it. If you want to add more events to this list, reach out to us at support@kommunicate.io and we will be happy to oblige. Happy building.


At Kommunicate, we envision a world-beating customer support solution to empower the new era of customer support. We would love to have you on board to have a first-hand experience of Kommunicate. You can signup here and start delighting your customers right away.

Write A Comment

Close

Eve from Kommunicate

Experience Your Own Chatbot!

You can now experience creating your very own chatbot! Just enter your URL and get started with just a click.

Create Your Chatbot Now!

You’ve unlocked 30 days for $0
Kommunicate Offer

Upcoming Webinar: Conversational AI in Fintech with Srinivas Reddy, Co-founder & CTO of TaxBuddy.

X