# Google Analytics

Google Analytics is a free tool provided by Google to gain a deeper understanding of your customers. Google Analytics gives you the free tools you need to analyze data for your business in one place.

To learn more about [Google Analytics visit here](https://marketingplatform.google.com/about/analytics/).&#x20;

## Setup

Once you create an account with Google Analytics, locate your tracking ID. Google recently updated Google Analytics, so we currently support two different forms of tracking ID's.

Legacy Google Universal Analytics - UA-XXXXXX

Google Analytics 3 Measurement ID - G-XXXXXX

{% hint style="warning" %}
Note: Sometimes Google takes a day or so to start populating stats.
{% endhint %}

![](/files/-Lb4ueT25qawzNDJhZxJ)

Paste in your code and click Update Google Analytics

## Upgrading to Google Analytics 4

Google is now prompting all Analytics users to upgrade to version 4. The process is painless but it does take a few steps on your end. Start by logging in to your Google Analytics account. You should see a banner like below. Just click "Let's go" to get started.

![](/files/aR1ARhqSt7PieV8KrqML)

If you previously dismissed this banner, you can access the GA4 Setup Assistant within the admin section of your Google Analytics account.

![](/files/y1SDVAOtvO5cmLLvoEbz)

All it takes is a click of a single button, and GA4 will start collecting data. Nothing else needs to happen within your Mavenseed site.

![](/files/2DUrf6KBY7LTOZQ4wAGn)

{% hint style="warning" %}
Read more about the migration below along with when Google will stop collecting data for Universal Analytics.

<https://support.google.com/analytics/answer/10089681>
{% endhint %}


---

# 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://docs.mavenseed.com/managing-your-site/settings/integrations/google-analytics.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.
