> For the complete documentation index, see [llms.txt](https://docs.formsort.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.formsort.com/integrations/integration-reference/google-analytics/updating-from-universal-analytics-to-ga4.md).

# Updating from Universal Analytics to GA4

See the below guide to transition your Universal Analytics property to GA4.

### Converting your UA to a new GA4 property

In your Google Analytics hub, open your Universal Analytics property

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FXbU5idmnxUB6UAaykpsZ%2F1.png?alt=media&amp;token=1682530e-7a58-4300-8e95-b9c12045ef8b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FAm9L0a4csyDTW3Hi2nsy%2F1-2.png?alt=media&amp;token=177906a0-fa2f-4e72-b099-704bb2dc90af" alt=""><figcaption></figcaption></figure>

In the **Admin** panel of your UA property, click on GA4 Setup Assistant in Property.

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FZdFof2UaqIlR2ejmomU3%2F2.png?alt=media&amp;token=3ca5aa80-f3a7-47a8-a368-5582ceb7df46" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FVOBIqmiEtorGu7gPHMo8%2F2-1.png?alt=media&amp;token=a3b28312-544b-4af6-839a-f6385a2d6941" alt=""><figcaption></figcaption></figure>

If you don’t currently have a GA4 property, choose “**I want to create a new Google Analytics 4 property**”.

* Select **Create and Continue** at the prompt.

{% hint style="info" %}
If you already have a GA4 property you wish to connect to, you can opt to connect to that instead.
{% endhint %}

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FC1cE2urPIYP05P9atXfU%2F3.png?alt=media&amp;token=bf1a021a-4eaa-4ece-aaf3-2da1eb2184b3" alt=""><figcaption></figcaption></figure>

Set up the Google Tag (*optional*)

* If you already have a Google Tag that you use for Formsort, you can choose it by selecting “**Use a Google Tag…**” and selecting from the menu - Google should should connect your GTM container to your Analytics account.&#x20;
* If you need to create one, select **Install a Google tag** then **Next**.

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FWmptN5zZN7cyaJdEsOBK%2F4.png?alt=media&amp;token=d50383ce-938e-419b-a63c-3dbaa4e09785" alt=""><figcaption></figcaption></figure>

* Select **Install Manually**, take note of your **GA4 Measurement ID**, then hit **Done**.

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FCPOdvyKeOzEOQPRrDq8j%2F4-1.png?alt=media&amp;token=9c6d1e09-0275-455b-b191-7b87a7d217d8" alt=""><figcaption></figcaption></figure>

From here you can head to our GTM guide, which will walk you through creating Google Tags and connecting them to your Analytics properties.&#x20;


---

# 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.formsort.com/integrations/integration-reference/google-analytics/updating-from-universal-analytics-to-ga4.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.
