{"id":43202,"date":"2020-07-20T17:43:37","date_gmt":"2020-07-20T14:43:37","guid":{"rendered":"https:\/\/lanet.click\/?p=43202"},"modified":"2025-08-01T13:36:58","modified_gmt":"2025-08-01T10:36:58","slug":"gtm","status":"publish","type":"post","link":"https:\/\/lanet.click\/en\/gtm\/","title":{"rendered":"Google Tag Manager: tags creation"},"content":{"rendered":"<p>In the <a href=\"https:\/\/lanet.click\/en\/shcho-take-google-tag-manager\/\">previous article<\/a>, we talked about Google Tag Manager, who will find it helpful, and the benefits of using it in digital promotion. So, if you understand the importance of using GTM for business, we suggest you read the instructions for creating tags for Google Analytics.\u00a0<\/p>\r\n<h2>Stage 1 \u2014 creating a tag<\/h2>\r\n<p>In GTM, all tag templates are divided into three groups: recommended, user-oriented, and third-party services. They are easy to use because you do not need to edit or adjust the tracking code in your tags. To start, you usually need to enter 1-2 unique parameters and set a trigger.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Recommended tags collect information about users, including which sites they visit, what they watch and search for, how long, and what they are interested in. This data will help you make adjustments to your advertising strategy.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>What does Google Analytics track, and what tags does it use for this:<\/p>\r\n<p>&nbsp;<\/p>\r\n<ul>\r\n<li><strong>Pages view<\/strong> \u2014 setting the base code of Google Analytics (required with the trigger All pages).<\/li>\r\n<li><strong>Events<\/strong> \u2014 tracking button clicks, submitting forms, interactions, etc.<\/li>\r\n<li><strong>Transactions<\/strong> \u2014 obtaining transaction data.<\/li>\r\n<li><strong>Social Network<\/strong>s \u2014 analysis of user interaction with the site through Facebook, Twitter, and other networks.<\/li>\r\n<li><strong>Tim<\/strong>e \u2014 an analysis of events that work on a timer.<\/li>\r\n<li><strong>The appearance of links<\/strong> \u2014 monitoring the users&#8217; transition from the site through external links or downloads of files on the page.<\/li>\r\n<li><strong>Change the appearance of the form<\/strong> \u2014 cross-domain tracking.<\/li>\r\n<\/ul>\r\n<h2>Stage 2 \u2014 creating a trigger<\/h2>\r\n<p>A trigger is a must for activating or blocking a tag. You can create triggers in two ways: in the Triggers section on the sidebar or in tags directly.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Activation of all triggers in Google Tag Manager occurs after some action is triggered:<\/p>\r\n<p>&nbsp;<\/p>\r\n<ul>\r\n<li><strong>view the page<\/strong> \u2014 at the beginning of the download, when loading HTML or fully loading the page;<\/li>\r\n<li><strong>click<\/strong> \u2014 when clicking on a button, link, picture, form, etc.;<\/li>\r\n<li><strong>submitting a form<\/strong> \u2014 after filling out and submitting any form;<\/li>\r\n<li><strong>changes in history<\/strong> \u2014 when changing a URL snippet (it is used for anchor links of one-page sites).<\/li>\r\n<li><strong>JavaScript error<\/strong> \u2014 in case of an error in the code also saves messages about all failures;<\/li>\r\n<li><strong>timer<\/strong> \u2014 triggers after a set time interval;<\/li>\r\n<li><strong>user events<\/strong> \u2014 you determine which actions you want to track.<\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>\r\n<p>You can also create a locking trigger, a condition that does not trigger the tag. For this, add an exception to the settings for the trigger that was created the day before. \u00a0<\/p>\r\n<h2>Stage 3 \u2014 creating a variable<\/h2>\r\n<p>Variables help you track actions more accurately and filter trigger activation. You can use them to specify when to activate a trigger or tag.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Variable types in Manager:<\/p>\r\n<p>&nbsp;<\/p>\r\n<ul>\r\n<li>nine non-editable built-in variables: pages, utilities, errors, clicks, forms, scrolling, history, video, and visibility;<\/li>\r\n<li>designed for users: created independently.<\/li>\r\n<\/ul>\r\n<h2>Stage 4 \u2014 tag verification and publishing<\/h2>\r\n<p>Use the Preview to check the tags and confidence that the data is tracked. If all previous steps are successful, the tag information will appear in the console.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>When you have finished creating the tag, clicking the Publish button will display all data about tags, triggers, and variables in the Versions section.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>So, now let&#8217;s briefly list the steps for creating tags in Google Tag Manager:\u00a0<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>create a trigger:<\/strong> <br \/>&#8211; choose the type of trigger; <br \/>&#8211; specify the conditions for tag activation; <br \/>&#8211; add a trigger to the tag.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>create a variable:<\/strong> <br \/>&#8211; choose the type of variables; <br \/>&#8211; specify the parameters.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>check the tag:<\/strong> <br \/>&#8211; turn on preview; <br \/>&#8211; check your Google Analytics data traffic.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>publish a tag. <\/strong><\/li>\r\n<\/ul>\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>In the previous article, we talked about Google Tag Manager, who will find it helpful, and the benefits of using [&hellip;]<\/p>\n","protected":false},"author":61,"featured_media":43212,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[232,236],"tags":[],"class_list":["post-43202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-contextual-advertising","category-web-analytics"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/posts\/43202"}],"collection":[{"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/comments?post=43202"}],"version-history":[{"count":0,"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/posts\/43202\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/media\/43212"}],"wp:attachment":[{"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/media?parent=43202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/categories?post=43202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lanet.click\/en\/wp-json\/wp\/v2\/tags?post=43202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}