> For the complete documentation index, see [llms.txt](https://docs.connected.events/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.connected.events/cookbook/set-up-your-community/first-steps-the-control-center/connect-google-tag-manager-id.md). Agents can also search and read this documentation through its [MCP server](https://docs.connected.events/~gitbook/mcp).

# Connect Google Tag Manager ID

Track client activity and analytics through custom tracking tags by connecting your Google Tag Manager ID.

## Introduction

Gain deeper insights into your community's behavior and optimize your platform's performance by integrating Google Tag Manager. The platform supports Google Tag Manager (GTM) integration on the web application, allowing administrators to easily implement custom tags, such as Google Analytics, directly into the community. By connecting your GTM account, these custom tracking tags become active across the entire web application, empowering you to effectively monitor client activity, measure engagement, and collect essential platform metrics. This guide will walk you through the simple steps to locate your community's configuration settings within the Control Center and successfully connect your [**Google Tag Manager ID**](https://docs.connected.events/ATG4PvSjQCWE8uPjtGaH/wiki/control-center/details#config) to unlock enhanced tracking and customization.

## How to Connect GTM ID

{% stepper %}
{% step %}

#### Create a Google Tag Manager Account and Container&#x20;

* Create and set up Google Tag Manager with Google.
* Locate your GTM ID.
  {% endstep %}

{% step %}

#### Navigate to Control Center Config

* Select the waffle icon (<img src="https://285465303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrgCqXYXfIqcyaNSQwMZ%2Fuploads%2F0XbXnlX25yGrDe9qGywc%2FUntitled%20(100%20x%20100%20px)%20(2).png?alt=media&amp;token=0266f5e9-62b2-45ff-bd47-a970b2354353" alt="" data-size="line">) at the top of the Admin Portal.
* Select **"Control Center"** from the bottom right of the dropdown menu.
* Ensure the **"Details"** tab is selected from the left-hand menu.
* Select **"Config"** from the top menu.
* Select **"Third Party"** from the secondary menu.&#x20;
  {% endstep %}

{% step %}

#### Input GTM ID

* In the Google Tag Manager ID field, enter your unique GTM ID.
* Select **"Update"** to finalize.
  {% endstep %}
  {% endstepper %}

<figure><img src="https://285465303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrgCqXYXfIqcyaNSQwMZ%2Fuploads%2FoZG0IAxylD09myBmE20a%2Fgtm.gif?alt=media&amp;token=5fb022c3-7167-4029-8c67-7b760e1280fe" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.connected.events/cookbook/set-up-your-community/first-steps-the-control-center/connect-google-tag-manager-id.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
