# Integrate Google Analytics 4

> Connect Google Analytics 4 with AnyTrack server-side tracking to capture conversions reliably, bypass ad blockers, and view all conversion data in one unified dashboard. Stream events in real-time without browser limitations.

## What is the AnyTrack Google Analytics 4 Integration?

The AnyTrack Google Analytics 4 integration connects your AnyTrack account directly to Google Analytics 4 using <a href='/docs/server-side-tracking'>server-side tracking</a> to send conversion data automatically.

**Key benefits:**
- **Automatic event sending** — AnyTrack sends standard conversion events directly to Google Analytics 4
- **Complete data capture**. Bypass ad blockers and browser restrictions
- **Real-time tracking**. See conversions appear in Google Analytics 4 instantly

## Why Use This Integration?

**Stop losing conversion data**
Server-side tracking ensures your data reaches Google Analytics 4 reliably, even when ad blockers or browser restrictions interfere.

**View all conversion data in one place**
Centralize all conversion tracking within Google Analytics 4 without switching platforms.

**Make data-driven decisions**
Gain detailed conversion insights to optimize campaigns and maximize ROI.

## How to Set Up Google Analytics 4 Integration

### Prerequisites

Ensure you have:
- An active Google Analytics 4 property
- Admin access to your Google Analytics 4 account
- An AnyTrack account with conversion tracking configured

### Step-by-Step Setup

1. **Click on Google Analytics 4…**

![Step 2 screenshot](./2af4c007-9d2c-4d18-8142-d75425c0a26f-eaf25daa07.png)

2. **Click CONNECT**

![Step 3 screenshot](./27d24fa8-de7f-4ee9-b152-1fc75f9cac86-a6f519c546.png)

3. **Select your Google account**

Choose the Google account that has access to your Google Analytics 4 property.

![Step 5 screenshot](./fa81d9dd-aa47-4761-8b92-111731eb8fb4-a43e96c9dc.png)

4. **Select your Google Analytics 4 property**

Choose the Google Analytics 4 property where you want to receive conversion data.

![Step 6 screenshot](./cad57957-f03b-4365-8f3c-0e53f15be320-dd65e419e0.png)

5. **Select your data stream**

Choose the web stream that matches your website.

![Step 7 screenshot](./7822538e-5321-428b-abcc-cadf7e4e5d02-3c2a3c6fad.png)

6. **Click NEXT**

![Step 8 screenshot](./84d3a079-41c4-41e5-acab-06d546003463-9db1421d8a.png)

7. **Authorize the connection**

Click CONNECT to allow AnyTrack to send data to your Google Analytics 4 property.

![Step 9 screenshot](./180d0791-dcfd-4534-b962-c2091b7820a6-f4970433d1.png)

8. **Enable Server-Side Tracking**

Turn ON the Server-Side Tracking API. This sends conversion data directly from AnyTrack to Google Analytics 4 without browser limitations.

![Step 11 screenshot](./1453a7f5-af86-42cc-a926-0c23c0f8adb8-c63232db1a.png)

9. **Configure event mapping and save**

Map your AnyTrack events to Google Analytics 4 events, then click Save.

<Image align="center" className="border" border={true} src={readmeAsset1} />

## Mark Events as Key Events (Optional)

AnyTrack automatically sends standard conversion events to Google Analytics 4. No additional setup required in Google Analytics 4.

Mark events as "key events" in your Google Analytics 4 interface to display them in reports:

1. Go to **Configure > Events** in Google Analytics 4
2. Find the event you want to track
3. Toggle **Mark as key event**

Key events appear in your Google Analytics 4 reports and function as conversion goals.

## Test Your Integration

### Use Google Analytics 4 DebugView for Real-Time Testing

Watch your AnyTrack events flow into Google Analytics 4 in real-time:

**You'll need:**
- Your connected Google Analytics 4 property
- [Google Analytics Debugger Chrome extension](https://chromewebstore.google.com/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna)

<HTMLBlock html={"\n<div style=\"position: relative; padding-bottom: 56.25%; height: 0;\"><iframe src=\"https://www.loom.com/embed/424928b743944e8489e699dfbc919edd?sid=da3bf02a-6657-4521-9cac-8d3924f159b9\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\"></iframe></div>\n"} />

## Complete

Your AnyTrack Google Analytics 4 integration is now active. Conversion data flows automatically from AnyTrack into your Google Analytics 4 reports, giving you complete visibility into your marketing performance.

## Related Articles

- [Shopify and Google Ads](/docs/shopify-and-google-ads-integration)
- [Install AnyTrack Tag](/docs/install-anytrack-tag)
- [Pixel Helper Extension](/docs/anytrack-chrome-extension)
