---
title: "Google Analytics 4"
slug: "google-analytics-4"
updated: 2026-06-09T10:09:06Z
published: 2026-06-09T10:09:06Z
canonical: "docs.xtremepush.com/google-analytics-4"
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xtremepush.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Analytics 4

Gather Google Analytics IDs from visitors to your sites

> [!WARNING]
> Update May 2023
> 
> Google Analytics 4 replaced Universal Analytics on July 1, 2023. This replacement sunset the Google Analytics 3 integration on the platform.
> 
> As a result of this, [Google Analytics segments](/documentation/docs/google-analytics-segments) is no longer available to use in campaigns. The new Google Analytics 4 integration only supports gathering Google Analytics IDs from web SDKs.
> 
> Legacy instructions for adding a Universal Analytics integration are kept in a [historical guide](/documentation/docs/google-analytics-integration).

## Upgrade to Google Analytics 4

From your Google Analytics dashboard, open **Admin > Data Streams** and click on the **Data Stream** that you aim to integrate with. From the opened window, copy the **Measurement ID**.

From the Xtremepush dashboard, navigate to **Settings > Apps & Sites**. Click on the web application that you aim to upgrade to Google Analytics 4 and open the **Settings** of the website. Paste your **Measurement ID** on the **Tracking ID** section.

![](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/0c75acb-small-d8acc24-Screenshot_2023-04-24_at_12.49.55(1).png)
