# Create Google Tag Manager Account

**Step 1:** Go to the **URL** below to create a new account

<https://tagmanager.google.com/>&#x20;

**Step 2:** Click on the **Create Account** Button

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

**Step 3:** Fill up the required information in the form

* **Account Setup -** Enter the account name
* **Country -** Select your country
* **Container Setup -** Enter the container name&#x20;
* **Target platform -** Select web&#x20;

After that, you need to click on the **Create** button

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

**Step 4:** Accept the **Terms of Service Agreement** and click **Yes**

<figure><img src="/files/20eeQl3Ko8jeeprSyPd9" alt=""><figcaption></figcaption></figure>

**Step 5:** You will get the GTM Code. Copy and you need to set it in the Magento Configuration. Set **\<head> code** in the GTM and GA4 Regular code field and **\<body> code** in the GTM No-Script Code field.

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

&#x20;**Step 6:** Once the Google Tag Manager account is created you will get the **GTM Account ID** and **GTM Container ID** from the URL. You need to set it in the Magento configuration.

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


---

# 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.magecomp.com/magento-2-google-analytics-4-with-gtm/create-google-tag-manager-account.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.
