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

# Onboarding

Google Analytics channels offer a straightforward setup process using a measurement ID and App secret to link your GA4 property with EdgeTag. This connection enables your site to stream events into a Google Analytics property, providing powerful product insights. Let’s walk through the steps.

### Video Guide

{% embed url="<https://www.loom.com/share/39f3e4e87aa146aabd3fa330ee5824a9?sid=e7920d17-5f58-428f-aab6-79a7dcb379d3>" %}

### Add Channel

To add a channel, begin by entering the channel's name. We recommend choosing a name that clearly describes the channel you are adding. This will assist with debugging if any issues arise. Once you have entered the name, we need to get the Measurement ID and App Secret from the GA4 dashboard.

{% hint style="info" %}
If you are looking to create a new GA4 property and configure it with EdgeTag, please follow the instructions here to create a new GA4 property.
{% endhint %}

### **Measurement ID and API Secret**

Log in to the Google Analytics dashboard. Select the correct account and property you want to use with EdgeTag.

Click on the Gear Icon in the left section at the bottom and go to "Data Streams" under "Data collection and modification". If you don't have an existing data stream, click 'Create' and set up a new one. Please follow the instructions for creating a data stream mentioned [here](https://app.gitbook.com/o/c0Wts1N48p0Ba5S58p8v/s/ZJWZKbUk0hRISkCIj2p4/~/changes/89/channels/google-analytics-4/faq#how-to-create-new-property-in-ga4).

<figure><img src="/files/4PNYQVkoISko6LF1cBOg" alt=""><figcaption></figcaption></figure>

Click on Data stream, and you will find the Measurement ID on the right under Stream Details. Copy the value, and paste it under the Measurement ID field in the EdgeTag form.

<figure><img src="/files/Gy1NqPvtpiiy1q2gJSpy" alt=""><figcaption></figcaption></figure>

&#x20;Go back to the Data stream page again in GA4, scroll down a bit, and you will find Measurement Protocol API Secrets under the Events section. Click on it.

<figure><img src="/files/5kfovTvnMfizCuJSZtm7" alt=""><figcaption></figcaption></figure>

&#x20;If you haven't acknowledged the terms earlier, it will prompt you to review them. Please review the terms. Once done, click on the Create button. Give it a nickname and click 'Create'. The API secret would be generated, please copy the secret and add it under API Secret Key field in the form.

<figure><img src="/files/ixYUa0yZh9MBYoMavgao" alt=""><figcaption></figcaption></figure>

Click **Save & Deploy** \
\
Let's proceed to the next section to explore additional configuration options.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.edgetag.io/channels/google-analytics-4/onboarding.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.
