Skip to main content

Measure Web Widget Activity using Google Analytics

Events and UTM codes help you track where traffic is coming from, allowing you to properly measure the channel or campaigns ROI.

Written by Andy Dharmani

Tracking Engagement with GA4 in Myma Web Widget

Myma allows you to connect your Google Analytics 4 (GA4) Measurement ID to the Web Widget, enabling you to track how users interact with your chatbot. This helps you understand engagement, optimise user journeys, and measure the impact of Myma on end to end guest journey on your website and booking engine.

What You Can Track

Once GA4 is enabled, Myma automatically sends key interaction events, i.e.:

  • Avatar Clicks

    Track when users open the chatbot by clicking on the avatar icon on your website.

  • Menu Clicks
    Measure interactions with menu items within the web widget.

  • Chat Engagement
    Capture chat start when user sends a message to ask a question.

These insights help you understand how users engage with the widget.

How to Enable GA4 Tracking

  1. Go to Settings → Channels → Connected Channels

  2. Locate and open the Property or Group Web Widget that you want to track

  3. Locate the Google Analytics (GA4) section

  4. Toggle Google Analytics Tracking to enable

  5. Enter your GA4 Measurement ID (e.g. G-XXXXXXXXXX)

  6. Toggle the events you want to track and change event names if you prefer

  7. Save your settings

Once enabled, events will start flowing into your GA4 property.

Where to View Data in GA4

You can access these events in:

  • Reports → Engagement → Events

  • Realtime Dashboard (for live interactions)

Look for events starting with chat_ such as:

  • chat_avatar_click (avatar clicks)

  • chat_menu_events (menu item clicked)

  • chat_started (user sends a message)

Tracking the Full User Journey (Website & Booking Engine)

With GA4 integration it enables you to track the complete user journey from chatbot interaction through to website activity and booking. When users engage with the Myma Web Widget, their actions (e.g. chat opens, menu clicks) are captured within the same session as their website and booking behaviour. This allows you to analyse how chatbot interactions influence navigation, identify drop-offs, and measure assisted conversions. For best results, ensure GA4 is implemented across both your website and booking engine, with consistent tracking parameters and conversion events configured.


Measuring URL Clicks

Any URL redirect from Myma to a property's website can be tracked with Google Analytics UTM tags.

What is a UTM code:

A UTM (Urchin Tracking Module) code is a snippet of text added to the end of a URL to track the metrics and performance of a specific digital marketing campaign. UTM codes can contain up to five parameters: Campaign, source, medium, content, and term. UTM codes are also known as UTM parameters — or tracking tags.

UTM tags help you with better tracking and more accurate attribution inside Google Analytics.

How Myma.ai Chatbot uses UTM code

During the Chatbot conversation, a number of links are presented to the customer e.g. to your restaurant booking page, or to a membership page, etc. Myma.ai and Google Analytics integration is based on UTM tags.

When a user clicks any link inside the Chatbot, the UTM tags are added to the link, allowing the analytics to be stored and tracked in Google Analytics.

Setup

Log in to https://app.myma.ai and follow these steps:

  1. Go to Connect → Applications → Available Applications, and click on Google Analytics

  2. Give any name for you to refer to, and add the UTM Source and UTM Medium that you want to be sent with every URL click from Myma.ai Chatbot.

    1. UTM Source tells you where the traffic is coming from, so give a name like Myma.

    2. UTM Medium is the general channel the traffic comes from, so give a name like Chatbot.

  3. Click on Create New Integration

And that's it — you have custom tracking codes set up and running in no time!

Did this answer your question?