Google Tag Manager
Google Tag Manager (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.
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
Find the Integrations section and then select Google Tag Manager.
Creating a Google Analytics 4 Property
If you have not already created a GA4 property, you can create one in Google Analytics.
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.
For detailed instructions, you can read more in Google Tag Manager’s docs.
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.
For detailed instructions, you can read more in Google Tag Manager’s docs.
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 that supports Actions (e.g., a Button component), added to a workflow in the Workflow Editor, or after a Form is submitted.
To learn more generally about Integrations in Glide, including how they affect your app’s usage, check out our Introduction to 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.
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.