> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-google-analytics-4-with-gtm/create-google-tag-manager-account.md).

# 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="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FgRHNw2yV73lZfqKpUYra%2FCreate%20Account.png?alt=media&amp;token=2d1d0d73-8c65-4e81-ad85-d6492cce1852" 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="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FkdqQmv3Wgib6e0HLjeMV%2FAccount%20details.png?alt=media&amp;token=b4182b43-086a-4ad9-830a-396c8283844b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FcNMWEVpkJzBhw0z7nN9f%2FTerms%20of%20Service%20Agreement.png?alt=media&amp;token=9593068e-1d1c-47a0-808c-bc425e1fa693" 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="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F32RhviKr8eAI5VEcS9yu%2FGTM%20code.png?alt=media&amp;token=8819c51a-24f1-40d8-a2b1-4a036a558b71" 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="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F7ScgknP6qpqtMLhhetX4%2FAccount%20ID%20and%20Container%20ID.png?alt=media&amp;token=be9b88cd-9f71-4292-bce2-dc1131eb4242" alt=""><figcaption></figcaption></figure>
