# 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](https://docs.formsort.com/integrations/integration-reference/google-tag-manager). A solitary Google Analytics setup will only allow event tracking.&#x20;

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FRpsqpZgX6vz4Gtl78RZB%2Fimage.png?alt=media&#x26;token=e90b785e-8298-4b84-8466-52697546d936" alt=""><figcaption></figcaption></figure>

Be sure to visit our page [Analytics Events](https://docs.formsort.com/integrations/getting-data-out/analytics) 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](https://docs.formsort.com/integrations/integration-reference/google-tag-manager). 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="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FW20s9usIy2AMNpmp1nJR%2F3.png?alt=media&#x26;token=0d07ae27-fdd8-4cd4-ad94-e0c55241d64b" 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="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FETeoTPnMTqgMQKRPGL7R%2F4.png?alt=media&#x26;token=f919742b-c063-4616-8324-03d3ff2332ce" alt=""><figcaption><p>The Data Streams menu </p></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%2FGUE1ThKkMLGBT60bdJNY%2F5.png?alt=media&#x26;token=e15f35e8-1a7e-4217-94a7-225e615d8600" 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 %}
