# Google Analytics 4

### Overview

Enhance your insights with the Google Analytics 4 integration on Different Breed. This tutorial walks you through enabling the integration, retrieving your Google Measurement ID, and selecting which events to track. With this setup, you can gain a deeper understanding of user behavior, including demographics, devices, and interactions within your guides. We’ll also cover troubleshooting steps if data isn't appearing as expected. Watch the video below to get started.

{% embed url="<https://www.loom.com/share/6e7561d5c9034cbaafae851347291889?sid=1e9283dd-dd9c-4087-beb7-f9ea73853ada>" %}
Learn how to integrate Google Analytics 4 with Different Breed and track key user interactions in real time!
{% endembed %}

### Install and configure Google Analytics

#### 1. Obtain your measurement ID

To locate your measurement ID:

1. Open Google Analytics.
2. Navigate to the **Admin** section.
3. Under the **Data collection and modification** section, click **Data streams**.
4. Select the **Web** tab.
5. Click on your web data stream.
6. Find the measurement ID in the first row of the stream details. Copy it to your clipboard.

{% hint style="success" %}
A valid measurement ID starts with ‘G-’ followed by a combination of numbers and letters (e.g., ‘G-IT8OOK2K25’)
{% endhint %}

#### 2. Configure The Integration

Next up you need to activate the Google Analytics integration directly from the [Different Breed Integrations Page](https://platform.differentbreed.events/app/cfda3461-6f38-409b-9603-b0fb24e6025e/guides/integrations/google-analytics). To do this:

1. Find the Google Analytics integration in the **Integrations** page, accessible from the website sidebar (or the link above).
2. Activate the integration for your guides.
3. To finish the configuration, paste in your measurement ID and select the events you wish to track and click **Done**.

{% hint style="success" %}
Page views, Campaign data and other default google analytics events will be tracked by default and do not need to be configured.
{% endhint %}

#### 3. Verify Data Collection

After configuration, it may take a few hours for data to start appearing in your Google Analytics dashboard.

***

### Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

If no data has appeared in your Google Analytics dashboard after 48 hours:

1. Return to Google Analytics.
2. Click the **Admin** cog.
3. Navigate to **Data Streams** settings.
4. Select your data stream.
5. Check the top of the page for data reception status.
6. Double-check that the measurement ID is correct in Different Breed.
7. Ensure your guide is published in Different Breed and receiving traffic.


---

# Agent Instructions: 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:

```
GET https://help.differentbreed.events/tutorials/integrations/google-analytics-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
