---
title: Setting up Google Analytics using Google Tag Manager
slug: neurons-for-itsm/admin-user-help/enu/latest/setting-up-google-analytics-using-google-tag-manager
createdAt: 2026-07-14T19:16:38.180Z
---

***Role**: Administrator.*

***Minimum Version**:&#x20;*&#x49;vanti Neurons for ITS&#x4D;*&#x20;2024.2.*

You can set up and measure analytics of Neurons for ITSM using [Google Tag Manager](https://marketingplatform.google.com/about/tag-manager/) (GTM) to measure the metrics that matters. For example, you can track the number of clicks used for keyword searches and accessing different workspaces.

:::hint{type="info"}
You can use GTM integration for the ITSM classic UI, Self Service Mobile portal, and Mobile Analyst portal also.
:::

***Prerequisites**:*

- *Ensure&#x20;*[Google Analytics](https://marketingplatform.google.com/about/analytics/)*&#x20;is integrated with&#x20;*[Google Tag Manager](https://marketingplatform.google.com/about/tag-manager/)*. To integrate **Google Analytics** with **Google Tag Manager** refer to the* [official documentation of Google Tag Manager](https://support.google.com/tagmanager/answer/9442095?hl=en).
- *&#x20;Retrieve the&#x20;*[Container ID](docId\:qbILwUq9249gjVCSLGqsa)*&#x20;from your **Google Tag Manager** and ensure the container is published*.

:::Paragraph{indent="1"}
*Highlighting Container ID in the Google Tag Manager*
:::

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/dhRI7m8GpP6EHS3yyL_WZ_container-id-gtm.png" position="flex-start" size="40" initialPath="../../Resources/Images/GTM/container-id-gtm.png" githubPath="Content/Resources/Images/GTM/container-id-gtm.png" showCaption="false" width="1920" height="911" darkWidth="1920" darkHeight="911" indent="1"}

:::Paragraph{indent="1"}
*To retrieve **Container ID** from **Google Tag Manager** refer to the* [official documentation of Google Tag Manager](https://support.google.com/tagmanager/answer/14847097?hl=en\&ref_topic=15191151\&sjid=50419388955612946-AP).
:::

## Integrate Google Tag Manager with ITSM

Following are the steps to set up the GTM with ITSM:

1. Log in to ITSM as an Administrator.
2. Open the Configuration console > **Organization Profile** > **Account Information**.
3. Select the **Enable google tag manager** check box and enter the **Container ID** created in Google Tag Manager in the **Enter Google Tag Manager Code**.

:::Paragraph{indent="1"}
Setting up the Google Tag Manager in the Neurons for ITSM
:::

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/Jr_xBsFiOpxIYrP4v9mFt_integrate-gtm-itsm.png" alt="Setting up the Google Tag Manager in ITSM" position="flex-start" size="40" initialPath="../../Resources/Images/GTM/Integrate-GTM-ITSM.png" githubPath="Content/Resources/Images/GTM/Integrate-GTM-ITSM.png" showCaption="false" width="1013" height="469" darkWidth="1013" darkHeight="469" indent="1"}

4. Click **Save**.

## Use Cases

Create a tracking metric for the number of clicks on the Self Service Mobile portal left menu.

1. Log in to ITSM as an Administrator.
2. Log in to your [Google Tag Manager workspace](https://tagmanager.google.com/), and select **Add a new tag** from the **New Tag** section to [create a Tag](https://support.google.com/tagmanager/answer/14842872).
3. Select **Tag Configuration** > **Google Analytics** > **Google Analytics: GA4 Event**.
4. Add the [Measurement ID](docId\:qbILwUq9249gjVCSLGqsa) from [Google Analytics](https://support.google.com/analytics/answer/12270356?hl=en).
5. Click the add + icon and select the **Event Name**.
6. Under the **Event Parameter** section, set the **Parameter Name** as link\_text and the **Value** as \{\{Click Text}}.

:::hint{type="info" indent="1"}
For information on Parameter Name and Values, refer to the [analytics documentation on Google Support page](https://support.google.com/analytics/answer/13675006?hl=en).
:::

7. From the **Triggering** section, click the **Add** button and configure when the event should be triggered.
8. Set the **Trigger Type** as **Click - All Elements**.
9. Select **Some Clicks** for **This trigger fires on** option.
10. Conditions - **Click Element**, **matches CSS selector**, gtm-left-nav-menu .x-treelist-item-icon.fontawesome-icon.

:::hint{type="info" indent="1"}
You can get the CSS element by right-clicking on the application and selecting **Inspect**.
:::

11. Click **Save** and exit.

:::Paragraph{indent="1"}
The event, Click - All Elements, is created. Now every time the left menu is clicked, the tag is triggered and the analytics are captured.
:::

## Concepts

:::ExpandableHeading
## Measurement ID

**Measurement ID** is a unique identifier for web data stream in Google Analytics. The Measurement ID format is 'G-' followed by a mix of numbers and letters, such as 'G-PSW1MY7HB4.' For more information refer to [\[GA4\] Measurement ID](https://support.google.com/analytics/answer/12270356?hl=en).

*Highlighting Measurement ID in the Google Analytics*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/ArdtuTawgmpMrLpvz__9g_measurement-id-ga.png" position="flex-start" size="40" initialPath="../../Resources/Images/GTM/measurement-id-ga.png" githubPath="Content/Resources/Images/GTM/measurement-id-ga.png" showCaption="false" width="1920" height="1031" darkWidth="1920" darkHeight="1031"}
:::

:::ExpandableHeading
## Container ID

**Container ID** is an identification code of container created in the Google Tag Manager. The Container ID format is \`GTM-\` followed by a mix of alpha-numeric string, such as \`GTM-T63FA3VC\`. For more information refer to [Install a web container](https://support.google.com/tagmanager/answer/14847097).

*Highlighting Container ID in the Google Tag Manager*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/dhRI7m8GpP6EHS3yyL_WZ_container-id-gtm.png" position="flex-start" size="40" initialPath="../../Resources/Images/GTM/container-id-gtm.png" githubPath="Content/Resources/Images/GTM/container-id-gtm.png" showCaption="false" width="1920" height="911" darkWidth="1920" darkHeight="911"}
:::
