Skip to main content
Open in Hubv0.2.4 The official Google Analytics integration allows your bot to interact with your GA4 data stream.

Setup

You will need:
1

Install the integration in Botpress

First, install the integration to your bot:
  1. In Botpress Studio, select Explore Hub in the upper-right corner.
  2. Search for the Google Analytics integration.
  3. Select Install Integration.
In the Configuration menu, you should see two fields:
  • Measurement ID: The Measurement ID for your Google Analytics 4 property
  • API secret: The API Secret for your Google Analytics 4 property
Leave these empty for now—you’ll come back to them after completing the setup in Google Analytics.
2

Get your measurement ID

Next, get your GA4 measurement ID:
  1. Log in to Google Analytics.
  2. In the bottom-left corner, select Admin.
  3. Under Property settings > Data collection and modification, select Data streams.
  4. Select the data stream you want to interact with.
  5. Copy its Measurement ID. It should start with G-.
3

Get your API secret

Now, get your GA4 API secret:
  1. In the same data stream menu, select Measurement protocal API secrets.
  2. If you haven’t reviewed the terms yet, select Review terms.
  3. Select Create and give the secret a nickname.
  4. Copy the secret’s value.
4

Configure the integration in Botpress

Now, you can finish setting up the integration in Botpress:
  1. In the Measurement ID field, paste the ID you copied earlier.
  2. In the API secret field, paste the secret you copied earlier.
  3. Select Save Configuration.
Your Google Analytics integration is ready. You can use the integration’s Cards to interact with your data stream.

Cards

Here’s a reference for all Cards available with the integration:

Track Event

Input: Output: This Card has no output.

Track Node

Input: Output: This Card has no output.

Update User Profile

Input: Output: This Card has no output.
I