> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/bots/website-mobile-app-bot/3rd-party-integrations/botpenguin-integrations/integrate-botpenguin-with-google-analytics.md).

# Integrate BotPenguin with Google Analytics

#### Integration of Google Analytics with BotPenguin

Google Analytics is a powerful tool to measure and analyze user interactions, such as the number of clicks and views, on your chatbot. Integrating Google Analytics with your BotPenguin chatbot enables you to track these metrics and optimize performance.

Follow these steps to integrate Google Analytics with BotPenguin:

**Step 1: Log in to BotPenguin**

1. Navigate to your [BotPenguin account](https://www.botpenguin.com/).
2. Select the bot you want to integrate with Google Analytics.

**Step 2: Access Third-Party App Integrations**

1. Go to the "Third-Party App Integrations" section within the settings of your bot.
2. Search for "Google Analytics" in the list of available integrations.
3. Once you find it, click the **Connect** button.

**Step 3: Obtain the Measurement ID from Google Analytics**

To connect Google Analytics to your BotPenguin account, you need the Measurement ID from your Google Analytics account. Follow these steps to get it:

1. Log in to your [Google Analytics account](https://analytics.google.com/).
2. If you don’t have a data stream created, follow these steps to create one:
   * Click on the **Start Measuring** button.
   * Provide an account name for your Google Analytics account.
   * Create a Google Analytics 4 property:
     * A property is used to measure data for websites and apps. Each property holds all measurement data for your selected platforms.
     * Provide the necessary business details.
     * Select the business objectives for the integration.
     * Accept the terms and conditions.
   * Choose the platform (e.g., Web) and provide the website link.
   * Click on the **Create and Continue** button.
3. Once the data stream is created, the Measurement ID will be displayed on the screen. Copy this Measurement ID.

**Step 4: Connect Google Analytics to BotPenguin**

1. Go back to the BotPenguin integration page where you clicked **Connect** for Google Analytics.
2. Paste the Measurement ID in the required field.
3. Click on the **Connect** button to finalize the integration.

If everything is correct and you are still unable to move forward, write to us at <support@botpenguin.com>. We will respond back within 48 business hours.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.botpenguin.com/bots/website-mobile-app-bot/3rd-party-integrations/botpenguin-integrations/integrate-botpenguin-with-google-analytics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
