<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Google Tag Manager - Medium]]></title>
        <description><![CDATA[A deep dive into the world of tag management. - Medium]]></description>
        <link>https://medium.com/google-tag-manager?source=rss----537e1944b1ed---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Google Tag Manager - Medium</title>
            <link>https://medium.com/google-tag-manager?source=rss----537e1944b1ed---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:05:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/google-tag-manager" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why You Should Be Using a Tag Management System]]></title>
            <link>https://medium.com/google-tag-manager/why-you-should-be-using-a-tag-management-system-93cb3f191a6?source=rss----537e1944b1ed---4</link>
            <guid isPermaLink="false">https://medium.com/p/93cb3f191a6</guid>
            <category><![CDATA[google-tag-manager]]></category>
            <category><![CDATA[tag-management-system]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Sumit Mudliar]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 00:15:57 GMT</pubDate>
            <atom:updated>2020-04-25T00:19:28.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*huWoi2BqsZ0D39lRkBOIag.png" /></figure><p>Accurate tracking and measurability are the backbone of any data driven initiative. It is one of the primary advantages that digital advertising offers over more traditional channels. We can see a customer’s journey through a site, re-engage with previous visitors who have already shown interest, and get a deep understanding of what kind of ROI we are generating on our ad spend.</p><p>In order to achieve this, there is typically a small (and sometimes significant) amount of upfront work that is needed. This work comes in the form of installing tracking tags, also known as web beacons or pixels (fun fact: most tracking tags today are actually JavaScript snippets and, technically speaking, not pixels at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*XSgSH59KV7lzhiY781L8wQ.png" /></figure><p>Early on, however, the majority were invisible image tags that were the size of a literal individual pixel, which is where this name comes from). The installation of these tracking tags can be cumbersome for many organizations, and a major pain point for agencies who are relying on the data these tags capture to run a successful campaign. Fortunately, we now have access to some great platforms that make this process significantly easier than it was several years ago. I’m referring to tag management systems (TMS).</p><p>Many of you may be reading this and thinking this is old news by now, and if you are that’s great, as it means you are likely already utilizing one. But the fact of the matter is that an overwhelming amount of organizations <em>still</em> aren’t taking advantage of this technology. There are some great TMS’s out there now, such as Google Tag Manager (GTM), Tealium, Adobe’s new Launch Platform, and many more. Some of these are even free, like GTM, so the barrier to entry is practically nonexistent. We won’t be diving into how to use these platforms as that falls outside the scope of this article, but rather why you should be using one regardless of your company size.</p><p>Let’s dive in.</p><h3>What Is a Tag Management Solution?</h3><p>A tag management solution or system (TMS) allows you to keep all the tags on your website inside of a single master set of code. That means your employees no longer need to work directly with the code for each tag that needs to be added, deleted, or modified.</p><p>They also won’t need to send a request to IT for any tag management, because the TMS provides an interface that allows employees to control how the TMS deploys tags.</p><p>Besides being convenient, a TMS can make your web pages load more quickly by controlling the way your tags load. It can save you money by reducing the number of duplicate tags you may be paying for unnecessarily. It can also help you follow data privacy laws better.</p><h3>How Does Tag Management Work?</h3><p>A TMS provides an easy-to-use interface. With it, non-IT professionals can set rules about when each tag will “fire” (run). Marketers, analysts, and others who are authorized can access and update these rules.</p><p>One of the most common and serious problems on company websites is broken tags. On a large corporate website, it’s easy for tags to be lost, wrongly duplicated, unauthorized, and poorly configured, because they’re running so many times across so many web pages.</p><p>A TMS allows you to see and correct many of these problems in one place. The interface may even allow employees to select, delete, and edit tags with the click of a mouse.</p><h3>What Is Tag Firing?</h3><p>A tag “fires” when its code runs on a web page. With a TMS, employees don’t have to manually write a tag’s code on each web page. Instead, the TMS executes the code of a tag on a designated web page based on rules employees have entered.</p><p>The TMS can fire tags in response to trigger events, which can include page views, form submissions, a certain amount of time passing, and many others. You can also set tags to fire only within designated times and dates.</p><h3>What Is Tag Management in Digital Marketing?</h3><p>Tags can add tracking, A/B testing, advertising, and other marketing functions to web pages.</p><p>When a user visits one of your pages or takes other actions, certain tags will fire through your TMS. Then, marketers can receive notifications about those actions through email or analytics tools.</p><p>Using a TMS, digital marketers can edit and replace tags to quickly test different marketing tactics. This helps them improve the performance of marketing campaigns, using their budget more efficiently.</p><p>Plus, a TMS can speed up the load times of web pages. Faster load times contribute to less site abandonment, higher conversion rates, and increased revenue.</p><p>Without a TMS, marketers either have to wait for the IT department to change tags, or marketers may give up on asking for tags to be edited or deleted because it takes too long.</p><h3>Enter Google Tag Manager.!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/0*rHJ1HyZBacARHwQM.png" /></figure><p>Released in 2012, Google Tag Manager has quickly become one of the most widely used TMS solutions in the market. GTM makes it easy to add and update any Google AdWords tags, Google Analytics tags, DoubleClick Floodlight tags and many non-Google, third-party tags as well, directly from the TMS.</p><p>Features:</p><ul><li>Free, easy testing</li><li>Made for marketers, but IT-friendly</li><li>Convenient preview mode</li><li>Multi-account support</li></ul><p>You get a quick overview of Google Tag Manager in this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9A-i7EWXzjs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9A-i7EWXzjs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9A-i7EWXzjs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0d980263c206d60b3e092f784dd9ec8/href">https://medium.com/media/c0d980263c206d60b3e092f784dd9ec8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93cb3f191a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-tag-manager/why-you-should-be-using-a-tag-management-system-93cb3f191a6">Why You Should Be Using a Tag Management System</a> was originally published in <a href="https://medium.com/google-tag-manager">Google Tag Manager</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Google Tag Manager.]]></title>
            <link>https://medium.com/google-tag-manager/how-to-set-up-google-tag-manager-5a084395f249?source=rss----537e1944b1ed---4</link>
            <guid isPermaLink="false">https://medium.com/p/5a084395f249</guid>
            <category><![CDATA[tag-management]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <dc:creator><![CDATA[Sumit Mudliar]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 22:19:22 GMT</pubDate>
            <atom:updated>2020-04-24T22:19:22.603Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*owNkzsutmkyHf7R54TIsUA.png" /></figure><p>Google Tag Manager is a tag management system that allows you to create and monitor tags on a user interface, without writing new code each time you want to construct a tag. You simply embed the Google Tag Manager code into each page of your website. This eliminates the manual process of creating tags, making your marketing process more efficient and precise.</p><p>Google Tag Manager is free, so you can try it out virtually risk-free. Here, we’ll show you how to set up an account, how to create a new tag, how to use Google Tag Manager with your Google Analytics account.</p><h3>Set Up an Account</h3><p>Setting up a free account is an easy two-step process, but it’s separate from any of your other Google Analytics or Gmail accounts. To ensure a painless set-up for you, we’ve recorded our process for setting up an account.</p><p>Here’s what you do:</p><p><strong>1. Sign up for an account.</strong></p><p>Go to the <a href="https://marketingplatform.google.com/about/tag-manager/">Google Tag Manager</a> and click the blue “Start for free” button. Once you sign in using your Google Account. It will ask you to input your account name (company), country, and website URL, as well as where you want to use Google Tag (Web, iOS, android, AMP). When you’re finished, click the blue “Create” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1MwbBMlk0P7WISLt_hOH6w.png" /></figure><h4>2. Follow the coding instructions.</h4><p>Next, you’ll be given codes and instructions to include one code high in the &lt;head&gt; of your page, and the other after the opening &lt;body&gt; tag. You can do this now, or apply the codes to your site later (they are accessible in your dashboard). Once you’re done, click “Ok”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*z4qBzUFJ6rKSDJJumjK7Xg.png" /></figure><h3>Set Up a Tag</h3><p>Once you have a Google Tag Manager account, the first thing you’re going to want to learn is how to set up a tag.</p><p>You can create unlimited configurations of tags in Google Tag Manager.</p><p>This is helpful for creating in-depth reports on your audience’s behavior, but it can become inefficient if you don’t organize your tags properly.</p><p>Google recommends using the following naming convention:<em> tag type — name of app — detail.</em></p><p>Perhaps you name one tagging configuration, “AdWords conversions — iOS — 2020–04 campaign” and then another, “Google Analytics — CTA — About Us page”.</p><p>This way, you can correctly identify and collect data related to specific campaigns or pages.</p><p>For instance, the second tag, “Google Analytics — CTA — About Us page,” tells you how well your About Us call-to-action button is performing. That information is valuable, and might be lost if you named your tags more generally, like, “CTA button”.</p><p>Now that we’ve cleared that up, let’s check out how to set up a tag:</p><h4>1. Create a new tag in the Google Tag Manager dashboard.</h4><p>Within your Google Tag Manager dashboard, click the “Add a New Tag” button, circled below in orange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Igd3N3T46Q33k4rskgggXQ.png" /></figure><h4>2. Configure your tag.</h4><p>Title your tag, and then click anywhere in the top “Tag Configuration” box, to choose a tag type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKdUDhIG50bWb7srogvF3w.png" /></figure><h4>3. Choose a tag type.</h4><p>There are dozens of tag types (they are not all displayed here, and you can also customize a tag type). I chose “Google Analytics: Universal Analytics”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DjSKJsw1xcEhhqhrH6OaA.png" /></figure><h4>4. Link your tag to Google Analytics tracking.</h4><p>If you want your tag tracked in Google Analytics, select a “Track Type”. I chose “Page View”, but there are plenty of other options. The next step will be to select Google Analytics Settings Variable. In our case we will have to create a New Variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJ_eoBxu6wA9_dVyeGJtGg.png" /></figure><p><strong>5. Create a Google Analytics Setting Variable</strong></p><p>Input your Web Property ID, found in your Google Analytics account in Tracking ID and then save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MwEZNhXwBWzPkjVkVz_RA.png" /></figure><h4>6. Choose a trigger to determine when the tag is recorded.</h4><p>Next, choose a trigger (a trigger means when you want the tag recorded, i.e. “every time someone visits the page”). I chose “All Pages”, to get insights every time someone views any of my web pages, but this varies depending on your purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*hxTEWUFPnmBFKdPV0CkUVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtYoFOVYb7E5aS8zoD6xkg.png" /></figure><h4>7. Save your tag.</h4><p>When you’re happy with the information in the “Tag Configuration” and “Triggering” boxes, click the blue “Save” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*6JgGxJH9e7ptO0VUUoiMRg.png" /></figure><h4>8. Activate your tag by pressing “Submit.”</h4><p>Next, click the blue “Submit” button. Your tag won’t work until you do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2y7tpypTYdwhBe2Hh5N1w.png" /></figure><p>When you click “Submit”, you’ll be taken to this “Submission Configuration” page. There are two options: “Publish and Create Version” or “Create Version”. Since I’m ready to push the tag onto all my site pages, I selected “Publish and Create Version”, and then I pressed the blue “Publish” button in the top right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pMy58lzX4LU_4_xf.png" /></figure><h4>8. Add a name and description to your tags to keep them organized.</h4><p>Finally, you’ll be shown this “Container Version Description”. To keep your tags organized, add a name and description to understand what you’re trying to record with this tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*KR2XYFr_IDSQaKN3LNANQg.png" /></figure><h4>9. Ensure your tag appears in your “Version Summary” report.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jUn_yoGYP9diO92ajcxkEw.png" /></figure><p>Now, you’ve successfully created your first tag and variable in Google Tag Manager.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a084395f249" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-tag-manager/how-to-set-up-google-tag-manager-5a084395f249">How to Set Up Google Tag Manager.</a> was originally published in <a href="https://medium.com/google-tag-manager">Google Tag Manager</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Benefits of Google Tag Manager.]]></title>
            <link>https://medium.com/google-tag-manager/top-10-benefits-of-google-tag-manager-a9629ebe18d4?source=rss----537e1944b1ed---4</link>
            <guid isPermaLink="false">https://medium.com/p/a9629ebe18d4</guid>
            <category><![CDATA[digi]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <dc:creator><![CDATA[Sumit Mudliar]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 19:15:06 GMT</pubDate>
            <atom:updated>2020-04-24T19:15:06.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*vLfVytZVGjf3wUZh927R6g.jpeg" /></figure><p>Google Tag Manager has helped make the lives of online marketers easier one tracking code at a time. If you are in involved with tracking data on a site large or small, Tag Manager can help save time and ensure proper setup.</p><h3>What is Google Tag Manager?</h3><p>Google Tag Manager is a free tool that eliminates tedious code-editing tasks that formerly required a developer. It allows the marketing team to add and update their own website tags — including javascript code snippets for site analytics, conversion tracking, and remarketing — while the development team focuses on larger projects.</p><h3>What are tags?</h3><p>Tags are snippets of website code that measure traffic and visitor behavior. In addition to offering insight into the impact of online advertising and social changes, tags make it easy to target your audience, leverage remarketing, and test and improve your site. These tags also enable specific site functions. For example, through the use of the Google Analytics tag.</p><h3>Why should you use a tag management system?</h3><p>Tagging is complex. Large websites in particular need to constantly update their tags, add new tags, and execute complicated installations. If this isn’t all managed properly, the tags can slow down your site, misrepresent your measurements, and lead to duplicate costs and missing data. In addition, it’s time-consuming to manage tags without a system, and doing so can delay important marketing and measurement programs.</p><p>Now that you know what Google Tag Manager is and why it’s important, here is my list of top 10 benefits of GTM:</p><h3>1. Easy to Use</h3><p>This is one of the biggest advantages of Google Tag Manager: no programming knowledge is required. Almost anyone can easily make updates, add new tags, test each change, and deploy tags without needing to perform complex website coding. This provides you and your team with autonomy and streamlines your process, thereby speeding up launch times and giving your IT department the time it needs to focus on more important matters, like why your website is so slow.</p><h3>2. Saves Loads of Time</h3><p>GTM saves you time by allowing you to implement tracking codes all by yourself. You no longer need a marketer to send tracking code to a developer, only to get the code installed a week later because the developer was busy. No longer will you have email back-and-forth when you need to track additional events during that week. All tracking code (aka tags) can be added, edited, and removed via the GTM platform.</p><h3>3. Everything Is in One Place</h3><p>Remember the toolbox analogy we made earlier? With GTM, everything is in one place. Long gone are the days when a developer needed to locate the various JavaScript code snippets in a website or app’s source code in order to make additions, changes, or deletions. Now, everything is in one place and those human errors where some codes are missed and data is inaccurate no longer take place.</p><h3>4. Easier to Troubleshoot</h3><p>Because everything is in one place, it’s easier to troubleshoot and correct tag errors — even before they’re published. GTM’s <a href="https://support.google.com/tagmanager/answer/6107056?hl=en">Preview Mode</a> will automatically show you what tags are working and which ones aren’t, along with information about triggers and detailed information about the data within tracking tags. Other helpful GTM tools include <a href="https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en">Tag Assistant</a> and <a href="https://chrome.google.com/webstore/detail/datalayer-checker/ffljdddodmkedhkcjhpmdajhjdbkogke?hl=en">Datalayer Checker</a>.</p><h3>5. You Can Create Templates</h3><p>GTM allows you to export all your tags, triggers, and variables into one file which you can then use to create your own templates of commonly used codes. This can come in handy when you’re looking to implement the same Google Analytics event (e.g., page view tracking, outbound link clicks) for various clients. In early 2019, Google also released <a href="https://www.blog.google/products/marketingplatform/analytics/tag-manager-introducing-custom-templates/">Custom Templates</a>, a feature that allows the community to build and share custom templates that anyone can use.</p><p>In addition, GTM has a bunch of built-in tags that you can use for things like Google Ads conversions and remarketing. This allows team members without coding experience to customize tags without learning complicated code or being dependent on the help of a developer.</p><h3>6. Auto-Event Tracking</h3><p>GTM comes with a feature called auto-event tracking, which automatically tracks events (like clicks, <a href="https://www.smartbugmedia.com/blog/form-design-ux">form submissions</a>, and time spent on page) without involving custom JavaScript code. It requires some setup and isn’t as easy as clicking one button, but once you’ve enabled certain triggers, GTM will automatically start listening for particular website interactions.</p><h3>7. It’s Free!</h3><p>We sort of glossed over this early on but let’s not forget: GTM is absolutely free, and it’s perfect for small and medium-sized businesses. Larger organizations can upgrade to the premium GTM version in <a href="https://marketingplatform.google.com/about/tag-manager-360/">Tag Manager 360</a>.</p><h3>8. Version Control</h3><p>Anytime you make a change in GTM, an archived version is saved. This makes life easier when you need to roll back some changes, restore a previous version, or if you accidentally published a bunch of changes to a live site before the tags were complete. Version control gives you the fluidity to go back and forth without worrying about causing any permanent damage.</p><h3>9. Users and Permissions Management</h3><p>GTM gives you full control of who can make what changes. From no access to read only to editing to publishing rights, you can easily control who has the permissions to make changes (such as creating tags, macros, and rules) to the website.</p><h3>10. Peace of Mind</h3><p>Worried about picking up a malware domain, IP address, or URL in your tags? Fear not! Google automatically scans all tracking scripts and immediately pauses those that match any type of known malware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9629ebe18d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-tag-manager/top-10-benefits-of-google-tag-manager-a9629ebe18d4">Top 10 Benefits of Google Tag Manager.</a> was originally published in <a href="https://medium.com/google-tag-manager">Google Tag Manager</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to Google Tag Manager.]]></title>
            <link>https://medium.com/google-tag-manager/an-introduction-to-google-tag-manager-749ef0206024?source=rss----537e1944b1ed---4</link>
            <guid isPermaLink="false">https://medium.com/p/749ef0206024</guid>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[tag-management]]></category>
            <dc:creator><![CDATA[Sumit Mudliar]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 18:59:26 GMT</pubDate>
            <atom:updated>2020-04-25T14:11:01.878Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*edvskCFKCxavl7e4Scf6JA.png" /></figure><p>Digital marketing thrives on data. No matter what type of site you have, whether it’s a large e-commerce site, a personal website, or a site for a small business, it’s essential to understand how people interact with your site. Google Analytics can provide a lot of the important insights you’re looking for, but when used alone, it does have its limitations. But by tagging your site and using Google Tag Manager in conjunction with Google Analytics, you’re able to collect much more data than you can otherwise.</p><p>Tags are snippets of code which are added to a site to collect information and send it to third parties. You can use tags for all sorts of purposes, including scroll tracking, monitoring form submissions, conducting surveys, generating heat maps, remarketing, or tracking how people arrive at your site. They’re also used to monitor specific events like file downloads, clicks on certain links, or items being removed from a shopping cart.</p><p>Sites commonly use several different tags and the amount of code needed to create them all can be pretty overwhelming, especially if you’re trying to add or edit tags by going directly into the site’s source code. Google Tag Manager is a tool with a user-friendly, web-based interface that simplifies the process of working with tags. With GTM, you’re able to add, edit, and disable tags without having to touch the source code.</p><p>While GTM is, obviously, a Google product, it’s hardly limited to just working with tags for other Google services like AdWords or Analytics. You can use it to manage many different <a href="https://support.google.com/tagmanager/answer/6106924?hl=en">third-party tags</a>, including Twitter, Bing Ads, Crazy Egg, and Hotjar, just to name a few. If there’s another tag which doesn’t have a template in GTM, you can add your own custom code. There are only a few <a href="https://support.google.com/tagmanager/answer/2787990?hl=en&amp;ref_topic=2772416">types of tags GTM doesn’t work well with</a>.</p><h3>The pros and cons of GTM</h3><h3>Lessens reliance on web devs</h3><p>By far, the biggest benefit to Google Tag Manager is that it makes it easier for marketers to implement tags without having to rely on web developers to do it for them. Developers are usually busy with other high-priority projects, so tagging often ends up on the back burner. But since Google Tag Manager helps you avoid touching the source code, marketers can quickly add and make changes to tags on their own. This is a big advantage if, for example, you only need to use a tag to collect data for a very brief amount of time. Without GTM, there’s a good chance that it would take longer for the tag to be added than it would actually be live for.</p><h3>Still requires some technical implementation</h3><p>Although GTM helps reduce the reliance on developers, it doesn’t completely eliminate it. You’ll still need someone to add the container code to each page of your site. And while GTM has plenty of tag templates to choose from which are easy enough for a non-developer to work with, more complex customized tags will likely require the help of someone who really understands coding. If you have existing tags that were manually added to your site’s source code, those will need to be removed first so that you don’t end up with duplicate data.</p><h3>Most businesses can benefit from using it</h3><p>Businesses of any size can potentially benefit from GTM. Since GTM makes it so much easier to add and edit tags without a developer, it’s great for smaller businesses that might have limited access to technical support. And since sites for enterprise-level businesses can easily use dozens of tags, GTM makes it easier to manage them all and improves site speed by helping them load more efficiently.</p><h3>Tags can slow down site speed if fired synchronously</h3><p>One issue with traditional tracking tags is that if they fire synchronously, they can slow down site speeds. When tags fire synchronously, one tag being slow to load slows down all the other tags that are waiting on it. And the longer a site takes to load, the more likely it is that people will leave without converting. But tags created in GTM load asynchronously by default, meaning each tag can fire anytime it’s ready to. If you need to control the order in which your tags are fired, there is tag sequencing and firing priority functionality to let you do that.</p><h3>Can be used for AMP sites and mobile apps, as well</h3><p>You’re not even limited to just using GTM with standard websites. GTM can also be used to manage tags for AMP sites and mobile apps. In the case of mobile apps, GTM can be a huge help since it lets you add and edit your tags without having to issue an updated version of your app, which users might not be quick to actually download. In some respects, using GTM for AMP sites or mobile apps is pretty similar to using it for a regular website, but they do have their differences. In this guide, we’re going to focus on using GTM for web.</p><h3>Components of tags &amp; GTM</h3><p>On the surface, tags and tag managers are pretty straightforward. But before you can start working with them, there are a few main concepts you’ll need to know about.</p><h3>Containers</h3><p>When you start working with GTM, the first thing you’ll need to do is create a container. A container essentially “holds” all the tags for your site.</p><p>After creating a new container, GTM gives you some code to add to your site. This is your container code and it will need to be added to the source code so it displays on each page of your site. Some CMSes, such as WordPress, have plugins to help add the container code for you, but you may need to contact your web developer to have it added. Once you’ve done that, you’ll be able to add, edit, disable, or remove your tags as needed through GTM.</p><h3>Triggers</h3><p>Each tag on a site needs to serve a specific purpose. Maybe you want to have a tag send information when someone downloads a file, when an outbound link is clicked, or when a form is submitted. These sorts of events are known as triggers and all tags need to have at least one trigger assigned to it; otherwise, it’s not going to do anything.</p><p>Triggers can be broken down into two main components: events and filters. When you go to configure a trigger in GTM, you’ll be given a long list of types of triggers to choose from. These are your events. Once you choose an event, you’ll be able to set up your filter.</p><p>Filters can be divided further down into three parts: variables, operators, and values. We’ll talk more about variables in just a minute, but in this case, it refers to the type of variable involved. The operator tells the tag whether an event needs to equal (or if it should be greater or less than a certain value, contain a certain value, etc.) And of course, the value is the condition which needs to be met. Even though the word “value” is typically used in reference to numbers and prices, remember that in this case, it doesn’t necessarily have to be a numerical value. In many cases, your value will be something like a URL or a keyword.</p><p>For example, let’s say I wanted to see how many people were reading the blog content on my site in depth. I could create a tag with a Scroll Depth event trigger that should fire when the vertical scroll depth reaches 75%. If I wanted this to fire on every page of my site, I could leave the “All Pages” option selected in the trigger configuration box and I wouldn’t have to create any further filters. But since I’m focusing on blog content, I’d choose “Some Pages” and create the filter “Page URL” “Contains” “fakewebsitename.com/blog.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/0*UE-5kmbfROZVfo0g.jpg" /></figure><p>There might also be some circumstances when you don’t want a tag to fire. In this case, you can create a blocking trigger to prevent it from firing on those occasions. GTM prioritizes blocking triggers over other types of triggers, so if you have a blocking trigger that contradicts a condition set by another trigger, Google Tag Manager will follow what’s specified by the blocking trigger. For instance, if you have a tag that’s set to fire on all of your pages, but there are a few pages you’d like to have excluded from that, you can just use a blocking trigger to prevent it from firing on those few pages.</p><h3>Variables &amp; constants</h3><p>While tags depend on triggers, triggers depend on variables. Variables contain the value a trigger needs to evaluate to know whether or not it should fire. The tag compares the value of the variable to the value defined in the trigger and if the variable meets the conditions of the trigger, the tag will fire.</p><p>Tags also use variables to collect information that can be passed onto the data layer as a user interacts with the site. A common example of this would be if a tag was set to fire when a person adds a certain amount of products to their shopping cart.</p><p>Variables can often be reused between tags. One of the most popular tips for using GTM is to create constant variables with the ID numbers or tracking codes you’ll need to use more than once. For example, if you’ll need to use your Google Analytics property ID number in multiple tags, you could just create a constant string variable with the value being your ID number. That way, instead of repeatedly having to look up and enter your ID number, you could just select the variable name.</p><p>When using GTM, you’ll be working with two different types of variables: built-in variables and user-defined variables. Built-in variables are some of the most commonly used types of variables, so Google went ahead and made them easy to access in GTM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*cJsb4qqixvAczI_K.png" /></figure><p>Once you select a built-in variable, you’ll be able to configure its settings however you’d like. Note that these are just a few of the built-in variables for regular web containers. You can find more built-in variables by clicking the “Configure” button. If you’re using GTM for AMP sites or mobile apps, you may see different options to choose from.</p><p>If you need another type of variable that’s not included as a built-in variable, you can create a user-defined variable. When you go to add a user-defined variable, you’ll be given a list of types of variables to choose from. For more information on each type of variables, Simo Ahava has a very helpful <a href="https://www.simoahava.com/analytics/variable-guide-google-tag-manager/#types">guide to different variable types</a>.</p><p>Variables can be created from the GTM dashboard by clicking on the “Variable” option on the left side menu. You can also create them while you’re creating a tag by clicking on the button next to the field that looks like a Lego block with a plus sign on it.</p><h3>Data layers</h3><p>Tags need information to know whether or not they should fire, but how (or where) do they get that information? One way they could find it is by checking the page’s HTML structure, but that’s really not an ideal solution. When tags need to search through HTML to find what they’re looking for, it can take longer for them to fire. And if the site’s HTML structure changes over time, tags can break. Besides, there are certain types of information a tag might need which won’t be found in a page’s HTML, like a transaction total.</p><p>A data layer is a JavaScript object which keeps the information tags need separate from the rest of your site’s code. Since tags don’t have to spend time searching through the HTML to find the information they need, this is another way GTM can help improve site speed. Instead, everything they’re looking for can be found in one place and it’s readily available when the page loads.</p><p>Technically, data layers are optional. You don’t have to specifically define one yourself; GTM can initiate one for you. But if you want to use GTM to track specific events, you’ll need to have a data layer.</p><p>To start off with, a new data layer object will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*YA-xmf0xAX4O6Fp3.png" /></figure><p>When adding a data layer, the object needs to be placed before the GTM container code. If the data layer object is placed after the container code, GTM won’t be able to access the information in it and the data layer will basically reset after loading.</p><p>Once the data layer object has been added to a page’s code, the brackets in the second line can be populated with information, variables, and events. Some types of information can be written directly into the data layer, but other types of information can be pushed into the data layer dynamically as a user interacts with your site, such as if someone downloads a file or if they add a certain amount of products to their shopping cart.</p><h3>Working with GTM</h3><h3>Creating accounts and containers</h3><p>To get started, go to <a href="https://tagmanager.google.com/">tagmanager.google.com</a> and create an account. Under “Setup Account,” enter the name of the company whose site is being managed and hit “Continue.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/0*s9WnX6SiA9N85O_d.png" /></figure><p>Next, you’ll set up your container. Enter your domain name as the container name, choose which type of page or app it will be used on, and click “Create.” If you choose iOS or Android, you’ll also have to specify whether you’re using Firebase SDK or a legacy SDK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*SMAGjtj-eQ0GWmEY.png" /></figure><p>Note that I specifically said to use the company name as the account name and the site’s domain for the container name. In theory, you can name these anything you want. This is just how Google recommends naming them as a best practice. Generally speaking, one of the best things you can do when working with GTM is make sure everything is named very clearly. Otherwise, it’s very easy for mistakes to be made.</p><p>Multiple GTM accounts can be managed within a single GTM account, but Google advises creating one container per domain. You don’t have to create separate containers for each individual tag or for every individual page on a site; all tags can all be placed within one container.</p><p>For most companies and organizations, one container is all they’ll need. But in the case of a company that has subsidiaries or owns separate businesses, the website for each subsidiary/business should get its own container and all the containers can be managed from one main GTM account. If a site has a subdomain that is treated separately from the main domain, the subdomain should also be given its own container.</p><p>When a marketing agency is managing tags on behalf of a company, Google recommends that the company create their own GTM account, then add the agency’s Google account as a user. This way, the agency can access GTM, but it’s easy for the company to revoke access should they decide to change agencies.</p><p>After creating your container, accept the GTM terms of service and you’ll be given your container code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*CrgqqIyc8F0aM8m9.png" /></figure><p>Once the container code has been added, you’re able to start creating tags. But before you get started, it’s a good idea to take some time to figure out exactly which tags you want to add. Even though there aren’t any limits to the amount of tags you can put in a container, for best performance, Google advises keeping the amount of tags you use to a minimum. If you’re migrating your tags to GTM from another tag manager or are making the switch from tags coded in your source code, this is a good time to review the tags currently on your site. In many cases, sites have tags that are associated with services they’re no longer using or were used to track things that aren’t being monitored anymore, so this is a good opportunity to “clean house,” so to speak.</p><h3>Creating a tag</h3><p>When you create or select a container, the first thing you’ll see is the GTM dashboard. We’ll eventually get around to talking about almost everything you see here, but let’s begin by creating a tag. Click “Add a New Tag” to open up a window where you’ll be able to name and configure your tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LAZLma7DL1FHWAzR.png" /></figure><p>Before we go any further into the process of creating tags, remember to name your tags very clearly. Since sites often use several different tags, you won’t want there to be any confusion about which tag does what. Google’s recommended tag naming convention is: Tag Type — Detail — Location. For example, a Google Analytics tag that tracks form submissions on a Contact Us page would be named “GA — Form Submission — Contact Us.” Including the location of a tag in its name is a good idea because it helps distinguish it from similar tags on other pages. So if I had other GA form submission tags on my site, specifying that this one is on the Contact Us page would help me avoid editing the wrong one by mistake.</p><p>Putting the tag type at the beginning of a tag name also helps keep your tags organized. GTM lists tags alphabetically, so if you’re creating multiple tags for the same service or tool, all of those tags will all be grouped together and easy to find.</p><p>Now, back to creating a tag. When you click “Add a new tag” on the dashboard, this is the window you’ll see. Choose “Tag Configuration” and you’ll be given a long list of tag templates, which includes many of the most commonly used types of tags. If any of these are what you’re looking for, click on it and enter the information requested. If you don’t see the type of tag you want to create listed, choose “Custom HTML” to add your own code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JKLkulRjxW4xOqsa.png" /></figure><p>Since the exact information you’ll need to provide will vary depending on which type of tag you’re working with, I can’t possibly go into how to make every single type of tag. But as an example, let’s say I wanted to notify Google Analytics anytime someone views my pricing page. After choosing Universal Analytics, this is what I’d see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/0*z2TtuwC-SnH6b004.jpg" /></figure><p>All I would need to do is choose “Page View” from the “Track Type” dropdown menu, then enter the variable with my Google Analytics account information. If I hadn’t created that variable ahead of time, I could make one now by clicking the dropdown menu under “Google Analytics Settings” and choosing “New Variable.”</p><p>If I wanted to make changes to the tag firing sequence or create a firing schedule, I could do that by clicking on the “Advanced Settings” option. Click outside the tag configuration window to go back to the previous screen.</p><p>Next, you’ll need to create at least one trigger. Click the “Triggering” box underneath “Tag Configuration” to get started. If you don’t have a previously created trigger to choose from in the list that opens up, click the + sign in the upper right corner of the window. This will bring up a new window where you’ll be asked to name your new trigger. Do that and click on the “Tag Configuration” box so see a list of trigger types. In my case, I’d choose “Page View.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/0*lf6sJEPP2xJCFr5U.jpg" /></figure><p>Since I only want my tag to fire on one page, I’d choose “Some Page Views,” then create a filter specifying that the page URL needs to equal the URL of my pricing page. If I had another filter to add, I could click the plus (+) button next to the filter to set one up. If I had created multiple filters for this tag and later decided to get rid of one of them, all I’d have to do is hit the subtract (–) button next to the filter in question. When you’re done, click outside the window to exit.</p><p>Once your tag and trigger have been configured, save it and you can either keep working by creating more tags or you can preview your tag and make sure it’s working correctly before publishing it.</p><h3>Previewing, debugging, and publishing tags</h3><p>GTM’s “Preview &amp; Debug” mode lets you test tags before publication so that you can make sure everything is working correctly and that you won’t have any errors throwing off your data.</p><p>To enter “Preview &amp; Debug,” click the “Preview” button in the upper right corner of the GTM dashboard and you’ll see an orange banner notifying you that you are now in “Preview” mode. Next, open the site you’re tagging. If you already have your site open in another tab, refresh the page and you should see a “Debug” panel at the bottom of your screen. (Don’t worry, visitors to your site won’t be able to see it.)</p><p>The “Debug” panel shows all sorts of detailed information about your tags, triggers, and data layer. On the left side of the panel is an event timeline summary, which outlines all the events that occur in the data layer. At a minimum, you should be seeing at least three events listed here: Page View, DOM Ready, and Window Loaded. It’s OK to see more than three events, but if any of those three are missing, there’s a problem that needs to be fixed.</p><p>When you click on any of the events in your timeline, you’ll see all the tags which are set to fire when that event occurs. Click on any of the tags to see more detailed information about its triggers, properties, and if there are any blocking triggers associated with it.</p><p>As you work in “Preview &amp; Debug” mode, you’re the only one who can see the information about your tags. But let’s say you’re working as part of a team on a tagging project and you find an issue you want to bring to another person’s attention. There is a way to do that. Switch back over to your GTM dashboard and look at the orange banner. On the right, there’s a “Share Preview” button. Click on it and you’ll bring up a box where you can enter the URL of the page in question. This will generate a preview link you can use to send to another person.</p><p>Even after a tag has been published, Google still makes it easy to go back and check to make sure there aren’t any problems. Google Tag Assistant is a free Chrome extension and once it’s installed, you can visit any page on your site and it will tell you if your tags are firing correctly or if there are any improvements that could be made. GTA uses a three color system to indicate its findings: green, blue, and red. Green means all of your tags are working, blue means GTA has suggestions for how a tag could be improved, and red means it’s not working.</p><p>Once it appears that all of your tags are firing correctly, you can go ahead and publish them. From the GTM dashboard, hit the “Submit” button in the upper right corner and you’ll be asked to review your changes. If everything looks OK, enter a name and description for your new container version and publish it.</p><p>When you publish changes in GTM, it creates a new version of your container. If there’s ever a problem and you have to revert to an earlier version of your container, all you have to do is click the “Versions” button at the top of the GTM dashboard, choose the version you’d like to revert to from the list, click “Action,” then “Publish.”</p><p>If you’re migrating your tags from another tag manager or from hard-coded tags on your site, Google advises setting up all of your tags in GTM, then removing your old tags all at once and publishing the GTM container with your new tags as quickly as possible. You might have a very small gap in your data collection, but there shouldn’t be any more issues after your new tags are live.</p><h3>Workspaces, workspace changes, and activity history</h3><p>If you have multiple people working on a tagging project at the same time, workspaces can help make life a little easier. Even if you’re not collaborating with others, sometimes having the option to create separate workspaces can still be very helpful.</p><p>In older versions of GTM, all edits had to be made in a common container draft. If one person or team finished adding tags before another person/team, they couldn’t publish their new tags without also publishing the other team’s tags-in-progress. But with workspaces, multiple users can work on tagging at the same time without interfering with each other’s work.</p><p>Each workspace uses the current published container version as a basis, but tags in each workspace can be edited, previewed, debugged, and even published independently from the tags in other workspaces. If you’re working with the free version of GTM, you can have up to three different workspaces, one default workspace and two others, but if you use Google Tag Manager 360, you can create an unlimited amount of workspaces.</p><p>When one workspace is published, it creates a new version of the container. If there are any other workspaces with unpublished changes saved in them, the user(s) working in those spaces will see a notice saying that they need to update the workspace. Updating the workspace syncs the changes in the container to their workspace. While it’s not required to do so to continue working, it’s generally best to stay on top of updates so that you’re not working with an outdated version of the container.</p><p>After syncing changes in a workspace, you’ll be notified if there are any conflicts which need to be resolved. If any conflicts exist, you’ll be asked to review them and either ignore the conflict or copy the change. When you copy the change, the field in question in your workspace will be overwritten with the information from the latest container version.</p><p>If necessary, you can set user permissions on workspaces to prevent users from making unwanted changes. For example, if you had a developer working on some really complicated custom tags, the developer might want to create a separate workspace to work in and limit the user permissions so that only they can make changes to it. This way, marketers will be able to go in and make changes without accidentally making changes to the custom tags.</p><p>Another great thing about GTM, particularly if you have more than one person working on tagging, is that it lets you see which changes were made, when they were made, and who made them. On the dashboard, you’ll see a Workspace Changes section, which outlines some of the most recent changes that have been made to tags and triggers. If mistakes any mistakes have been made, you can use the “Abandon Change” option to delete those changes. Beneath Workspace Changes, there’s Activity History, which shows all activity on a GTM account.</p><h3>Additional resources</h3><p>Google Tag Manager has a lot to offer, but learning how to use it in depth can be pretty overwhelming. This guide helped introduce you to the tool, but there’s still a lot more to learn if you want to use GTM to its full potential.</p><p><a href="https://support.google.com/tagmanager/answer/6102821?hl=en">Google</a> also has a lot of helpful information. Even if you’re not a developer, Google’s <a href="https://developers.google.com/tag-manager/devguide">Tag Manager Guide for Developers</a> is worth taking a look at since it does a great job of explaining some of the concepts related to GTM and has a lot of good information about how to use it. With all these resources, you should have all the information you need to get the most out of GTM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=749ef0206024" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-tag-manager/an-introduction-to-google-tag-manager-749ef0206024">An Introduction to Google Tag Manager.</a> was originally published in <a href="https://medium.com/google-tag-manager">Google Tag Manager</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>