> For the complete documentation index, see [llms.txt](https://docs.chord.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chord.co/activate/event-streaming/destinations/analytics/google-analytics-4.md).

# Google Analytics 4

Google Analytics 4 (GA4) is a web and app analytics tool from Google that tracks user behavior across your digital properties. It uses event-based tracking, cross-platform insights and predictive metrics to help you understand and improve customer journeys. Chord sends events to GA4 from the browser and from the server.

## What each version does

* [**GA4 browser**](/activate/event-streaming/destinations/analytics/google-analytics-4/ga4-browser.md) loads Google's tag in the shopper's browser and sends page views and ecommerce events from there. In the destination catalog in Chord, you add it as **Google Analytics 4 (Device Mode)**.
* [**GA4 Measurement Protocol**](/activate/event-streaming/destinations/analytics/google-analytics-4/ga4-measurement-protocol.md) runs on Chord's servers and sends events to GA4 through Google's Measurement Protocol. It is typically connected to a back-end site to forward server-side events such as orders and subscriptions. In the destination catalog in Chord, you add it as **Google Analytics 4 (Measurement Protocol)**.

## Why use both

The browser version catches on-page behavior. The server version survives ad blockers and closed tabs, and it reports events that never touch a browser.

## Set up

* [GA4 browser](/activate/event-streaming/destinations/analytics/google-analytics-4/ga4-browser.md)
* [GA4 Measurement Protocol](/activate/event-streaming/destinations/analytics/google-analytics-4/ga4-measurement-protocol.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chord.co/activate/event-streaming/destinations/analytics/google-analytics-4.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
