---
title: "How do I connect Google Analytics to Sarbacane Chat?"
description: "Track what your visitors do in the chatbox in Google Analytics."
url: https://help.sarbacane.com/en/articles/369-how-do-i-connect-google-analytics-to-sarbacane-chat
collection: "Connect Sarbacane Chat to your tools"
updated: 2026-12-03
language: en
alternates: [fr, es]
---

# How do I connect Google Analytics to Sarbacane Chat?

Track what your visitors do in the chatbox in Google Analytics.

Sarbacane Chat can send events about how the chatbox is used to Google Analytics: opening, messages, email provided, etc. You set up the connection in **Settings** › **Marketplace**. The form expects an ID from the former version of Google Analytics (Universal Analytics), which Google shut down in 2023: if the events don't arrive, our experts will help you.

## What the connection does

It sends an event to Google Analytics when:

-   the chatbox loads, then when it is opened or closed;
    
-   the contact is identified;
    
-   a contact sends or receives a message;
    
-   a contact provides their email address;
    
-   a contact receives a qualification question or a survey, and answers it;
    
-   an automated communication is displayed (topbar, tooltip, etc.);
    
-   a contact books a meeting from the chatbox.
    

**Note**: events are only sent if the chatbox is installed on your website.

## Prerequisites

-   A Sarbacane Chat licence assigned to your user, with access to **Settings**.
    
-   A Google Analytics account and its tracking ID.
    
-   The Google Analytics tracking code (gtag.js) installed on the pages where the chatbox is deployed.
    

## Steps

1.  At the bottom of the left menu, click **Settings**, then **Marketplace**.
    
2.  At the top right, in **Search for an app**, type "Google Analytics", then click the **Google Analytics** card.
    
3.  On the right of the window, click **Configure this app**.
    

**Important**: Google shut down Universal Analytics in July 2023. The field expects an ID from that version, in the UA-… format. If you only have a Google Analytics 4 ID (in the G-… format), contact our Sarbacane Chat experts before going further.

4.  In **Tracker ID**, paste your Google Analytics tracking ID.
    
5.  At the bottom, click **Integrate Google Analytics**.
    

## Expected result

When a visitor uses the chatbox on your website, the events appear in Google Analytics.

## Troubleshooting

### No events appear in Google Analytics

Check in this order:

1.  The chatbox is installed on the page.
    
2.  The Google Analytics gtag.js code is present on that same page.
    
3.  The ID you pasted is the right one.
    

If everything is in place, the ID may not be accepted, since Google has shut down Universal Analytics. Contact our Sarbacane Chat experts at aide-chat@sarbacane.com.

## Related articles

-   [How do I connect HubSpot to Sarbacane Chat?](https://help.sarbacane.com/en/articles/367.md)
    
-   [What is Sarbacane Chat and what is each menu for?](https://help.sarbacane.com/en/articles/118.md)
