{"id":1366,"date":"2023-09-24T20:59:17","date_gmt":"2023-09-24T19:59:17","guid":{"rendered":"https:\/\/organicdigital.co\/blog\/?p=1366"},"modified":"2026-09-23T04:01:17","modified_gmt":"2026-09-23T03:01:17","slug":"a-rough-guide-to-google-tag-manager","status":"publish","type":"post","link":"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/","title":{"rendered":"A Rough Guide to Google Tag Manager: Uses, Benefits &amp; SEO"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>TL;DR:<\/strong> <br>Google Tag Manager is a free tag management system that lets you deploy and control analytics, advertising and other tracking without repeatedly changing the underlying website code. I use GTM for everything from GA4 and conversion tracking to custom event measurement and some SEO implementations. This guide explains what GTM does, how tags, triggers and variables work, its main uses and advantages, its impact on website performance, and where it can be useful for SEO.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#Why_I_use_Google_Tag_Manager\" >Why I use Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_is_Google_Tag_Manager\" >What is Google Tag Manager?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_can_you_use_Google_Tag_Manager_for\" >What can you use Google Tag Manager for?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_are_the_main_features_of_Google_Tag_Manager\" >What are the main features of Google Tag Manager?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_is_the_difference_between_Google_Tag_Manager_and_Google_Analytics\" >What is the difference between Google Tag Manager and Google Analytics?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#How_do_tags_triggers_and_variables_work_in_Google_Tag_Manager\" >How do tags, triggers and variables work in Google Tag Manager?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_Are_Tags\" >What Are Tags?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_Are_Triggers\" >What Are Triggers?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_Are_Variables\" >What Are Variables?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#Is_Google_Tag_Manager_easy_to_use\" >Is Google Tag Manager easy to use?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_are_the_advantages_of_Google_Tag_Manager\" >What are the advantages of Google Tag Manager?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#What_are_the_limitations_of_Google_Tag_Manager\" >What are the limitations of Google Tag Manager?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#Does_Google_Tag_Manager_affect_website_performance\" >Does Google Tag Manager affect website performance?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#How_can_Google_Tag_Manager_be_used_for_SEO\" >How can Google Tag Manager be used for SEO?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#When_should_you_use_Google_Tag_Manager\" >When should you use Google Tag Manager?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#Is_Google_Tag_Manager_worth_using\" >Is Google Tag Manager worth using?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/daveashworth.co\/blog\/a-rough-guide-to-google-tag-manager\/#Useful_Google_Tag_Manager_Resources\" >Useful Google Tag Manager Resources<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_I_use_Google_Tag_Manager\"><\/span>Why I use Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the last 18 months, digital marketing discussions focused heavily on the launch of GA4 and the upcoming retirement of Universal Analytics. During this time, Google Tag Manager (GTM) also gained prominence as the recommended method for implementing GA4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As a <a href=\"https:\/\/daveashworth.co\/skills\/google-tag-manager-consultant\/\">Google Tag Manager consultant,<\/a> I have used GTM for all GA4 setups. GTM&#8217;s flexibility allows capturing comprehensive user engagement data on client websites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many clients were not familiar with GTM but expressed interest in learning more about it when I mentioned using it for their GA4 setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re among those intrigued by the potential of GTM and want a clearer understanding, this guide is as good a starting point as any (in my opinon anyway).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Google_Tag_Manager\"><\/span>What is Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager (GTM) is a free tag management system from Google that allows you to add, manage and control tracking and other code on a website without having to repeatedly change the website&#8217;s underlying code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Rather than adding Google Analytics, Google Ads, Meta, Hotjar and other tracking scripts directly to the website, you can manage them from a GTM container installed on the site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM can also be used for much more than simply installing tracking codes. I use it to track specific user interactions, capture additional data from websites, control when tags fire and, where necessary, implement certain technical or SEO changes when modifying the website directly isn&#8217;t practical.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The basic principle is relatively simple: <strong>tags<\/strong> determine what happens, <strong>triggers<\/strong> determine when it happens, and <strong>variables<\/strong> provide the information needed by the tags and triggers. I&#8217;ll explain each of those in more detail below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"587\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/organic-digital-gtm-1024x587.jpg\" alt=\"Organic Digital GTM Account\" class=\"wp-image-1368\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/organic-digital-gtm-1024x587.jpg 1024w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/organic-digital-gtm-300x172.jpg 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/organic-digital-gtm-150x86.jpg 150w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/organic-digital-gtm-768x440.jpg 768w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/organic-digital-gtm.jpg 1227w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_can_you_use_Google_Tag_Manager_for\"><\/span>What can you use Google Tag Manager for?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager is probably best known for installing analytics and advertising tags, but its capabilities go considerably further than that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the things I regularly use GTM for include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Google Analytics 4 tracking<\/strong> &#8211; deploying GA4 and sending custom events and parameters.<br><\/li>\n\n\n\n<li><strong>Conversion tracking<\/strong> &#8211; measuring form submissions, purchases, phone clicks and other important actions.<br><\/li>\n\n\n\n<li><strong>Advertising tags<\/strong> &#8211; implementing Google Ads, Meta and other advertising or remarketing tags.<br><\/li>\n\n\n\n<li><strong>Click tracking<\/strong> &#8211; measuring internal links, outbound links, buttons, banners and other clickable elements.<br><\/li>\n\n\n\n<li><strong>Form tracking<\/strong> &#8211; recording form submissions and other form interactions.<br><\/li>\n\n\n\n<li><strong>Scroll and visibility tracking<\/strong> &#8211; measuring whether users reach particular parts of a page or see specific elements.<br><\/li>\n\n\n\n<li><strong>Capturing website data<\/strong> &#8211; using variables and the data layer to pass additional information into analytics and marketing platforms.<br><\/li>\n\n\n\n<li><strong>Controlling when tags fire<\/strong> &#8211; limiting tracking to particular pages, URLs, events, users or other conditions.<br><\/li>\n\n\n\n<li><strong>SEO implementations<\/strong> &#8211; GTM can also be useful as a fallback for certain technical SEO changes when you can&#8217;t modify the website directly.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">One of the main reasons I use GTM so extensively is that these different requirements can all be managed through the same container rather than implementing each piece of tracking independently in the website code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_are_the_main_features_of_Google_Tag_Manager\"><\/span>What are the main features of Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GTM has several features that make it considerably easier to manage, test and maintain tracking implementations than adding individual scripts directly to a website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Centralised tag management<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Tags for analytics, advertising and other platforms can be managed from a single GTM container rather than being implemented separately throughout the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Preview and debugging<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM&#8217;s Preview mode lets you test an implementation before publishing it. You can see which tags fired, which didn&#8217;t, what triggered them and the values available to your variables. I use this extensively when building and troubleshooting tracking.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Triggers and variables<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Tags don&#8217;t simply have to fire on every page. Triggers let you control precisely when something happens, while variables allow you to capture and pass information dynamically. We&#8217;ll look at these in more detail below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Version history<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Each published container creates a version, giving you a record of previous implementations and the ability to return to an earlier version if something goes wrong.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>User permissions<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM provides different levels of account and container access, which is useful when several people or agencies are working on the same implementation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Custom HTML and JavaScript<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;re not limited to Google&#8217;s built-in tag templates. GTM can also run Custom HTML and use Custom JavaScript variables, which considerably expands what you can do with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_the_difference_between_Google_Tag_Manager_and_Google_Analytics\"><\/span>What is the difference between Google Tag Manager and Google Analytics?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager and Google Analytics perform different jobs, although they&#8217;re commonly used together.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Google Tag Manager manages and deploys tags.<\/strong> It controls what tracking or other code runs, when it runs and what information is passed to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Google Analytics 4 collects and reports data.<\/strong> It receives information about page views, events, users and other interactions and makes that data available for analysis.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, I might use GTM to detect when somebody submits a contact form and then send a <code>generate_lead<\/code> event to GA4. GTM handles the detection and sends the event, while GA4 receives and reports it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM isn&#8217;t an alternative to Google Analytics. It&#8217;s the mechanism I generally use to implement and control the tracking that sends data to GA4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_do_tags_triggers_and_variables_work_in_Google_Tag_Manager\"><\/span>How do tags, triggers and variables work in Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tags, triggers and variables are the building blocks of most Google Tag Manager implementations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest way to think about them is:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Tags<\/strong> determine what GTM should do.<br><\/li>\n\n\n\n<li><strong>Triggers<\/strong> determine when it should happen.<br><\/li>\n\n\n\n<li><strong>Variables<\/strong> provide the information needed to make it happen.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you could use a trigger to detect a contact form submission, variables to capture information about that interaction, and a GA4 tag to send the resulting event to Google Analytics.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Are_Tags\"><\/span>What Are Tags?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Tags are the tracking or code that GTM executes when the required conditions are met.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They can be used to send information to platforms such as Google Analytics and Google Ads, or to run other code through GTM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, a GA4 event tag might send an event when somebody submits a form, clicks a particular link or completes another interaction you want to measure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM includes templates for commonly used platforms, while Custom HTML tags provide considerably more flexibility when a built-in template isn&#8217;t available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>GA4 Tag<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"426\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/ga-tag.jpg\" alt=\"GA4 Tag\" class=\"wp-image-1384\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/ga-tag.jpg 600w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/ga-tag-300x213.jpg 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/ga-tag-150x107.jpg 150w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Are_Triggers\"><\/span>What Are Triggers?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Triggers determine when a tag should fire.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They can respond to page views and user interactions such as clicks, form submissions, scrolling and element visibility, or use conditions based on URLs, variables and other information available to GTM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, rather than firing a GA4 event tag on every page, you could configure a trigger so it only fires when somebody successfully submits a particular form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This ability to define exactly when tags should run is one of the reasons GTM can handle considerably more sophisticated tracking than simply adding scripts directly to every page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Form Submission Trigger<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"204\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/form_trigger.jpg\" alt=\"Form Submission Trigger\" class=\"wp-image-1389\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/form_trigger.jpg 600w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/form_trigger-300x102.jpg 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/form_trigger-150x51.jpg 150w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>External Link Click Trigger<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"203\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/external-link-click.jpg\" alt=\"External Link Click Trigger\" class=\"wp-image-1391\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/external-link-click.jpg 600w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/external-link-click-300x102.jpg 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/external-link-click-150x51.jpg 150w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Are_Variables\"><\/span>What Are Variables?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Variables store or return values that tags and triggers can use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM includes built-in variables for commonly needed information such as the page URL, hostname, click URL and click text. You can also create your own variables to retrieve information from the data layer, page elements, cookies, JavaScript and other sources.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, a variable could return the URL of a link somebody clicked. A trigger could then use that value to decide whether an event should fire, while the same value could be passed to GA4 as an event parameter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Variables are where GTM starts becoming particularly powerful because they allow your tracking to respond dynamically to what&#8217;s happening on the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Examples Of Variables Available On A Page<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"584\" height=\"533\" src=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/variables.jpg\" alt=\"Examples Of Variables Available On A Page\" class=\"wp-image-1393\" srcset=\"https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/variables.jpg 584w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/variables-300x274.jpg 300w, https:\/\/daveashworth.co\/blog\/wp-content\/uploads\/2023\/09\/variables-150x137.jpg 150w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Is_Google_Tag_Manager_easy_to_use\"><\/span>Is Google Tag Manager easy to use?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager is relatively easy to get started with, but there&#8217;s a big difference between installing a simple tag and building a reliable tracking implementation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Basic tasks such as adding GA4 or firing a tag on a particular page are fairly straightforward. Things become more complicated when you start working with custom events, data layers, form tracking, JavaScript variables, consent requirements and websites where the information you need isn&#8217;t readily available to GTM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Preview and debugging tools make experimentation considerably easier, but I&#8217;d still test the arse off anything before publishing it, particularly when the data is being used for conversion tracking or advertising.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s one of the things I like about GTM. You can start with relatively simple implementations, but there&#8217;s a lot more you can do with it once you understand how tags, triggers, variables and the data layer work together.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_are_the_advantages_of_Google_Tag_Manager\"><\/span>What are the advantages of Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The main advantage of Google Tag Manager is the amount of control it gives you over tracking and other tags without requiring a website code change every time something needs to be added or adjusted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the advantages I find most useful are:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Centralised management<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Analytics, advertising and other tags can be managed from one container rather than being scattered throughout the website code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Faster implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once GTM is installed correctly, many tracking changes can be made without waiting for a developer to deploy new website code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>More flexible tracking<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Triggers and variables allow you to measure interactions that aren&#8217;t necessarily available through standard analytics tracking, including particular clicks, forms, elements and website states.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Testing before publishing<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Preview mode lets you inspect what&#8217;s happening before changes go live, while container versions provide a history of published implementations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Reusable implementations<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you&#8217;ve developed a reliable approach to something such as form tracking or outbound link measurement, the underlying technique can often be adapted for other websites and requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Better separation of tracking from website functionality<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keeping analytics and marketing tags within GTM can make them easier to identify, maintain and troubleshoot than having unrelated tracking scripts implemented in different parts of a website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_are_the_limitations_of_Google_Tag_Manager\"><\/span>What are the limitations of Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager is extremely flexible, but that doesn&#8217;t mean everything should be implemented through it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the main limitations and risks are:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>It doesn&#8217;t remove the need for developers<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM can reduce the number of website changes needed for tracking, but more complex implementations often still require development work. A well-structured data layer, for example, may need information to be pushed from the website into GTM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>It&#8217;s possible to break things<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Custom HTML and JavaScript give you considerable freedom, which also means poorly written or incorrectly configured tags can cause problems. Changes should always be tested before they&#8217;re published.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Containers can become difficult to manage<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Over time, GTM containers can accumulate old tags, duplicate tracking, inconsistent naming and triggers nobody is quite sure are still needed. I&#8217;ve seen plenty of containers where years of additions have made troubleshooting considerably harder than it needs to be.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>GTM doesn&#8217;t make third-party scripts free<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Adding a script through GTM doesn&#8217;t remove its performance cost. If your container loads numerous analytics, advertising, heatmap and other third-party scripts, those scripts can still affect website performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>It&#8217;s not always the best implementation method<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Just because something <em>can<\/em> be done through GTM doesn&#8217;t mean that&#8217;s where I&#8217;d choose to do it. I&#8217;ve used GTM as a workaround for things such as structured data and robots directives when direct website changes weren&#8217;t practical, but I&#8217;d generally prefer to implement those changes within the website itself where possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Does_Google_Tag_Manager_affect_website_performance\"><\/span>Does Google Tag Manager affect website performance?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, Google Tag Manager can affect website performance, but the important distinction is between <strong>GTM itself and the tags you deploy through it<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM loads tags asynchronously, but that doesn&#8217;t mean everything added to a container is free from a performance perspective. Analytics scripts, advertising pixels, heatmaps, Custom HTML and other third-party tags still require browser resources and can contribute to additional JavaScript execution, network requests and main-thread work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is where <strong>GTM bloat<\/strong> can become a problem. Over time, a container can accumulate tags that are duplicated, no longer needed or firing far more often than necessary.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I wouldn&#8217;t remove GTM simply because a performance test identifies scripts loaded through it. Instead, I&#8217;d look at <strong>what the container is actually loading<\/strong> and whether every tag needs to be there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the things I&#8217;d check include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>tags firing on every page when they only need to run on particular pages<br><\/li>\n\n\n\n<li>old advertising or tracking tags that are no longer required<br><\/li>\n\n\n\n<li>duplicate analytics implementations<br><\/li>\n\n\n\n<li>unnecessary Custom HTML and third-party scripts<br><\/li>\n\n\n\n<li>tags firing multiple times for the same interaction<br><\/li>\n\n\n\n<li>whether triggers can be made more selective<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">GTM can make tracking easier to manage, but a badly maintained container can still contribute to website bloat. Good tag management includes periodically reviewing what&#8217;s being loaded, not simply continuing to add new tags indefinitely.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_can_Google_Tag_Manager_be_used_for_SEO\"><\/span>How can Google Tag Manager be used for SEO?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager isn&#8217;t an SEO tool in the traditional sense, but I&#8217;ve found it extremely useful for both SEO measurement and certain technical implementations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of its biggest uses for SEO is <strong>measurement<\/strong>. GTM can track interactions that help you understand what users do after arriving from search, including internal link clicks, downloads, form submissions, telephone clicks and engagement with particular page elements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It can also be useful for <strong>technical SEO implementations when you can&#8217;t make the required change directly to the website<\/strong>. I&#8217;ve used GTM to implement or control things such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>structured data<\/li>\n\n\n\n<li>robots <code>noindex<\/code> directives<\/li>\n\n\n\n<li>conditional changes based on URLs or page content<\/li>\n\n\n\n<li>tracking across different website environments<\/li>\n\n\n\n<li>custom analytics events for SEO landing pages and user journeys<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">I treat GTM as a fallback for technical changes rather than automatically choosing it over a direct website implementation. If I can add structured data or a robots directive properly through the website, that&#8217;s generally where I&#8217;d rather do it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Where GTM becomes particularly useful is when the CMS, platform or development process prevents you from making the change you actually need. In those situations, it can give you another route to solving the problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve covered several practical examples elsewhere, including <a href=\"https:\/\/daveashworth.co\/blog\/how-to-implement-robots-noindex-tag-with-google-tag-manager\/\">implementing noindex with Google Tag Manager<\/a>, tracking link and banner clicks and <a href=\"https:\/\/daveashworth.co\/blog\/localbusiness-schema-for-multiple-locations\/\">using Local Business schema and GTM across multiple store locations<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"When_should_you_use_Google_Tag_Manager\"><\/span>When should you use Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager makes the most sense when you need more control over how tracking and other tags are implemented and maintained.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;d particularly consider using GTM when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>you&#8217;re implementing GA4, Google Ads or other marketing and analytics platforms<br><\/li>\n\n\n\n<li>you need to track interactions that aren&#8217;t measured automatically<br><\/li>\n\n\n\n<li>several different tags need to be managed across the website<br><\/li>\n\n\n\n<li>tracking requirements are likely to change regularly<br><\/li>\n\n\n\n<li>you need to use variables or the data layer to capture additional information<br><\/li>\n\n\n\n<li>you want to test and debug tracking before publishing it<br><\/li>\n\n\n\n<li>direct changes to the website are difficult and GTM provides a practical alternative<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For a very simple website with minimal tracking requirements, GTM isn&#8217;t necessarily essential. But once tracking becomes more sophisticated, I find having a properly managed GTM container considerably easier than maintaining lots of separate implementations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Is_Google_Tag_Manager_worth_using\"><\/span>Is Google Tag Manager worth using?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For most websites where I&#8217;m implementing anything beyond very basic analytics, yes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google Tag Manager gives me considerably more control over what gets measured, when tags fire and what information is passed to analytics and advertising platforms. It also gives me a practical way to test and debug implementations before they go live.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The important thing is not to treat GTM as a dumping ground for every script you might ever want to add to a website. Containers need maintaining, unnecessary tags can affect performance, and some changes are still better implemented directly within the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Used properly, though, GTM is one of the most useful tools I work with for analytics, conversion tracking and the occasional SEO problem that would otherwise be difficult to solve.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need help planning, implementing or troubleshooting a more complex setup, take a look at my <a href=\"https:\/\/daveashworth.co\/skills\/google-tag-manager-consultant\/\">Google Tag Manager consultancy<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Useful_Google_Tag_Manager_Resources\"><\/span>Useful Google Tag Manager Resources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To help you understand and make the most of tools like Google Tag Manager, I&#8217;ve curated a list of resources that are both insightful and practical:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/marketingplatform.google.com\/about\/tag-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Tag Manager<\/a><br><\/li>\n\n\n\n<li><a href=\"https:\/\/www.simoahava.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Simo Ahava &#8211; Google Tag Manager Expert Blogger<\/a><br><\/li>\n\n\n\n<li><a href=\"https:\/\/www.analyticsmania.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Analytics Mania &#8211; A web analytics blog about GTM and GA by Julius Fedorovicius<\/a><\/li>\n<\/ul>\n\n\n\n<script type=\"application\/ld+json\">\n{\n\t\"@context\": \"https:\/\/schema.org\",\n\t\"@type\": \"FAQPage\",\n\t\"mainEntity\": \n\t[\n\t\t{\n\t\t\t\"@type\": \"Question\",\n\t\t\t\"name\": \"What is Google Tag Manager?\",\n\t\t\t\"acceptedAnswer\": \n\t\t\t{\n\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\"text\": \"Google Tag Manager is a free tool that allows marketers, SEO professionals, and webmasters to deploy and manage code snippets (tags) on a website or app without having to modify the code directly. It acts as a middleman, enabling users to implement a variety of tags including analytics tracking, remarketing, and more.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"Question\",\n\t\t\t\"name\": \"What is the difference between Google Tag Manager and Google Analytics?\",\n\t\t\t\"acceptedAnswer\": \n\t\t\t{\n\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\"text\": \"While both are tools from Google, GTM is focused on tag management across different platforms, while Google Analytics (GA) specifically captures and analyzes website traffic and user behavior. GTM can deploy the GA tag, among many others, making the two complementary rather than competitive.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"Question\",\n\t\t\t\"name\": \"Is Google Tag Manager easy to use?\",\n\t\t\t\"acceptedAnswer\": \n\t\t\t{\n\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\"text\": \"For those familiar with digital marketing and analytics, GTM offers a user-friendly interface. However, beginners may face a learning curve. With its visual triggers, tags, and variable setup, most users can quickly grasp its basics.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"Question\",\n\t\t\t\"name\": \"What Are GTM Tags?\",\n\t\t\t\"acceptedAnswer\": \n\t\t\t{\n\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\"text\": \"In essence, they are small snippets of code or tracking pixels from various third-party tools, like Google Analytics, Facebook Pixel, or Google Ads. When added to a site, these tags collect specific information about user interactions and behaviors. For example, a tag might capture when a user clicks on a specific link, views a product, or makes a purchase. However, directly adding multiple tags to a website can become cumbersome and may affect site performance. This is where Google Tag Manager (GTM) steps in, offering a centralized system to manage and deploy these tags efficiently without cluttering the site's code.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"Question\",\n\t\t\t\"name\": \"What Are GTM Triggers?\",\n\t\t\t\"acceptedAnswer\": \n\t\t\t{\n\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\"text\": \"Triggers are the conditions or rules set within GTM that determine when a specific tag should be activated or 'fire'. Triggers play a crucial role, allowing tags to operate only when certain specified events or actions are detected on the site or app. For example, a trigger might be set to activate a tag only when a user clicks on a specific button or when they reach a particular page. By utilizing triggers, you can ensure that tags capture data in a contextually relevant and precise manner, thus providing more meaningful insights about user interactions.\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"@type\": \"Question\",\n\t\t\t\"name\": \"What Are GTM Variables?\",\n\t\t\t\"acceptedAnswer\": \n\t\t\t{\n\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\"text\": \"Variables add another layer of sophistication to the tagging process. They are used to store and retrieve specific values or information that can then be used by tags and triggers. For instance, a variable might capture the value of a product added to a shopping cart, the URL of the last page a user visited, or the text of a clicked button. Variables can then feed this information to tags to customize tracking or to triggers to refine when a tag fires. In GTM, there are built-in variables for common uses, but you also have the flexibility to define custom variables to cater to specific needs.\"\n\t\t\t}\n\t\t}\n\t]\n}\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re among those intrigued by the potential of GTM and want a clearer understanding, this guide is as good a starting point as any (in my opinon anyway).<\/p>\n","protected":false},"author":1,"featured_media":1397,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1366","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tag-manager"],"_links":{"self":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts\/1366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/comments?post=1366"}],"version-history":[{"count":0,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/posts\/1366\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/media\/1397"}],"wp:attachment":[{"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/media?parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/categories?post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daveashworth.co\/blog\/wp-json\/wp\/v2\/tags?post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}