# Integration with Google Analytics (GA4)

### Overview

MangoApps supports Google Analytics 4 (GA4). To enable analytics tracking, you only need to create a GA4 property and provide the Measurement ID (G-XXXXXXXX) within MangoApps.

<figure><img src="/files/gMPrinssSMvRwxcxN7Nw" alt="" width="375"><figcaption></figcaption></figure>

***

### Prerequisites

* A Google account&#x20;
* Access to Google Analytics
* A MangoApps admin account

***

### Step 1: Create a Google Analytics Account

1\. Navigate to <https://analytics.google.com&#x20>;

2\. Sign in with your Google account&#x20;

3\. Click 'Start measuring' and follow the prompts to create an account

<figure><img src="/files/EjELc2vnQxoEcewwi5QF" alt="" width="563"><figcaption></figcaption></figure>

***

### Step 2: Create a GA4 Property

1\. In Google Analytics, click 'Admin'&#x20;

2\. Under 'Account', click 'Create Property'&#x20;

<figure><img src="/files/LTkUL0QCsMX2OzSaMaSy" alt="" width="563"><figcaption></figcaption></figure>

3\. Enter: - Property Name - Time Zone - Business Information&#x20;

4\. Click 'Next' and complete setup

***

### Step 3: Create a Web Data Stream

1\. Select 'Web' as the platform&#x20;

<figure><img src="/files/KTNi4zpBERflsH6AvudS" alt="" width="563"><figcaption></figcaption></figure>

2\. Enter your website URL and a stream name&#x20;

<figure><img src="/files/xyGGVqCzuWft570gXQkS" alt="" width="563"><figcaption></figcaption></figure>

3\. Ensure 'Enhanced Measurement' is enabled&#x20;

4\. Click 'Create and Continue'

***

### Step 4: Copy Measurement ID

1\. Go to Admin > Data collection and modification > Data Streams&#x20;

2\. Select your Web Data Stream&#x20;

3\. Copy the Measurement ID (format: G-XXXXXXXX)

<figure><img src="/files/zRAc8VEgn714l1vG6o0e" alt=""><figcaption></figcaption></figure>

***

### Step 5: Configure in MangoApps

1\. Log into MangoApps as an administrator&#x20;

2\. Navigate to Analytics settings (go to admin portal > built in integrations > select “setup” under ”Google Analytics”&#x20;

<figure><img src="/files/HZUksWtEuVaxfqd1ljYE" alt="" width="563"><figcaption></figcaption></figure>

3\. Enable Google Analytics &#x20;

4\. Paste the Measurement ID into the Google Analytics field

<figure><img src="/files/UKOZhlHneVGPdF3IwCdp" alt="" width="563"><figcaption></figcaption></figure>

5\. Save changes

***

### Step 6: Verify Tracking

1\. Return to Google Analytics&#x20;

2\. Go to Reports > Realtime Overview

3\. Visit your MangoApps site and confirm the activity is reflected in Google Analytics within 30 minutes.

<figure><img src="/files/LGPJI8eTXMMegvRf5OdM" alt="" width="563"><figcaption></figcaption></figure>

***

### Important Notes

* Only GA4 Measurement IDs (G-XXXXXXXX) are supported&#x20;
* Universal Analytics (UA-XXXXX) is no longer supported
* No additional scripts or configuration are required within MangoApps
* Advanced tracking may require Google Tag Manager or custom event configuration


---

# 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://guides.mangoapps.com/integrations-guide/analytics/integration-with-google-analytics-ga4.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.
