Skip to main content
BubblaV enables you to track user interactions with your AI chatbot and search widget directly in your Google Analytics 4 (GA4) dashboard. This integration allows you to see:
  • How many users open the chat or search widget.
  • What users are searching for (Search Queries).
  • How many messages are sent to the AI.
  • Which pages users are on when they interact.

Prerequisites

Before getting started, ensure you have:
  1. A Google Analytics 4 property created.
  2. The Google Analytics tracking script (gtag.js) OR Google Tag Manager snippet installed on the same page as your BubblaV widget.

Installation

The widget detects window.gtag (GA4) and window.dataLayer (GTM) on the page and sends events to them. You do not need to change the BubblaV widget snippet. For GTM, configure the event tags described below. This connection sends widget events to your analytics setup. It does not let Copilot read your GA4 reports. Copilot’s chat-volume and content-gap answers use BubblaV’s own data, not data from GA4.
The widget’s event forwarding does not currently check the integration’s dashboard connection state. Disconnecting Google Analytics in the dashboard does not stop these events. Manage event forwarding in your website’s analytics and tag configuration.
Message events include the message text and conversation ID. Review your analytics configuration and privacy requirements before forwarding chat content.

How it works

  1. BubblaV loads on your page.
  2. It checks for the existence of the Global Site Tag (gtag) or GTM Data Layer.
  3. When a user interacts (e.g., opens chat), BubblaV pushes an event to the detected analytics instance.

Configuration

While events are sent automatically, you may want to configure Custom Definitions in GA4 to see granular data like “Search Query” in your reports.

Step 1: Check Real-time Data

To verify the integration is working:
  1. Open your website and interact with the widget (open it, send a message).
  2. Go to Google Analytics > Reports > Realtime.
  3. Look for events named bubblav_chat_opened or bubblav_search_query in the Event Count card.

Step 2: Create Custom Dimensions (Optional)

To report on specific event parameters (like query or conversation_id), create custom dimensions:
  1. Go to Admin > Data display > Custom definitions.
  2. Click Create custom dimension.
  3. Add the following dimensions:

Google Tag Manager (GTM) Setup

If you use Google Tag Manager, BubblaV pushes events to the dataLayer. You need to create triggers to capture them.
  1. Create a Trigger:
    • Trigger Type: Custom Event
    • Event Name: bubblav_.* (Use regex matching) OR specific names like bubblav_search_query.
  2. Create Variables:
    • Variable Type: Data Layer Variable
    • Data Layer Variable Name: query (or other properties listed below).
  3. Create a Tag:
    • Go to Tags and click New.
    • Click Tag Configuration and select Google Analytics: GA4 Event.
    • Measurement ID: Enter your GA4 Measurement ID (e.g., G-XXXXXXXXXX) or select your Google Tag variable.
    • Event Name: Enter {{Event}}. This dynamically passes the event name (e.g., bubblav_search_query) from the Data Layer to GA4.
    • Event Parameters: Expand this section to send additional data:
      • Parameter Name: search_term (or match your GA4 Custom Dimension).
      • Value: Click the + icon and select the Data Layer Variable you created in Step 2 (e.g., {{dlv - query}}).
    • Triggering: Click to select a trigger and choose the Custom Event trigger you created in Step 1.
    • Save the tag and Submit/Publish your GTM container changes.

Event Reference

Chat Events

Search Events

Help Center Events

These events fire from the Help tab of the chat widget. See Help Center. All events also carry widget_type: 'chat' and site_id.

Troubleshooting

Events not showing up?

  • Check Ad Blockers: Ensure your ad blocker isn’t blocking Google Analytics.
  • Wait: GA4 standard reports can take 24-48 hours to update. Use the Realtime report for testing.
  • Debug Mode: Install the “Google Analytics Debugger” Chrome extension to see events in the developer console.

Using a different analytics provider?

If you use Mixpanel, Amplitude, or others, you can manually listen to BubblaV SDK events and forward them: