# Google Analytics

{% hint style="warning" %}
Formsort has begun it's transition to GA4 from Universal Analytics, which has stopped being supported by Google as of July 1, 2023.&#x20;

During this time:&#x20;

* Any GA4 properties **must** be loaded through our [Google Tag Manager](https://docs.formsort.com/handling-data/integration-reference/google-tag-manager) integration.
* Users will still have the option to load Universal Analytics properties independently of GTM, using the instructions below.
* If you plan to use GTM, load your Universal Analytics properties through that instead.&#x20;
  {% endhint %}

Answer payloads cannot be sent to Google Analytics. Instead, if answers are desired when events are captured, you can send answer payloads to Google services using [Google Tag Manager](/integrations/integration-reference/google-tag-manager.md). A solitary Google Analytics setup will only allow event tracking.&#x20;

<figure><img src="/files/2g3DKbIGmLvtMr73Da5j" alt=""><figcaption></figcaption></figure>

Be sure to visit our page [Analytics Events](/integrations/getting-data-out/analytics.md) for more information about the events that can be tracked in your GA integration.

## Adding a Google Analytics 4 (GA4) Property

As stated at the beginning of this article, at this time GA4 must be loaded through our [GTM Integration](/integrations/integration-reference/google-tag-manager.md). In order to do this, you're going to need the **Measurement ID** of the property.&#x20;

The format will be an alphanumeric `G-XXXXXXXXX`.

{% hint style="info" %}
If you need to create a GA4 property, you can see Google's documentation [here](https://support.google.com/analytics/answer/9304153?hl=en\&ref_topic=9303319).&#x20;
{% endhint %}

Here's how you can find your M**easurement ID**:

In the left-hand sidebar menu of the Analytics homescreen, open the **Admin** menu.

<figure><img src="/files/YTUfEhMDSAsghq4gllh7" alt=""><figcaption><p>The Admin menu</p></figcaption></figure>

In the second column of the menu, **Property**, open **Data Streams**. At this menu, open Data Stream you've created for Formsort.

<figure><img src="/files/up6WRLlkAOIK0xjTLyse" alt=""><figcaption><p>The Data Streams menu </p></figcaption></figure>

<figure><img src="/files/el4ScUzvntAeklYcce7T" alt=""><figcaption><p>Web stream details</p></figcaption></figure>

From this menu, note your **Measurement ID** and head to our Google Tag Manager article to complete the GTM -> GA4 setup.

## Adding a Universal Analytics property

{% hint style="warning" %}
Universal Analytics has been deprecated by Google as of July 1, 2023. Please see our section above on adding a GA4 property.&#x20;
{% 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.formsort.com/integrations/integration-reference/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.
