> For the complete documentation index, see [llms.txt](https://docs.getmesa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmesa.com/connect/google-analytics-ua.md).

# Google Analytics UA

### Authenticate <a href="#connect" id="connect"></a>

When you're setting up your first workflow with Google Analytics Universal Analytics (UA), you'll need to add your Google Analytics ID so that Google Analytics is a connected app within MESA.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F8YAV8TrcipgbK0UfZHh3%2Fimage.png?alt=media&amp;token=2703fb31-58f5-4569-97a6-d38e4a4faa02" alt="Screenshot of the MESA Google Analytics UA setup, add your Google Analytics ID to connect the app. Spotlight the Google Analytics ID field."><figcaption></figcaption></figure>

Your Google Analytics ID can be found [by following this document](https://support.google.com/analytics/answer/1008080?hl=en) but you can also read the following instructions:

1\. Sign in to your [Google Analytics Account](https://analytics.google.com/).

2\. Click on Admin from the left-hand sidebar.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FaS6a4knYXFymLE5zlcwr%2Fimage.png?alt=media&amp;token=6f0f14aa-88b3-40c1-a84f-7b13152c9069" alt="Screenshot of the Google Analytics account. Spotlight the Admin link in the left-hand sidebar."><figcaption></figcaption></figure>

3\. Ensure that you have the correct account selected under **Account**.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F28mPNSBe6rJO1619g93n%2Fimage.png?alt=media&amp;token=99374f5a-d99f-42f6-ad6b-4ebfbe9ee72c" alt="Screenshot of the Google Analytics Admin page, ensure the correct account is selected. Spotlight the Account column selector."><figcaption></figcaption></figure>

4\. Ensure that you have the correct Property selected under **Property**.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FsdsHBN9t9PlojsFkbrYT%2Fimage.png?alt=media&amp;token=d40e1dab-cf1c-445e-bec2-58f1e9dab5a9" alt="Screenshot of the Google Analytics Admin page, ensure the correct property is selected. Spotlight the Property column selector."><figcaption></figcaption></figure>

5\. Under Property, select **Tracking Info** and then **Tracking Code**.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FG8nefLwV65ndUuszbwgT%2Fimage.png?alt=media&amp;token=0c6c444f-ab8c-4cfe-be8f-78e0b9993054" alt="Screenshot of the Google Analytics Admin Property column, select Tracking Info then Tracking Code. Spotlight the Tracking Info menu."><figcaption></figcaption></figure>

6\. You will find your [Google Analytics ID under Tracking ID](https://support.google.com/analytics/answer/7372977). It should start with **UA** (e.g. UA-000000-2).

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F3EFsAAXb5KTneywGcUi7%2Fimage.png?alt=media&amp;token=97cd6672-5fa8-48c0-b9df-dc2451ff72be" alt="Screenshot of the Google Analytics Tracking Code page showing the Tracking ID that starts with UA. Spotlight the Tracking ID."><figcaption></figcaption></figure>

7\. Copy and paste the **Tracking ID** into the **Google Analytics ID** field in your MESA workflow. Click **Save** and you are all set!

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FucFcR8uxwlZhVAPS6rAy%2Fimage.png?alt=media&amp;token=6e5b38eb-c7db-4973-a791-16fea8fe67ed" alt="Screenshot of the MESA Google Analytics UA workflow, paste the Tracking ID into the Google Analytics ID field. Spotlight the Save button."><figcaption></figcaption></figure>

### Locate your transactions sent from MESA in Google Analytics <a href="#data" id="data"></a>

{% hint style="info" %}
**🗒 Note**: After your workflow triggers, it may take some time to see data appear in the report due to Google Analytics' processing times.
{% endhint %}

1\. In your Google Analytics account, click on **Conversions**, then **Ecommerce**, and then **Sales Performance** in the left sidebar.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FmbQLBxiS4U9SwbZ2WhOU%2Fimage.png?alt=media&amp;token=5eb1a52e-c2fa-4994-970a-8225ffa8e52a" alt="Screenshot of the Google Analytics account, click Conversions then Ecommerce then Sales Performance. Spotlight the Sales Performance item in the left sidebar."><figcaption></figcaption></figure>

2\. You will be taken to the **Sales Performance** report page where you can view different transactions (i.e. #1447 - 841290285154).

{% hint style="info" %}
**🗒 Note**: If you are not seeing the data from today, please adjust the view dates of your **Sales Performance** report to include today's date by clicking on the [date range selector.](https://support.google.com/analytics/answer/1010052?hl=en)
{% endhint %}

![Screenshot of the Google Analytics Sales Performance report page listing transactions sent from MESA. Spotlight the transactions list.](https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2Fgit-blob-0daa52e959744c3c42e74e6680ed03e60ee324af%2Ffile-m4lsxj0dps.png?alt=media)
