> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://www.glideapps.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://www.glideapps.com/docs/_mcp/server.

# Google Tag Manager

> Track user behavior with Google Tag Manager.

[Google Tag Manager](https://tagmanager.google.com/#/home) (GTM) is a tag management system for web analytics. GTM is a powerful tool that simplifies the process of managing and deploying tags on your website. Tags are snippets of code that collect data and send it to third-party tools, such as analytics platforms or advertising platforms. GTM provides a centralized platform where you can add, update, and manage these tags without the need for manual coding each time a change is required.

With the Google Tag Manager integration, you can track user behavior in your Glide app. Data from events created with Google Tag Manager are sent to Google Analytics, so you'll need a Google Analytics account before you get started.

> **Don't see the Google Tag Manager integration?**
>
> You may need to upgrade your plan. [Browse Glide's plans and find the right fit for you.](https://www.glideapps.com/pricing)

> **New Format for Tags**
>
> Please note that Google changed the format for GTM tags in September 2023. The previous format was GTM-xxxxx. New measurement IDs start with G-xxxxx. If your previous tags stop working, you may need to update your measurement ID in the integration settings.

## Adding and Configuring the Action

#### Adding GTM Arcade

In **Glide**, click the **Settings** menu.

Find the [Integrations](/docs/automation/integrations) section and then select [Google Tag Manager](https://tagmanager.google.com/#/home).

Click **Add.**

You will need the Google Analytics 4 (GA4) **Measurement ID** to send events to Google Tag Manager and see them in Google Analytics.

If you have not created a GA4 property or configured it in Google Tag Manager, continue following the steps below.

### Creating a Google Analytics 4 Property

If you have not already created a GA4 property, you can create one in [Google Analytics](https://analytics.google.com/).

Once the GA4 property is created, you will need to create a web data stream.

The website URL for your web data stream is your app URL.

### Configuring your GA4 Property in Google Tag Manager

If you have not created a Google Tag Manager account, you can create one in [Google Tag Manager](https://tagmanager.google.com/).

During the account creation process, select web as the container type.

Configure your tag as desired to track a variety of different behaviors in your app.

For detailed instructions, you can read more in Google Tag Manager's [docs](https://support.google.com/tagmanager/answer/9442095?hl=en).

### Set up GA4 Events in Google Tag Manager

If you have not created a Google Tag Manager account, you can create one in [Google Tag Manager](https://tagmanager.google.com/).

If you have not configured your GA4 property, read the section above.

Click **New Tag** and **Google Analytics: GA4 Event** as the tag type.

Select the tag to configure its settings.

Set the name of the event you would like to send in the **Event Name** field.

To set the trigger, click the `+` button on the upper right and choose **All Elements**.

**Save** your tag to finish the tag creation process.

Make sure to **publish** to push your changes.

For detailed instructions, you can read more in [Google Tag Manager's docs](https://support.google.com/tagmanager/answer/13034206).

In the settings area of Glide, enter your GA4 Measurement ID, a required 12-character alphanumeric string (e.g., G-ABC1234567), to connect your GA4 property.

## Track custom event

The **Track custom event** action is used to send an analytics event to your Google Analytics 4 property via Google Tag Manager. To create custom events, the **Event Name** is required. You can also add additional values if needed.

The action can be added to a [Component](/docs/essentials/components) that supports [Actions](/docs/automation/actions) (e.g., a [Button component](/docs/essentials/components/button)), added to a workflow in the [Workflow Editor](/docs/getting-started/introduction-to-workflows#the-workflow-editor), or after a [Form](/docs/use-cases/forms) is submitted.

To learn more generally about Integrations in Glide, including how they affect your app's usage, check out our [Introduction to Integrations](/docs/automation/integrations).

## Frequently Asked Questions

#### Don't see the Google Tag Manager integration?

You may need to upgrade your plan. [Browse Glide's plans and find the right fit for you.](https://www.glideapps.com/pricing)

#### I ran the Send Google Tag event action in the Layout Editor and the Action Editor, but I do not see any events in Google Analytics. What's wrong?

The **Send Google Tag event** action will only fire when you open your app in a browser.

#### I opened my app in a browser, and I am clicking a button that runs the Send Google Tag event, but I do not see any events in Google Analytics. What's wrong?

Make sure that your event name matches what you have configured in Google Tag Manager. If the tag was not created, the event will not be sent to Google Analytics.