> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upmind.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Get the GTM Script URL

> Locate and use your Google Tag Manager Script URL in Upmind

Upmind supports adding a custom GTM script URL to simplify tag management and analytics integration. This guide is optional, as the script is already included inside the container ID.

## Steps to retrieve your GTM script URL

1. Log in to `Google Tag Manager` (go to ).
2. Sign in using your Google account credentials.
3. Select the **Container** associated with the website or app you want to track from your GTM dashboard. If you have not created one, follow this .

<Frame caption="Select container">
  <img src="https://mintcdn.com/upmind/wRuKrNY12tQZY8Rr/images/fb/30ff2609d51fbe13.png?fit=max&auto=format&n=wRuKrNY12tQZY8Rr&q=85&s=6bd0e3a611ab07253ce9a88a5191e483" alt="Select container" width="1536" height="320" data-path="images/fb/30ff2609d51fbe13.png" />
</Frame>

4. Locate and click the **Admin** button in the top left corner of the screen. The `Admin` area contains settings for your account and containers.

<Frame caption="Select admin">
  <img src="https://mintcdn.com/upmind/1-uICsJi9zYpvJVH/images/fb/912c5aaf1eb03365.png?fit=max&auto=format&n=1-uICsJi9zYpvJVH&q=85&s=85984e1e1f6170cd8343fcccfc90b273" alt="Select admin" width="1220" height="252" data-path="images/fb/912c5aaf1eb03365.png" />
</Frame>

5. Under the `Container` column, click on **Install Google Tag Manager**. This opens a popup displaying the GTM installation code snippets needed on your website.

<Frame caption="Install Google Tag Manager">
  <img src="https://mintcdn.com/upmind/JUoAg6onJmXk_-rR/images/fb/e6d0421cc3b7ecb0.png?fit=max&auto=format&n=JUoAg6onJmXk_-rR&q=85&s=3bdbacbc8d49ce6354cdbc2d9e8f4a59" alt="Install Google Tag Manager" width="1206" height="620" data-path="images/fb/e6d0421cc3b7ecb0.png" />
</Frame>

6. Identify the `GTM Script URL`. Within the popup, you will see two pieces of JavaScript code.

<Frame caption="GTM Script URL">
  <img src="https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/67c3645059ed5ca7.png?fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=8872797bbcad2f1d63b7509c9e47293a" alt="GTM Script URL" width="1288" height="718" data-path="images/fb/67c3645059ed5ca7.png" />
</Frame>

The relevant GTM script URL is inside the \< script > tag and typically looks like:

[https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXX](https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXX)

The `GTM-XXXXXX` is your container ID and will differ for your account.

7. Highlight the `GTM Script URL` within the \< script > tag and copy it to your clipboard.

## How to use the GTM script URL in Upmind

1. Log in to your Upmind admin panel.
2. Navigate to **Settings** > **Miscellaneous** > **Analytics & Tracking**.

<Frame caption="Settings > Miscellaneous > Analytics & Tracking">
  <img src="https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=b46009488d2953b08dafa6382036f917" alt="Settings > Miscellaneous > Analytics & Tracking" data-og-width="1340" width="1340" data-og-height="596" height="596" data-path="images/fb/6f860c1c58dd722a.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?w=280&fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=3a213267e2c17659c3724fcd62730759 280w, https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?w=560&fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=987a0d7d459197584ccf002ebdd40585 560w, https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?w=840&fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=92c558ac11f8e842732c8e6bdac86d92 840w, https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?w=1100&fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=5b8701b890ac8fd4cc9ff6de3f8fa6e6 1100w, https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?w=1650&fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=5079b62bca74146577668a03464fdff7 1650w, https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/6f860c1c58dd722a.png?w=2500&fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=ecd8230e580a7a567d3ea1e584bccf19 2500w" />
</Frame>

3. Locate the `Google Tag Manager Settings` section. Paste the copied GTM script URL into the custom **GTM Script URL** field.

<Frame caption="Paste the GTM Script URL">
  <img src="https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b5ef0d8d6f21bb3f.png?fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=e9ebd64c16f5a31c3fa1de87382e1b6b" alt="Paste the GTM Script URL" width="1312" height="458" data-path="images/fb/b5ef0d8d6f21bb3f.png" />
</Frame>

4. **Save** your settings.

Upmind will now load your specified GTM script across your site, enabling tag management through Google Tag Manager.
