# Get your GTM container ID

{% hint style="info" %}
If you already have a Google Tag Manager account, skip to Step 2 to connect it with TagFly.
{% endhint %}

## Step 1: Create a new GTM account

* Go to [Google Tag Manager](https://tagmanager.google.com/) and follow the setup instructions to create your account.

**#Tutorial video**

{% embed url="<https://app.arcade.software/share/b9cYv7AlhOoU49boREkZ>" %}

## Step 2: Find & Connect Your GTM Container ID

* Open [Google Tag Manager](https://tagmanager.google.com/).
* Locate your **Container ID**—it should look like `GTM-XXXXXXX`. You can find it in these places:

<figure><img src="/files/NqL4A5xNdT0USJ444keA" alt=""><figcaption><p>On the homepage interface</p></figcaption></figure>

<figure><img src="/files/i1wKO7JZHJP1dSIfyeOo" alt=""><figcaption><p>In the workspace interface</p></figcaption></figure>

* Copy the Container ID and paste it into the TagFly app. Make sure it starts with "**GTM-**".

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

**That’s it! Your GTM is now well connected to TagFly. 🎉**


---

# 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.tagfly.io/getting-started/get-your-gtm-container-id.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.
