{"id":10380,"date":"2024-11-05T23:53:29","date_gmt":"2024-11-05T23:53:29","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10380"},"modified":"2024-11-05T23:53:29","modified_gmt":"2024-11-05T23:53:29","slug":"how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/","title":{"rendered":"How to set up and track custom dimensions and metrics in Google Tag Manager"},"content":{"rendered":"<p>Setting up and tracking custom dimensions and metrics in Google Tag Manager (GTM) involves configuring both <strong>Google Analytics<\/strong> (Universal or GA4) and <strong>Google Tag Manager<\/strong> itself. Custom dimensions and metrics allow you to collect and analyze more granular data that is specific to your business needs, beyond what is automatically tracked by Google Analytics.<\/p>\n<p>Here\u2019s a step-by-step guide on how to set up and track custom dimensions and metrics using Google Tag Manager:<\/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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_1_Understand_Custom_Dimensions_and_Metrics\" title=\"Step 1: Understand Custom Dimensions and Metrics\">Step 1: Understand Custom Dimensions and Metrics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_2_Set_Up_Custom_Dimensions_and_Metrics_in_Google_Analytics\" title=\"Step 2: Set Up Custom Dimensions and Metrics in Google Analytics\">Step 2: Set Up Custom Dimensions and Metrics in Google Analytics<\/a><\/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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_3_Set_Up_Google_Tag_Manager\" title=\"Step 3: Set Up Google Tag Manager\">Step 3: Set Up Google Tag Manager<\/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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_4_Create_Variables_in_Google_Tag_Manager\" title=\"Step 4: Create Variables in Google Tag Manager\">Step 4: Create Variables in Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_5_Modify_Your_Google_Analytics_Tag_to_Send_Custom_Dimensions_or_Metrics\" title=\"Step 5: Modify Your Google Analytics Tag to Send Custom Dimensions or Metrics\">Step 5: Modify Your Google Analytics Tag to Send Custom Dimensions or Metrics<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#For_Universal_Analytics\" title=\"For Universal Analytics:\">For Universal Analytics:<\/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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#For_Google_Analytics_4_GA4\" title=\"For Google Analytics 4 (GA4):\">For Google Analytics 4 (GA4):<\/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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_6_Trigger_the_Tag\" title=\"Step 6: Trigger the Tag\">Step 6: Trigger the Tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_7_Test_the_Implementation\" title=\"Step 7: Test the Implementation\">Step 7: Test the Implementation<\/a><\/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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_8_Verify_Data_in_Google_Analytics\" title=\"Step 8: Verify Data in Google Analytics\">Step 8: Verify Data in Google Analytics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Step_9_Monitor_and_Optimize\" title=\"Step 9: Monitor and Optimize\">Step 9: Monitor and Optimize<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Understand_Custom_Dimensions_and_Metrics\"><\/span>Step 1: Understand Custom Dimensions and Metrics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before you begin, it\u2019s essential to understand the difference between custom dimensions and custom metrics:<\/p>\n<ul>\n<li><strong>Custom Dimensions<\/strong>: These are used to collect additional information about your users, sessions, or interactions (e.g., User Type, Membership Level, Product Category).<\/li>\n<li><strong>Custom Metrics<\/strong>: These are numerical values that you want to track (e.g., number of downloads, time spent on a page).<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Set_Up_Custom_Dimensions_and_Metrics_in_Google_Analytics\"><\/span>Step 2: Set Up Custom Dimensions and Metrics in Google Analytics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Sign into Google Analytics<\/strong>.<\/li>\n<li>For <strong>Universal Analytics<\/strong>:\n<ul>\n<li>Go to <strong>Admin<\/strong> &gt; <strong>Property<\/strong> &gt; <strong>Custom Definitions<\/strong> &gt; <strong>Custom Dimensions<\/strong> (or <strong>Custom Metrics<\/strong> for metrics).<\/li>\n<li>Click the <strong>+ New Custom Dimension<\/strong> button.<\/li>\n<li>Enter a name for your custom dimension (e.g., &#8220;User Type&#8221;).<\/li>\n<li>Set the scope: &#8220;Hit,&#8221; &#8220;Session,&#8221; &#8220;User,&#8221; or &#8220;Product&#8221; based on how you want to track the data.<\/li>\n<li>Set the <strong>Active<\/strong> status to <strong>True<\/strong>.<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li>For <strong>Google Analytics 4 (GA4)<\/strong>:\n<ul>\n<li>Go to <strong>Admin<\/strong> &gt; <strong>Property<\/strong> &gt; <strong>Custom Definitions<\/strong>.<\/li>\n<li>Click <strong>Create Custom Dimension<\/strong> (for dimensions) or <strong>Create Custom Metric<\/strong> (for metrics).<\/li>\n<li>Enter a name for your custom dimension or metric, and define the parameter or event parameter that will hold the value you wish to track.<\/li>\n<li>Choose the scope (Event-level, User-level).<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Set_Up_Google_Tag_Manager\"><\/span>Step 3: Set Up Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Log into Google Tag Manager<\/strong>.<\/li>\n<li>Ensure you have the correct <strong>Google Analytics Tag<\/strong> already set up (either Universal Analytics or GA4).<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Create_Variables_in_Google_Tag_Manager\"><\/span>Step 4: Create Variables in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You need to create variables in GTM that will pull the data you want to send to Google Analytics.<\/p>\n<ol>\n<li><strong>For Custom Dimensions (Universal Analytics)<\/strong>:\n<ul>\n<li>Navigate to the <strong>Variables<\/strong> section in GTM.<\/li>\n<li>Click <strong>New<\/strong> to create a variable.<\/li>\n<li>Choose the variable type based on the data you want to capture:\n<ul>\n<li><strong>First Party Cookie<\/strong> (if you&#8217;re storing data in cookies).<\/li>\n<li><strong>JavaScript Variable<\/strong> (to capture values from the data layer or DOM).<\/li>\n<li><strong>Data Layer Variable<\/strong> (if the data is in the data layer).<\/li>\n<\/ul>\n<\/li>\n<li>Name your variable (e.g., <code>userType<\/code>).<\/li>\n<li>For instance, if you\u2019re using the data layer, select <strong>Data Layer Variable<\/strong> and enter the variable name that\u2019s used in your data layer (e.g., <code>user_type<\/code>).<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>For Custom Dimensions (GA4)<\/strong>:\n<ul>\n<li>In GA4, you can capture custom dimensions directly from event parameters or user properties.<\/li>\n<li>Set up variables for each parameter you want to capture. For example, use <strong>JavaScript Variable<\/strong> or <strong>Data Layer Variable<\/strong> to pull event parameters.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Modify_Your_Google_Analytics_Tag_to_Send_Custom_Dimensions_or_Metrics\"><\/span>Step 5: Modify Your Google Analytics Tag to Send Custom Dimensions or Metrics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"For_Universal_Analytics\"><\/span><strong>For Universal Analytics<\/strong>:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li>Go to <strong>Tags<\/strong> in GTM and either create a new tag or edit an existing Google Analytics pageview tag.<\/li>\n<li>Under <strong>Tag Configuration<\/strong>, select <strong>Universal Analytics<\/strong> as the tag type.<\/li>\n<li>Scroll down to the <strong>More Settings<\/strong> section and click on it.<\/li>\n<li>Click on <strong>Custom Dimensions<\/strong>.<\/li>\n<li>Click <strong>Add Custom Dimension<\/strong>.<\/li>\n<li>For <strong>Index<\/strong>, enter the custom dimension index (you can find this in Google Analytics under Admin &gt; Custom Dimensions).<\/li>\n<li>For <strong>Dimension Value<\/strong>, select the variable you created in Step 4 (e.g., <code>userType<\/code>).<\/li>\n<li>Repeat this process if you need to set multiple custom dimensions.<\/li>\n<li>Once done, click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"For_Google_Analytics_4_GA4\"><\/span><strong>For Google Analytics 4 (GA4)<\/strong>:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li>Create a <strong>GA4 Event Tag<\/strong> in GTM (or modify an existing one).<\/li>\n<li>Under <strong>Event Parameters<\/strong>, click <strong>Add Row<\/strong>.<\/li>\n<li>For <strong>Parameter Name<\/strong>, enter the name of the custom dimension (e.g., <code>user_type<\/code>).<\/li>\n<li>For <strong>Value<\/strong>, select the GTM variable you created in Step 4.<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_6_Trigger_the_Tag\"><\/span>Step 6: Trigger the Tag<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Make sure the tag you created is triggered on the correct page or event:<\/p>\n<ol>\n<li>If you&#8217;re tracking custom dimensions on a page, use the <strong>Page View<\/strong> trigger.<\/li>\n<li>If it&#8217;s an event-based custom dimension, such as a user action, use the appropriate <strong>Event Trigger<\/strong>.<\/li>\n<\/ol>\n<p>For example:<\/p>\n<ul>\n<li><strong>Page View Trigger<\/strong>: To track custom dimensions across all pages.<\/li>\n<li><strong>Click Trigger<\/strong>: To track a custom dimension when a user clicks a specific element.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Step_7_Test_the_Implementation\"><\/span>Step 7: Test the Implementation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before going live, use <strong>Preview Mode<\/strong> in GTM to test that the custom dimensions and metrics are being sent correctly to Google Analytics.<\/p>\n<ol>\n<li>Click the <strong>Preview<\/strong> button in Google Tag Manager.<\/li>\n<li>Open your website in a new tab. You should see the GTM debug console.<\/li>\n<li>Verify that the correct custom dimensions are being fired and sent to Google Analytics.\n<ul>\n<li>In GA, you can check <strong>Real-time<\/strong> reporting to see if the data is coming through.<\/li>\n<li>In GA4, you can check <strong>DebugView<\/strong> for real-time event tracking.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_8_Verify_Data_in_Google_Analytics\"><\/span>Step 8: Verify Data in Google Analytics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once you\u2019ve published your changes in Google Tag Manager, you can view the data in <strong>Google Analytics<\/strong>.<\/p>\n<ul>\n<li><strong>For Universal Analytics<\/strong>: Check the <strong>Custom Reports<\/strong> section or use the <strong>Customization<\/strong> options to view the custom dimension in reports.<\/li>\n<li><strong>For GA4<\/strong>: Go to the <strong>Events<\/strong> or <strong>User Explorer<\/strong> section, and view the event parameters you&#8217;ve set up as custom dimensions.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Step_9_Monitor_and_Optimize\"><\/span>Step 9: Monitor and Optimize<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>Keep an eye on how the custom dimensions and metrics are impacting your reporting and analysis.<\/li>\n<li>Use the custom data to build custom reports or to create segments based on user behavior or attributes captured by your custom dimensions.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Setting up and tracking custom dimensions and metrics through Google Tag Manager involves several steps: configuring the custom dimensions and metrics in Google Analytics, creating the necessary variables in GTM, and adjusting your tags to send this data. Testing and verification are crucial to ensure that your data collection is accurate. Custom dimensions and metrics help you capture detailed, business-specific data that can provide deeper insights into user behavior, enhancing your ability to make data-driven decisions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up and tracking custom dimensions and metrics in Google Tag Manager (GTM) involves configuring both Google Analytics (Universal or GA4) and Google Tag Manager&#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-10380","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 set up and track custom dimensions and metrics 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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up and track custom dimensions and metrics in Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Setting up and tracking custom dimensions and metrics in Google Tag Manager (GTM) involves configuring both Google Analytics (Universal or GA4) and Google Tag Manager...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-05T23:53:29+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/\",\"name\":\"How to set up and track custom dimensions and metrics in Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-11-05T23:53:29+00:00\",\"dateModified\":\"2024-11-05T23:53:29+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up and track custom dimensions and metrics 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 set up and track custom dimensions and metrics 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-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/","og_locale":"en_US","og_type":"article","og_title":"How to set up and track custom dimensions and metrics in Google Tag Manager - CEOweb Ltd. Blog","og_description":"Setting up and tracking custom dimensions and metrics in Google Tag Manager (GTM) involves configuring both Google Analytics (Universal or GA4) and Google Tag Manager...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-11-05T23:53:29+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/","name":"How to set up and track custom dimensions and metrics in Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-11-05T23:53:29+00:00","dateModified":"2024-11-05T23:53:29+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up and track custom dimensions and metrics 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\/10380","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=10380"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10380\/revisions"}],"predecessor-version":[{"id":10381,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10380\/revisions\/10381"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}