> ## Documentation Index
> Fetch the complete documentation index at: https://docs.softr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Analytics

> Using Google Analytics to track user behavior.

In this guide, we'll go through the process of integrating **Google Analytics** with your Softr app. You can integrate both **Universal Analytics** and **Google Analytics 4**, and below you can find separate guides for each of the versions.

## Universal Analytics

After [setting up a Google Analytics property](https://support.google.com/analytics/answer/10269537?ref_topic=1009620) for your site, you need to navigate to **Admin**, choose the required property, and click **Tracking Info**, as shown below.

<Frame caption="Locating tracking info">
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image1.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=5c7cc3f411d3652c4641323b49b052b2" alt="Locating tracking info" width="1377" height="754" data-path="integrations/images/google-analytics/image1.png" />
</Frame>

From the opened dropdown, click on **Tracking Code** and copy the **Tracking ID** (starting with "UA-") as shown below.

<Frame>
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image2.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=cf74eb69ed620be7b64225aa3543e869" alt="Notion image" width="865" height="468" data-path="integrations/images/google-analytics/image2.png" />
</Frame>

That's it, now you just need to paste the ID in **Settings =>** **Integrations => Google Analytics**
in the left-hand toolbar of your [Softr Studio](/5315870b0eb4473fb49dd13c97635d67) and hit **Save.**

<Frame caption="Adding tracking code in Softr">
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image3.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=a2f69b712165ac4e5494879396444958" alt="Adding tracking code in Softr" width="916" height="1158" data-path="integrations/images/google-analytics/image3.png" />
</Frame>

## Google Analytics 4

After setting up a [Google Analytics 4 property](https://support.google.com/analytics/answer/9304153#zippy=%2Cweb%2Cadd-the-tag-to-a-website-builder-or-cms-hosted-website-eg-wordpress-shopify-etc), you need to go to **Admin**, select the required **property** and navigate to **Data Streams**.

<Frame caption="Accessing data streams">
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image4.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=644f3be33dde9b80c53d34bd01e71e9e" alt="Accessing data streams" width="2840" height="1414" data-path="integrations/images/google-analytics/image4.png" />
</Frame>

Next, select the data stream.

<Frame caption="Selecting the data stream">
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image5.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=38e997fa769c879a6663708412099d58" alt="Selecting the data stream" width="2662" height="1102" data-path="integrations/images/google-analytics/image5.png" />
</Frame>

In the screen that comes next, locate the **Measurement ID** and copy it.

<Frame caption="Getting the Measurement ID">
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image6.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=3faeded7fa3934c2eef13825e4301ef8" alt="Getting the Measurement ID" width="2426" height="702" data-path="integrations/images/google-analytics/image6.png" />
</Frame>

Finally, you just need to go back to your Softr app and add the ID into [Settings](/application-settings/n3K2UEfpC9BpHgakMzUU5Y/general-settings/7YdGy1J8X2tjJSv8BGvWQU)**⇒Integrations ⇒ Google Analytics** as shown in the following screenshot.

<Frame caption="Applying the Measurement ID">
  <img src="https://mintcdn.com/softr-2b8a27e1/PaU-DT-tUcsG5oFr/integrations/images/google-analytics/image7.png?fit=max&auto=format&n=PaU-DT-tUcsG5oFr&q=85&s=9c59c6abd6262f75f775eff90c0853fa" alt="Applying the Measurement ID" width="686" height="542" data-path="integrations/images/google-analytics/image7.png" />
</Frame>
