{"id":8672,"date":"2026-11-01T09:32:47","date_gmt":"2026-11-01T02:32:47","guid":{"rendered":"https:\/\/adtek.agency\/glossary\/google-tag-manager\/"},"modified":"2026-11-01T09:32:47","modified_gmt":"2026-11-01T02:32:47","slug":"google-tag-manager","status":"publish","type":"mona_glossary","link":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/","title":{"rendered":"Google Tag Manager (GTM)"},"content":{"rendered":"<p>Google Tag Manager (GTM) is Google&#8217;s tag management system: it lets you set up and manage measurement and advertising code on a website or app without editing the site&#8217;s code each time. You add 2 GTM snippets to every page once, then add, change or pause tags in the Tag Manager web interface.<\/p>\n<h2>What is Google Tag Manager?<\/h2>\n<p>Once GTM is installed, your website or app can communicate with the Tag Manager servers. You build tags, set triggers that fire them when certain events happen, and create variables that simplify your configuration. The full set of tags, triggers and variables for one site or app is called a container. A container can replace all other manually coded tags on a site, including tags from Google Ads, Google Analytics, Floodlight and third parties (<a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6102821?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">Tag Manager Help, Introduction to Tag Manager, accessed November 2026<\/a>).<\/p>\n<p>Most companies need only one GTM account, with one container per website or app. There are 5 container types: Web, iOS, Android, AMP and Server. A web container is named after the site&#8217;s top-level URL; you do not need a container for each page (<a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6103696?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">Tag Manager Help, Create an account and container, accessed November 2026<\/a>).<\/p>\n<h2>Tags, triggers and variables<\/h2>\n<table>\n<thead>\n<tr>\n<th>Component<\/th>\n<th>What it is<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Tag<\/td>\n<td>Code from an analytics or advertising vendor. GTM ships with many tag templates; for anything not covered, use a custom tag or a custom template.<\/td>\n<td>A GA4 event tag, a Google Ads conversion tag<\/td>\n<\/tr>\n<tr>\n<td>Trigger<\/td>\n<td>Listens for events such as a form submission or a video play, and decides whether a tag fires or is blocked.<\/td>\n<td>Page View where the URL contains &#8220;\/thank-you\/&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Variable<\/td>\n<td>A changing value used as a filter in triggers or passed into tags. There are built-in and user-defined variables.<\/td>\n<td>Page URL, order value<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Sources: <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/3281060?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">About Tags<\/a>, <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6106961?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">About triggers<\/a> and <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6106899?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">Variables<\/a>, Tag Manager Help, accessed November 2026.<\/p>\n<h2>Google Tag Manager vs. the Google tag (gtag.js)<\/h2>\n<p>The Google tag (gtag.js) is a single snippet that sends data to Google Ads and GA4, and it can only send data to Google services. To measure custom events with gtag.js, you need to be comfortable editing JavaScript on your site. GTM takes 2 snippets and manages both Google and third-party tags from its interface. Google notes that you can start with the Google tag and migrate to GTM later (<a href=\"https:\/\/support.google.com\/tagmanager\/answer\/7582054?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">Tag Manager Help, Google Tag Manager vs. gtag.js, accessed November 2026<\/a>).<\/p>\n<p>If you only need page views and a few Google Ads conversions, the Google tag is enough. Once you also track forms, calls, and Meta or TikTok tags, GTM saves time because you stop waiting on a developer for every change.<\/p>\n<h2>Preview before you publish<\/h2>\n<p>Preview and debug mode lets you browse your site as if the current container draft were published. The site connects to Tag Assistant, so you can see which tags fired, in what order and with what data. The debug interface appears only in the browser that enabled preview, or for people you share the preview link with; regular visitors do not see it (<a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6107056?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">Tag Manager Help, Preview and debug containers, accessed November 2026<\/a>).<\/p>\n<h2>Example: tracking a lead form with GTM (hypothetical)<\/h2>\n<p>A real estate project has a sign-up form that redirects to a \/thank-you\/ page. In GTM:<\/p>\n<ol>\n<li>Create a Page View trigger where Page URL contains &#8220;\/thank-you\/&#8221;.<\/li>\n<li>Attach it to 2 tags: a <a href=\"\/en\/glossary\/google-analytics-4\/\">GA4<\/a> generate_lead event tag and a Google Ads conversion tag.<\/li>\n<li>Click Preview, submit a test form, check that both tags show as Fired, then Publish.<\/li>\n<\/ol>\n<p>Next month GA4 records 120 leads and Google Ads spends VND 36 million. <a href=\"\/en\/glossary\/cpa\/\">CPA<\/a> is VND 300,000 per lead. Without tracking, you would have no number to compare against other channels.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>If I use GTM, do I still need Consent Mode?<\/h3>\n<p>Yes, if your site shows a cookie consent banner. GTM is where tags live; <a href=\"\/en\/glossary\/consent-mode\/\">Consent Mode<\/a> controls how those tags behave before a user consents. Tag Manager Help has a whole section on managing consent with Consent Mode.<\/p>\n<h3>What is server-side GTM?<\/h3>\n<p>Besides web containers, GTM offers server containers: measurement data is processed on a server you control rather than in the user&#8217;s browser (<a href=\"https:\/\/developers.google.com\/tag-platform\/tag-manager\/server-side\/intro\" target=\"_blank\" rel=\"nofollow noopener\">Google for Developers, An introduction to server-side tagging, accessed November 2026<\/a>). For when to switch, see our guide to <a href=\"\/en\/server-side-tracking-marketing-analytics\/\">server-side tracking and marketing analytics<\/a>.<\/p>\n<p>If you need an audit of the tags, triggers and conversions you send to Google Ads and Meta, <a href=\"\/en\/contact\/\">contact Adtek<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Tag Manager (GTM) is Google&#8217;s tag management system: it lets you set up and manage measurement and advertising code on a website or app without editing the site&#8217;s code each time. You add 2 GTM snippets to every page once, then add, change or pause tags in the Tag Manager web interface. What is [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_yoast_wpseo_title":"Google Tag Manager: What It Is, Tags, Triggers, Variables","_yoast_wpseo_metadesc":"What is Google Tag Manager? Google's tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.","_yoast_wpseo_meta-robots-noindex":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_opengraph-image-id":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_twitter-image-id":"","inline_featured_image":false,"_adtek_glossary_topic":"do-luong-phan-bo","footnotes":""},"category_glossary":[32],"class_list":["post-8672","mona_glossary","type-mona_glossary","status-publish","hentry","category_glossary-g"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Google Tag Manager: What It Is, Tags, Triggers, Variables<\/title>\n<meta name=\"description\" content=\"What is Google Tag Manager? Google&#039;s tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Tag Manager: What It Is, Tags, Triggers, Variables\" \/>\n<meta property=\"og:description\" content=\"What is Google Tag Manager? Google&#039;s tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Adtek Growth Marketing Agency\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/101888089257566\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adtek.agency\/wp-content\/uploads\/2026\/10\/og-default.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/glossary\\\/google-tag-manager\\\/\",\"url\":\"https:\\\/\\\/adtek.agency\\\/en\\\/glossary\\\/google-tag-manager\\\/\",\"name\":\"Google Tag Manager: What It Is, Tags, Triggers, Variables\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/#website\"},\"datePublished\":\"2026-11-01T02:32:47+00:00\",\"description\":\"What is Google Tag Manager? Google's tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/glossary\\\/google-tag-manager\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adtek.agency\\\/en\\\/glossary\\\/google-tag-manager\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/glossary\\\/google-tag-manager\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adtek.agency\\\/en\\\/homepage\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Glossary\",\"item\":\"https:\\\/\\\/adtek.agency\\\/en\\\/glossary\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Google Tag Manager (GTM)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/adtek.agency\\\/en\\\/\",\"name\":\"Adtek\",\"description\":\"Adtek was founded in 2021 to help brands grow their businesses from branding building to revenue growth.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/#organization\"},\"alternateName\":\"Adtek Growth Marketing Agency\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adtek.agency\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/#organization\",\"name\":\"Adtek\",\"alternateName\":\"Adtek Growth Marketing Agency\",\"url\":\"https:\\\/\\\/adtek.agency\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adtek.agency\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/logo-adtek.png\",\"contentUrl\":\"https:\\\/\\\/adtek.agency\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/logo-adtek.png\",\"width\":440,\"height\":369,\"caption\":\"Adtek\"},\"image\":{\"@id\":\"https:\\\/\\\/adtek.agency\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/101888089257566\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adtek-growth-marketing-agency\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@adtek.growth.marketing\",\"https:\\\/\\\/www.google.com\\\/search?kgmid=\\\/g\\\/11x7pm71mh\"],\"email\":\"contact@adtek.agency\",\"telephone\":\"+84932349434\",\"legalName\":\"C\u00f4ng ty C\u1ed5 ph\u1ea7n Adtek Technology\",\"foundingDate\":\"2022-05-05\",\"description\":\"Adtek l\u00e0 growth marketing agency t\u1ea1i Vi\u1ec7t Nam, gi\u00fap th\u01b0\u01a1ng hi\u1ec7u t\u0103ng tr\u01b0\u1edfng t\u1eeb x\u00e2y d\u1ef1ng th\u01b0\u01a1ng hi\u1ec7u \u0111\u1ebfn doanh thu: Brand Commerce, qu\u1ea3ng c\u00e1o hi\u1ec7u su\u1ea5t, SEO v\u00e0 AI Search, d\u1eef li\u1ec7u v\u00e0 CRM, th\u01b0\u01a1ng m\u1ea1i \u0111i\u1ec7n t\u1eed.\",\"taxID\":\"0317120810\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"146 Bis Nguy\u1ec5n V\u0103n Th\u1ee7\",\"addressLocality\":\"Ph\u01b0\u1eddng T\u00e2n \u0110\u1ecbnh\",\"addressRegion\":\"TP. H\u1ed3 Ch\u00ed Minh\",\"addressCountry\":\"VN\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Tag Manager: What It Is, Tags, Triggers, Variables","description":"What is Google Tag Manager? Google's tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"Google Tag Manager: What It Is, Tags, Triggers, Variables","og_description":"What is Google Tag Manager? Google's tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.","og_url":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/","og_site_name":"Adtek Growth Marketing Agency","article_publisher":"https:\/\/www.facebook.com\/101888089257566","og_image":[{"width":1200,"height":630,"url":"https:\/\/adtek.agency\/wp-content\/uploads\/2026\/10\/og-default.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/","url":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/","name":"Google Tag Manager: What It Is, Tags, Triggers, Variables","isPartOf":{"@id":"https:\/\/adtek.agency\/en\/#website"},"datePublished":"2026-11-01T02:32:47+00:00","description":"What is Google Tag Manager? Google's tag management system explained: tags, triggers, variables, GTM vs gtag.js, preview mode and a lead form example.","breadcrumb":{"@id":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/adtek.agency\/en\/glossary\/google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adtek.agency\/en\/homepage\/"},{"@type":"ListItem","position":2,"name":"Glossary","item":"https:\/\/adtek.agency\/en\/glossary\/"},{"@type":"ListItem","position":3,"name":"Google Tag Manager (GTM)"}]},{"@type":"WebSite","@id":"https:\/\/adtek.agency\/en\/#website","url":"https:\/\/adtek.agency\/en\/","name":"Adtek","description":"Adtek was founded in 2021 to help brands grow their businesses from branding building to revenue growth.","publisher":{"@id":"https:\/\/adtek.agency\/en\/#organization"},"alternateName":"Adtek Growth Marketing Agency","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adtek.agency\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/adtek.agency\/en\/#organization","name":"Adtek","alternateName":"Adtek Growth Marketing Agency","url":"https:\/\/adtek.agency\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/adtek.agency\/en\/#\/schema\/logo\/image\/","url":"https:\/\/adtek.agency\/wp-content\/uploads\/2022\/03\/logo-adtek.png","contentUrl":"https:\/\/adtek.agency\/wp-content\/uploads\/2022\/03\/logo-adtek.png","width":440,"height":369,"caption":"Adtek"},"image":{"@id":"https:\/\/adtek.agency\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/101888089257566","https:\/\/www.linkedin.com\/company\/adtek-growth-marketing-agency\/","https:\/\/www.tiktok.com\/@adtek.growth.marketing","https:\/\/www.google.com\/search?kgmid=\/g\/11x7pm71mh"],"email":"contact@adtek.agency","telephone":"+84932349434","legalName":"C\u00f4ng ty C\u1ed5 ph\u1ea7n Adtek Technology","foundingDate":"2022-05-05","description":"Adtek l\u00e0 growth marketing agency t\u1ea1i Vi\u1ec7t Nam, gi\u00fap th\u01b0\u01a1ng hi\u1ec7u t\u0103ng tr\u01b0\u1edfng t\u1eeb x\u00e2y d\u1ef1ng th\u01b0\u01a1ng hi\u1ec7u \u0111\u1ebfn doanh thu: Brand Commerce, qu\u1ea3ng c\u00e1o hi\u1ec7u su\u1ea5t, SEO v\u00e0 AI Search, d\u1eef li\u1ec7u v\u00e0 CRM, th\u01b0\u01a1ng m\u1ea1i \u0111i\u1ec7n t\u1eed.","taxID":"0317120810","address":{"@type":"PostalAddress","streetAddress":"146 Bis Nguy\u1ec5n V\u0103n Th\u1ee7","addressLocality":"Ph\u01b0\u1eddng T\u00e2n \u0110\u1ecbnh","addressRegion":"TP. H\u1ed3 Ch\u00ed Minh","addressCountry":"VN"}}]}},"_links":{"self":[{"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/mona_glossary\/8672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/mona_glossary"}],"about":[{"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/types\/mona_glossary"}],"author":[{"embeddable":true,"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/comments?post=8672"}],"version-history":[{"count":0,"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/mona_glossary\/8672\/revisions"}],"wp:attachment":[{"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/media?parent=8672"}],"wp:term":[{"taxonomy":"category_glossary","embeddable":true,"href":"https:\/\/adtek.agency\/en\/wp-json\/wp\/v2\/category_glossary?post=8672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}