{"id":10055,"date":"2024-10-16T23:20:35","date_gmt":"2024-10-16T23:20:35","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10055"},"modified":"2024-10-16T23:20:35","modified_gmt":"2024-10-16T23:20:35","slug":"how-to-create-and-manage-variables-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/","title":{"rendered":"How to create and manage variables in Google Tag Manager"},"content":{"rendered":"<p>Creating and managing variables in Google Tag Manager (GTM) is a crucial part of tracking user interactions on your website. Variables are used to store information that can be used by tags and triggers, allowing for more dynamic and context-specific data tracking. Here\u2019s a step-by-step guide on how to create and manage variables in GTM.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 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-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#1_Accessing_Google_Tag_Manager\" title=\"1. Accessing Google Tag Manager\">1. Accessing Google Tag Manager<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_Log_In_to_GTM\" title=\"Step 1: Log In to GTM\">Step 1: Log In to GTM<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#2_Understanding_Variables\" title=\"2. Understanding Variables\">2. Understanding Variables<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#3_Creating_a_New_Variable\" title=\"3. Creating a New Variable\">3. Creating a New Variable<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_Navigate_to_Variables\" title=\"Step 1: Navigate to Variables\">Step 1: Navigate to Variables<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_2_Create_a_New_Variable\" title=\"Step 2: Create a New Variable\">Step 2: Create a New Variable<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_3_Configure_the_Variable\" title=\"Step 3: Configure the Variable\">Step 3: Configure the Variable<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#4_Using_Built-In_Variables\" title=\"4. Using Built-In Variables\">4. Using Built-In Variables<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_Enable_Built-In_Variables\" title=\"Step 1: Enable Built-In Variables\">Step 1: Enable Built-In Variables<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#5_Testing_Your_Variables\" title=\"5. Testing Your Variables\">5. Testing Your Variables<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_Enter_Preview_Mode\" title=\"Step 1: Enter Preview Mode\">Step 1: Enter Preview Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_2_Check_Variable_Values\" title=\"Step 2: Check Variable Values\">Step 2: Check Variable Values<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#6_Managing_Variables\" title=\"6. Managing Variables\">6. Managing Variables<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_Edit_Existing_Variables\" title=\"Step 1: Edit Existing Variables\">Step 1: Edit Existing Variables<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_2_Disable_or_Delete_Variables\" title=\"Step 2: Disable or Delete Variables\">Step 2: Disable or Delete Variables<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#7_Organizing_Variables\" title=\"7. Organizing Variables\">7. Organizing Variables<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_Use_Naming_Conventions\" title=\"Step 1: Use Naming Conventions\">Step 1: Use Naming Conventions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_2_Add_Descriptions\" title=\"Step 2: Add Descriptions\">Step 2: Add Descriptions<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#8_Version_Control\" title=\"8. Version Control\">8. Version Control<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_1_View_Version_History\" title=\"Step 1: View Version History\">Step 1: View Version History<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Step_2_Revert_to_Previous_Versions\" title=\"Step 2: Revert to Previous Versions\">Step 2: Revert to Previous Versions<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#9_Best_Practices_for_Variable_Management\" title=\"9. Best Practices for Variable Management\">9. Best Practices for Variable Management<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1_Accessing_Google_Tag_Manager\"><\/span>1. Accessing Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Log_In_to_GTM\"><\/span>Step 1: Log In to GTM<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Go to the <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noopener\">Google Tag Manager website<\/a>.<\/li>\n<li>Log in with your Google account.<\/li>\n<li>Select the appropriate GTM account and container associated with your website.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"2_Understanding_Variables\"><\/span>2. Understanding Variables<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Variables in GTM serve as placeholders for dynamic values that you can use in your tags and triggers. There are three main types of variables:<\/p>\n<ul>\n<li><strong>Built-in Variables:<\/strong> Predefined variables provided by GTM for common tracking needs, such as Page URL, Click Classes, and more.<\/li>\n<li><strong>User-Defined Variables:<\/strong> Custom variables created by users to capture specific data.<\/li>\n<li><strong>Data Layer Variables:<\/strong> Variables that pull data from the data layer, which is a JavaScript object used to store and manage data for GTM.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"3_Creating_a_New_Variable\"><\/span>3. Creating a New Variable<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Navigate_to_Variables\"><\/span>Step 1: Navigate to Variables<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>In the left sidebar, click on \u201cVariables.\u201d<\/li>\n<li>This will show you a list of existing variables in your container.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Create_a_New_Variable\"><\/span>Step 2: Create a New Variable<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Click the \u201cNew\u201d button to create a new variable.<\/li>\n<li>A variable configuration screen will open.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Step_3_Configure_the_Variable\"><\/span>Step 3: Configure the Variable<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Name Your Variable:<\/strong> Click on the &#8220;Untitled Variable&#8221; field and give your variable a descriptive name (e.g., &#8220;User ID&#8221; or &#8220;Click URL&#8221;).<\/li>\n<li><strong>Select Variable Type:<\/strong>\n<ul>\n<li>Click on \u201cVariable Configuration.\u201d<\/li>\n<li>Choose the type of variable you want to create:\n<ul>\n<li><strong>Auto-Event Variable:<\/strong> Captures data from user interactions, such as clicks or form submissions.<\/li>\n<li><strong>Constant Variable:<\/strong> Holds a static value you define (e.g., a specific string or number).<\/li>\n<li><strong>Data Layer Variable:<\/strong> Retrieves values from the data layer.<\/li>\n<li><strong>JavaScript Variable:<\/strong> Fetches values from a global JavaScript variable on your site.<\/li>\n<li><strong>Lookup Table:<\/strong> Maps input values to output values.<\/li>\n<li><strong>First Party Cookie:<\/strong> Reads values from cookies set by your domain.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Variable Settings:<\/strong> Based on the variable type you selected:\n<ul>\n<li><strong>For Data Layer Variables:<\/strong>\n<ul>\n<li>Enter the name of the data layer variable you want to capture (e.g., <code>userId<\/code>).<\/li>\n<\/ul>\n<\/li>\n<li><strong>For Lookup Table Variables:<\/strong>\n<ul>\n<li>Define the input values and corresponding output values.<\/li>\n<\/ul>\n<\/li>\n<li><strong>For Auto-Event Variables:<\/strong>\n<ul>\n<li>Choose the type of interaction you want to track (e.g., Click Element, Click Classes).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"4_Using_Built-In_Variables\"><\/span>4. Using Built-In Variables<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GTM includes several built-in variables that can be enabled for immediate use. Here\u2019s how to activate them:<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Enable_Built-In_Variables\"><\/span>Step 1: Enable Built-In Variables<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>In the \u201cVariables\u201d section, look for the \u201cBuilt-In Variables\u201d section.<\/li>\n<li>Click on the &#8220;Configure&#8221; button.<\/li>\n<li>Check the boxes next to the built-in variables you want to enable (e.g., Page URL, Click Classes).<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"5_Testing_Your_Variables\"><\/span>5. Testing Your Variables<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before using your variables in tags and triggers, it\u2019s important to test them to ensure they capture the intended values.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Enter_Preview_Mode\"><\/span>Step 1: Enter Preview Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>In the top right corner, click the \u201cPreview\u201d button.<\/li>\n<li>Enter your website URL to open it in a new tab with GTM preview mode activated.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Check_Variable_Values\"><\/span>Step 2: Check Variable Values<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Navigate through your website while the GTM debug console is open.<\/li>\n<li>Trigger the conditions you set for your variables.<\/li>\n<li>Check the console to see if your variable captures the correct values.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"6_Managing_Variables\"><\/span>6. Managing Variables<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Edit_Existing_Variables\"><\/span>Step 1: Edit Existing Variables<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Navigate to the \u201cVariables\u201d section in the GTM workspace.<\/li>\n<li>Click on the variable you want to edit.<\/li>\n<li>Make your changes in the variable configuration.<\/li>\n<li>Remember to save your changes and test the variable again before using it in tags or triggers.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Disable_or_Delete_Variables\"><\/span>Step 2: Disable or Delete Variables<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>To disable a variable, click on the variable and change its status to &#8220;Disabled.&#8221;<\/li>\n<li>To delete a variable, click on the variable and select the &#8220;Delete&#8221; option in the upper right corner.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"7_Organizing_Variables\"><\/span>7. Organizing Variables<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As you create more variables, organizing them can help you manage your GTM setup more efficiently.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Use_Naming_Conventions\"><\/span>Step 1: Use Naming Conventions<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Use clear and consistent naming conventions for your variables to quickly identify their purpose (e.g., &#8220;Page URL&#8221; or &#8220;Product ID&#8221;).<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Add_Descriptions\"><\/span>Step 2: Add Descriptions<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Provide descriptions for each variable, explaining its purpose and configuration. This helps when revisiting the container after some time.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"8_Version_Control\"><\/span>8. Version Control<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>GTM allows you to track changes made to your variables through versions.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_View_Version_History\"><\/span>Step 1: View Version History<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Click on \u201cVersions\u201d in the left sidebar to see a history of all changes made to your container.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Revert_to_Previous_Versions\"><\/span>Step 2: Revert to Previous Versions<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>If necessary, you can revert to a previous version by selecting it and choosing the option to publish it.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"9_Best_Practices_for_Variable_Management\"><\/span>9. Best Practices for Variable Management<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Test Before Publishing:<\/strong> Always preview and test variables before making them live to avoid errors.<\/li>\n<li><strong>Document Changes:<\/strong> Keep a log of changes made to variables for future reference.<\/li>\n<li><strong>Regular Audits:<\/strong> Periodically audit your variables to ensure they\u2019re functioning correctly and remove any that are no longer needed.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Creating and managing variables in Google Tag Manager is essential for effectively capturing and using data from user interactions on your website. By following the steps outlined above, you can set up variables that provide dynamic values for your tags and triggers, enhancing your tracking capabilities. With practice and adherence to best practices, GTM can significantly improve your data tracking and overall marketing efforts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating and managing variables in Google Tag Manager (GTM) is a crucial part of tracking user interactions on your website. Variables are used to store&#8230;<\/p>\n","protected":false},"author":214,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-10055","post","type-post","status-publish","format-standard","hentry","category-digital-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create and manage variables in Google Tag Manager - CEOweb Ltd. Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create and manage variables in Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Creating and managing variables in Google Tag Manager (GTM) is a crucial part of tracking user interactions on your website. Variables are used to store...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-16T23:20:35+00:00\" \/>\n<meta name=\"author\" content=\"Emmanuel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Emmanuel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/\",\"name\":\"How to create and manage variables in Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-10-16T23:20:35+00:00\",\"dateModified\":\"2024-10-16T23:20:35+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create and manage variables in Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\",\"url\":\"https:\/\/ceowebltd.com\/blog\/\",\"name\":\"CEOweb Ltd. Blog\",\"description\":\"Guest Posting - Digital Marketing &amp; Web Services\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\",\"name\":\"Emmanuel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"caption\":\"Emmanuel\"},\"url\":\"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create and manage variables in Google Tag Manager - CEOweb Ltd. Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to create and manage variables in Google Tag Manager - CEOweb Ltd. Blog","og_description":"Creating and managing variables in Google Tag Manager (GTM) is a crucial part of tracking user interactions on your website. Variables are used to store...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-10-16T23:20:35+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/","name":"How to create and manage variables in Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-10-16T23:20:35+00:00","dateModified":"2024-10-16T23:20:35+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-create-and-manage-variables-in-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create and manage variables in Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/ceowebltd.com\/blog\/#website","url":"https:\/\/ceowebltd.com\/blog\/","name":"CEOweb Ltd. Blog","description":"Guest Posting - Digital Marketing &amp; Web Services","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f","name":"Emmanuel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","caption":"Emmanuel"},"url":"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/"}]}},"_links":{"self":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/users\/214"}],"replies":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/comments?post=10055"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10055\/revisions"}],"predecessor-version":[{"id":10056,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10055\/revisions\/10056"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}