> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/integrations/analytics/google-analytics/events-and-settings.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Google Analytics events and settings

Look up the events, fields, and limits of the Google Analytics integration.

Events from the Purple Dot checkout appear in checkout order.

## Events

Purple Dot sends these GA4 events from the Purple Dot checkout:

| Checkout or pre-order action | GA4 event name     |
| ---------------------------- | ------------------ |
| Add to cart                  | `add_to_cart`      |
| Initiate checkout            | `begin_checkout`   |
| Add payment info             | `add_payment_info` |
| Pre-order created            | `purchase`         |

Events include ecommerce fields such as `currency`, `value`, and `items`. Purchase events also include a `transaction_id`: the Purple Dot pre-order or checkout ID. When available, Purple Dot also forwards `session_id` (from the `_ga_` session cookie) and Google click identifiers (`gclid`, `gbraid`, `wbraid`), so server events attribute correctly.

## Limits

* Purple Dot doesn't send any events for a session where it can't find the browser `_ga` cookie, which it uses as the Measurement Protocol `client_id`.
* If the Measurement ID in Purple Dot doesn't match the storefront's data stream, **Test Connection** can still pass, but checkout events won't stitch to the correct sessions.
* **Test Connection** checks your credentials only. It doesn't send a storefront checkout event.
* This integration runs from the Purple Dot checkout and doesn't depend on which e-commerce platform you use.

## Related

* **Concept:** [How analytics integrations work](https://docs.getpurpledot.com/integrations/analytics/how-analytics-integrations-work.md#checkout-events)
* **Do this:** [Connect Google Analytics](https://docs.getpurpledot.com/integrations/analytics/google-analytics/connect.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.getpurpledot.com/integrations/analytics/google-analytics/events-and-settings.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.
