# Google Tag Manager

**GTM is the "single control panel" for everything related to analytics and tracking on a website.** It speeds up the implementation of marketing tools, reduces the workload on developers, and allows rapid response to changes in advertising campaigns.

#### 🧭 How to get Google Tag Manager (GTM ID) <a href="#how-to-get-google-tag-manager-gtm-id" id="how-to-get-google-tag-manager-gtm-id"></a>

**🔹 1. Sign in to Google Tag Manager**

Go to the site: <https://tagmanager.google.com/> Sign in with your Google account.

**🔹 2. Create an account**

If you don't have a Tag Manager account yet:

1. Click the button **"Create Account" (Create Account)**.<br>

   <figure><img src="https://2918865942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp0ow3kIXHQDcl9DBdYiM%2Fuploads%2FHwRHn0ZdwJpIk7D2KluJ%2Fimage.png?alt=media&#x26;token=14997dc4-1b02-4347-9981-ba19376303f0" alt="" width="563"><figcaption></figcaption></figure>
2. In the **Account Name** enter the name of the site or project.
3. In the **Country** select the country.
4. Check the box **"Share data anonymously with Google and others"**, if you want (not required).

**🔹 3. Create a container (Container)**

1. In the **Container name** enter the name of the site or application (for example: `mywebsite.com`).
2. In the **Target platform** choose **Web**, this is the environment where you will use the container:
3. Click **Create**.

**🔹 4. Accept the terms of use**

Read the Google Tag Manager terms and click **Yes** (Agree).

**🔹 5. Get the container code**

After creating the container, a popup with the installation code will appear.\
Your **Container ID (GTM ID)** will look like this:

```
GTM-XXXXXXX
```

You can see it:

* at the top of the Tag Manager dashboard;
* or in the container settings: **Admin → Container Settings → Container ID**.

**🔹 6. Install the code on the site**

For GTM to start working:

1. Copy the code from the popup.<br>

   <figure><img src="https://2918865942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp0ow3kIXHQDcl9DBdYiM%2Fuploads%2FAQmNiKmyDcSe6ibqreht%2Fimage.png?alt=media&#x26;token=08bceca5-ae68-4827-a05b-976f2c36abb9" alt="" width="563"><figcaption></figcaption></figure>
2. Paste it into the site's admin panel; this is done through Settings - Google Settings - Google Tag Manager manually.
3. Save the changes in the admin panel, and after that click Connect in Tag Manager.
4. If the connection is successful, you will receive a notification like this<br>

   <figure><img src="https://2918865942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp0ow3kIXHQDcl9DBdYiM%2Fuploads%2FHRKWCiNh4jQEagotI0ZW%2Fimage.png?alt=media&#x26;token=35734306-e8bd-467a-95e9-fb30d0a39619" alt="" width="280"><figcaption></figcaption></figure>

​
