# How to integrate GA4 on Shopify?🤔

To integrate **GA4** into our app, log in to your [**Google Analytics account**](https://analytics.google.com/), click on the **settings** icon, then select **Data Streams**.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfGp_2kyLzXFNP3ZDW3DCbp0Ql_E2o0We4FcLgwNBW0thR0NQ8ChrFs5LLoeJpre2XgUtDZIlAIqRQXOPU3ISEw9BlFwXeIbFM_eyxmeXR_El4hEqiHZ7HxYf6cgDag6-pj2cwAR3XQVpN_Qd6d5q5xbeMG?key=k9heDR9hpJMnQ0GrGcLQvg" alt=""><figcaption></figcaption></figure>

\
Open the desired **data stream** and copy the **Measurement ID** from there.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdxB1eOV9TuNZCDdNY_PWUD9Uaz_Ez2uWzD1O9FK_DtsqKAjUwGOWvasQNH688b7nNKWmHkHSgqPX1I2hTdc9fyR5OwB6DMyT0Y_b5nWlyANuzHZ3Ct9JTRcfVnJ2S1ex31dtp938tfExX8NvnRzngdWqQ?key=k9heDR9hpJMnQ0GrGcLQvg" alt=""><figcaption></figcaption></figure>

\
Next, navigate to our app and click on the **Settings** option in our app. <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeVDE8ozs914vhxl7NJECjxSwEP5SECQmOPmYvdC0YY7BjlRoHIEwbULT_K1iM-ONvQEx4YsEJNOp-3a4tiGctheHyCeTZzyPUvfoRr3zt6Sj-mAKsrdX8DHupWF4Q18vCQZp_HcSkX-grxQOMTi9rya5vJ?key=k9heDR9hpJMnQ0GrGcLQvg" alt=""><figcaption></figcaption></figure>

Scroll down to the **Setup GA4** section, insert the **Measurement ID** there, and click on **Save**.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeXKuWIk_-5m1oT5C0Vo9mXh3hx1drtGdExdsflABTfJPPmfCL49RA1AEvDSGUkvA7rl9PiC1gv3cQjrzpnG0uzYxS6-B6eJx-y7WcLn4H_S9Xsz5Jzsj4tQ6wLjIJ0xTRAivg4iAL4ReU9BXjO06TTXqpV?key=k9heDR9hpJMnQ0GrGcLQvg" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?index=2&list=PLG5hOPbOeKlJmmEPrlJ6wlrViFbhbsBGX&v=BT-RVl2_d5c>" %}

**Hurry**🥳🤩, and your **GA4** is now successfully integrated into Shopify!


---

# 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://infinite-pixel-tracking.gitbook.io/infinite-google-ads-tracking-and-gtm/google-pixel/how-to-integrate-ga4-on-shopify.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.
