{"id":1160,"date":"2021-07-07T11:20:31","date_gmt":"2021-07-07T11:20:31","guid":{"rendered":"https:\/\/vaniseo.com\/agence-web-et-marketing-marseille-google-tag-manager-episode-6-les-variables\/"},"modified":"2026-10-26T10:44:57","modified_gmt":"2026-10-26T10:44:57","slug":"marseille-web-and-marketing-agency-google-tag-manager-episode-6-variables","status":"publish","type":"post","link":"https:\/\/vaniseo.com\/en\/2021\/07\/07\/agence-web-et-marketing-marseille-google-tag-manager-episode-6-les-variables\/","title":{"rendered":"Variables"},"content":{"rendered":"<p class=\"wp-block-paragraph\">In this episode, <a href=\"\/en\/google-ads-advertising-on-social-media-in-marseille\/\">the AdWords agency in Marseille<\/a> will explain how built-in and custom variables work<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The built-in variables<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, Google Tag Manager is based on the context of the pages. This context consists of information about the page, as well as JavaScript events that have been executed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, thanks to GTM, you can interact with these elements using variables. You will enable built-in variables that are not displayed by Tag Manager:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on \u00abConfigure\u00bb. In the overlay, tick all the boxes labelled \u00abpages\u00bb, \u00abclicks\u00bb, \u00abforms\u00bb, \u00abscrolling\u00bb and \u2018visibility\u2019. This information enables you to interact with elements on the pages<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1443\" src=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/configuration-variables-scaled.png\" alt=\"Marseille Digital Marketing Agency \u2013 Google Tag Manager \u2013 Built-in variables\" class=\"wp-image-946\" srcset=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/configuration-variables-scaled.png 2560w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/configuration-variables-300x169.png 300w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/configuration-variables-1024x577.png 1024w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These variables will enable values to be passed directly from the page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">User-defined variables<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, custom variables will help you make sense of your analyses. Furthermore, they can also help you improve accuracy. The constant comprising the UA code (Google Analytics unique identifier) is virtually essential for every GTM user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Would you like to see only the query parameters contained in this URL: https:\/\/mondomaine.fr\/ma-page?type=produit?<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a URL variable. Select \u00abRequest\u00bb under \u00abComponent type\u00bb and enter \u00abtype\u00bb as the request key.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">With this configuration, the variable will consist solely of the term \u00abproduct\u00bb<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1471\" src=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-scaled.png\" alt=\"Marseille Digital Marketing Agency \u2013 Google Tag Manager \u2013 User-defined variables\" class=\"wp-image-945\" srcset=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-scaled.png 2560w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-300x172.png 300w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-1024x589.png 1024w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you use tags with API keys or identifiers, you can create a constant comprising that identifier. This will allow you to change the identifier for all your tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Modification and detection of usage patterns<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To conclude, to find out in which tags a variable is used, you need to click on it to view the list of occurrences. You can also modify a variable\u2019s settings or content. This allows you to separate the technical aspects from the logic of data retrieval.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Created by <a href=\"\/en\/\">Vaniseo<\/a>, your <a href=\"\/en\/marseille-web-agency\/\">web agency in Marseille<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contact us<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Our team will get back to you within 24 hours<\/p>\n\n\n\n<div class=\"wp-block-group vn-post-cta\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"vn-post-cta-title wp-block-paragraph\">Fancy finding out how much each channel brings in?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google Analytics 4, conversions, dashboards: we make your figures easy to understand.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/google-analytics-4-data-marseille\/\">Discover our data services<\/a><\/div>\n<\/div>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Marseille Web and Marketing Agency: Variables, Google Tag Manager, built-in and user-defined variables, vaniseo: web marketing agency<\/p>","protected":false},"author":1,"featured_media":947,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"wds_primary_category":0,"footnotes":""},"categories":[135],"tags":[],"class_list":["post-1160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-et-analytics"],"acf":[],"_links":{"self":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/comments?post=1160"}],"version-history":[{"count":0,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts\/1160\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/media\/947"}],"wp:attachment":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/media?parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/categories?post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/tags?post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}