{"id":5492,"date":"2020-05-27T13:21:07","date_gmt":"2020-05-27T13:21:07","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=5492"},"modified":"2020-05-30T00:10:36","modified_gmt":"2020-05-30T00:10:36","slug":"first-user-defined-variable","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=5492","title":{"rendered":"First user defined variable"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/google-tag-manager-logo-1280x720-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/google-tag-manager-logo-1280x720-2-1024x614.png\" alt=\"\" class=\"wp-image-5572\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/google-tag-manager-logo-1280x720-2-1024x614.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/google-tag-manager-logo-1280x720-2-300x180.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/google-tag-manager-logo-1280x720-2-768x461.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/google-tag-manager-logo-1280x720-2.png 1175w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/figure><\/div>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Google Analytics UA variable<\/h2>\n\n\n\n<p>The first variable you must create before being able to start firing tags from <a rel=\"noreferrer noopener\" href=\"\/google-tag-manager\/\" target=\"_blank\">Google Tag Manager<\/a> (GTM) toward <a rel=\"noreferrer noopener\" href=\"\/google-analytics\/\" target=\"_blank\">Google Analytics<\/a> (GA) is the one that includes the <strong>Universal Analytics<\/strong> (UA) number that identifies the property for which you are going to create a tag, that number is also known as Tracking ID.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Google Tag Manager &#8211; Variables categorization<\/h2>\n\n\n\n<p>GTM variables are categorized in two separated groups:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Built-In variables<\/li><li>User-Defined variables<\/li><\/ul>\n\n\n\n<p>Built-in variables comes with GTM out of the box and you can enable\/disable them, but you won&#8217;t be able neither to remove or modify them.<\/p>\n\n\n\n<p>On the other hand, the User-Defined variables are manually created and You can modify them or remove them at your will.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Google-Tag-Manager-User-Defined-variable.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"750\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Google-Tag-Manager-User-Defined-variable.jpg\" alt=\"Google Tag Manager - User Defined variable\" class=\"wp-image-5497\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Google-Tag-Manager-User-Defined-variable.jpg 941w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Google-Tag-Manager-User-Defined-variable-300x239.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Google-Tag-Manager-User-Defined-variable-768x612.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Google Tag Manager &#8211; Variables<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">First user defined variable<\/h2>\n\n\n\n<p>The first &#8220;User-Defined&#8221; variable that you must create is the one that will contain the UA (Universal Analytics) number of your property that can be found on Google Analytics (GA) and that&#8217;s the reason why you must select &#8220;<strong>Google Analytics Settings<\/strong>&#8221; as its type when creating the variable.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/4.Google-Tag-Manager-variables-ga-ua.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"611\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/4.Google-Tag-Manager-variables-ga-ua.jpg\" alt=\"\" class=\"wp-image-5501\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/4.Google-Tag-Manager-variables-ga-ua.jpg 931w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/4.Google-Tag-Manager-variables-ga-ua-300x197.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/4.Google-Tag-Manager-variables-ga-ua-768x504.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Google Tag Manager &#8211; First User Defined variable<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Variable Type and Name<\/h2>\n\n\n\n<p>As soon as you hit the &#8220;<strong>New<\/strong>&#8221; variable button, in the left up corner you must enter the variable name you want to use, after that you must go to Variable settings where you will be able to select the Variable Type and also able to enter the variable value, see screenshot below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/2.Google-Tag-Manager-variables-type.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"751\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/2.Google-Tag-Manager-variables-type.jpg\" alt=\"\" class=\"wp-image-5530\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/2.Google-Tag-Manager-variables-type.jpg 710w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/2.Google-Tag-Manager-variables-type-284x300.jpg 284w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/a><figcaption>Google Tag Manager &#8211; Variable Type<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/3.Google-Tag-Manager-variables-name-and-type.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"537\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/3.Google-Tag-Manager-variables-name-and-type.jpg\" alt=\"\" class=\"wp-image-5503\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/3.Google-Tag-Manager-variables-name-and-type.jpg 920w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/3.Google-Tag-Manager-variables-name-and-type-300x175.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/3.Google-Tag-Manager-variables-name-and-type-768x448.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Google Tag Manager &#8211; Variable type and name<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Where to find the Tracking ID number<\/h2>\n\n\n\n<p>The Tracking ID number is also know as the Universal Analytics (UA) number, it is assigned to your Google Analytics Property when it created, take a look at <a href=\"\/google-analytics-tracking-number\/\">this article<\/a> to learn where in Google Analytics you can find it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where to go next?<\/h2>\n\n\n\n<p>Take a look at the following articles to learn more about&nbsp;<strong>Google Tag Manager<\/strong>&nbsp;(GTM) and the <strong>GTM<\/strong>&nbsp;<strong>Preview Tool<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/lamp.ciscoar.com\/google-tag-manager-first-tag\/\">How to create Page View Tag<\/a><\/li><li><a href=\"https:\/\/lamp.ciscoar.com\/google-tag-manager-preview\/\">How to enable GTM Preview Tool<\/a><\/li><li><a href=\"\/google-tag-manager-built-in-variables\/\">How to enable Built-In Variables<\/a><\/li><li><a href=\"\/google-tag-manager-track-file-downloads\/\">How to track file downloads<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics UA variable The first variable you must create before being able to start firing tags from Google Tag Manager (GTM) toward Google Analytics (GA) is the one that includes the Universal Analytics (UA) number that identifies the property for which you are going to create a tag, that number is also known as &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=5492\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;First user defined variable&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5492","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/5492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5492"}],"version-history":[{"count":26,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/5492\/revisions"}],"predecessor-version":[{"id":5723,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/5492\/revisions\/5723"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}