### Connection

When you're setting up your first workflow with Google Analytics 4, you'll need to add your **Google Analytics Measurement ID** and **API Secret** so that Google Analytics 4 is a connected app within MESA.

Read the following to locate those 2 values. These next steps assume that you already have a Google Analytics 4 property. If you do not have one already, [please create one](https://support.google.com/analytics/answer/9744165#zippy=%2Cin-this-article).

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

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

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

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

5. Under Data collection and modification, select **Data Streams**.

6. Click on your preferred Data Stream. If you don't already have one, add a new stream.

7. Locate where it says **Measurement ID** in the Stream details section. Click on the copy icon.

8. Paste the copied values into your MESA's GA4 Connection **Key** field.

9. Next, scroll down on the same page until you see Events - **Measurement Protocol API secrets.** Click on it.

10. Click on the copy icon next to your preferred API secret. If you do not have one already, please create one.

11. Paste the copied values into your MESA's GA4 Connection **Secret** field.

12. Click **Add Connection** and you are all set! You can now re-use the newly created connection and select it for your future workflows!

### Configure

#### Locate your Ecommerce events sent from MESA in Google Analytics

**🗒 Important Note**: After your workflow triggers, it will take up to 24-48 hours to see data appear in the [Ecommerce purchase report](https://support.google.com/analytics/answer/12924131?visit_id=638062222372803843-2762436710&rd=1) due to Google Analytics' processing times. You can use the [Realtime report](https://support.google.com/analytics/answer/9271392?hl=en&ref_topic=9303476) to confirm that you're collecting data from your website or app successfully.

1. In your Google Analytics account, click on **Reports**, then **Monetization**, and then **Ecommerce purchases** in the left sidebar.

2. You will be taken to the **Ecommerce purchases** report page where you can view different ecommerce events.

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