# Onboarding

Google Tag Manager channels provide a straightforward setup process that uses a Container ID to link your GTM container to EdgeTag. This connection enables your site to stream events into Google Tag Manager's dataLayer, providing powerful tag management capabilities. Let's walk through the steps.

### Video Guide

{% embed url="<https://www.loom.com/share/65e65071560b42c79b23d086c401302b>" %}

### Add Channel

To add a channel, enter 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 Container ID from the GTM dashboard.

{% hint style="info" %}
If you are looking to create a new GTM container and configure it with EdgeTag, please follow the instructions below to connect an existing GTM Container with EdgeTag or create a new GTM container.
{% endhint %}

### Container ID Setup

Log in to the Google Tag Manager dashboard at [tagmanager.google.com](https://tagmanager.google.com). Select the correct account and container you want to use with EdgeTag.

#### Finding Your Container ID

1. In the GTM dashboard, select your workspace.

2. Your Container ID will be displayed in the top section of the workspace, usually in the format `GTM-XXXXXXX`\
   \
   \ <br>

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

3. Copy this Container ID

### Creating a New Container (Optional)

If you need to create a new container:

1. Click on the **account** drop-down in the top navigation&#x20;
2. Select "**Create Container**"   &#x20;

   <figure><img src="/files/6t5rvcIhfDPolVuvLETS" alt=""><figcaption></figcaption></figure>
3. Enter a container name (e.g., "EdgeTag Production")&#x20;
4. Select "Web" as the target platform&#x20;

   <figure><img src="/files/OsAfyZyz4Ke12KsDCjvI" alt=""><figcaption></figcaption></figure>
5. Click "**Create**"
6. Accept the Terms of Service
7. Copy the Container ID from the newly created container

### Configure in EdgeTag

1. Return to the EdgeTag channel form
2. Paste your GTM Container ID in the "GTM Container ID" field

   <figure><img src="/files/c5ETGsnmqf5Im4yOxsBI" alt=""><figcaption></figcaption></figure>
3. Click **"Save & Deploy"**

Your GTM integration is now active! Events will start flowing to your GTM dataLayer, where you can configure tags, triggers, and variables to handle the data.


---

# 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://docs.edgetag.io/channels/google-tag-manager/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.
