{"id":299854,"date":"2024-06-04T22:51:50","date_gmt":"2024-06-04T22:51:50","guid":{"rendered":"https:\/\/siit.co\/guestposts\/?p=299854"},"modified":"2024-06-05T10:33:52","modified_gmt":"2024-06-05T10:33:52","slug":"how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/","title":{"rendered":"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager"},"content":{"rendered":"<div class=\"flex-1 overflow-hidden\">\n<div class=\"react-scroll-to-bottom--css-lxcqm-79elbk h-full\">\n<div class=\"react-scroll-to-bottom--css-lxcqm-1n7m0yu\">\n<div class=\"flex flex-col text-sm pb-9\">\n<div class=\"w-full text-token-text-primary\" dir=\"auto\" data-testid=\"conversation-turn-15\" data-scroll-anchor=\"true\">\n<div class=\"py-2 juice:py-[18px] px-3 text-base md:px-4 m-auto md:px-5 lg:px-1 xl:px-5\">\n<div class=\"mx-auto flex flex-1 gap-3 text-base juice:gap-4 juice:md:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"8c19bc23-524f-427c-86ed-00d76beaedc1\">\n<div class=\"flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>Google Tag Manager (GTM) provides a powerful way to manage and deploy analytics and marketing tags on your website without having to modify the codebase directly. Custom dimensions and metrics in Google Analytics allow you to collect and analyze additional data specific to your business needs. Here\u2019s a detailed guide on setting up and tracking custom dimensions and metrics using Google Tag Manager.<\/p>\n<h3>Understanding Custom Dimensions and Metrics<\/h3>\n<p><strong>Custom Dimensions<\/strong> and <strong>Custom Metrics<\/strong> enable you to collect data that is not automatically tracked by Google Analytics.<\/p>\n<ul>\n<li><strong>Custom Dimensions<\/strong>: These are similar to default dimensions but allow you to create your own attributes.<\/li>\n<li><strong>Custom Metrics<\/strong>: These allow you to track custom numerical data.<\/li>\n<\/ul>\n<h3>Step-by-Step Guide<\/h3>\n<h3>1. Setting Up Custom Dimensions and Metrics in Google Analytics<\/h3>\n<h5>A. Create Custom Dimensions<\/h5>\n<ol>\n<li><strong>Log in to Google Analytics<\/strong>.<\/li>\n<li><strong>Navigate to Admin<\/strong>: In the lower-left corner, click <strong>Admin<\/strong>.<\/li>\n<li><strong>Select Property<\/strong>: In the Property column, select the property you want to configure.<\/li>\n<li><strong>Custom Definitions<\/strong>: Click <strong>Custom Definitions<\/strong> and then <strong>Custom Dimensions<\/strong>.<\/li>\n<li><strong>Create a New Custom Dimension<\/strong>:\n<ul>\n<li>Click <strong>+ New Custom Dimension<\/strong>.<\/li>\n<li>Enter the <strong>Name<\/strong> for the custom dimension (e.g., User Type).<\/li>\n<li>Select the <strong>Scope<\/strong> (Hit, Session, User, or Product).<\/li>\n<li>Check <strong>Active<\/strong>.<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Note the Index Number<\/strong>: After creating, note the index number assigned to the custom dimension. You\u2019ll need this for the GTM setup.<\/li>\n<\/ol>\n<h5>B. Create Custom Metrics<\/h5>\n<ol>\n<li><strong>Navigate to Admin<\/strong>: In the lower-left corner, click <strong>Admin<\/strong>.<\/li>\n<li><strong>Select Property<\/strong>: In the Property column, select the property you want to configure.<\/li>\n<li><strong>Custom Definitions<\/strong>: Click <strong>Custom Definitions<\/strong> and then <strong>Custom Metrics<\/strong>.<\/li>\n<li><strong>Create a New Custom Metric<\/strong>:\n<ul>\n<li>Click <strong>+ New Custom Metric<\/strong>.<\/li>\n<li>Enter the <strong>Name<\/strong> for the custom metric (e.g., Revenue Per User).<\/li>\n<li>Select the <strong>Type<\/strong> (Integer, Currency, Time, or Float).<\/li>\n<li>Define the <strong>Minimum and Maximum Values<\/strong> if needed.<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Note the Index Number<\/strong>: After creating, note the index number assigned to the custom metric.<\/li>\n<\/ol>\n<h3>2. Configuring Google Tag Manager<\/h3>\n<h5>A. Set Up Variables in GTM<\/h5>\n<ol>\n<li><strong>Log in to Google Tag Manager<\/strong>.<\/li>\n<li><strong>Select Your Container<\/strong>: Select the container you want to configure.<\/li>\n<li><strong>Navigate to Variables<\/strong>: In the left-hand menu, click <strong>Variables<\/strong>.<\/li>\n<li><strong>Create a New Variable<\/strong>:\n<ul>\n<li>Click <strong>New<\/strong> under User-Defined Variables.<\/li>\n<li>Name your variable (e.g., User Type Variable).<\/li>\n<li>Select the variable type based on where your data comes from (e.g., <strong>First Party Cookie<\/strong>, <strong>Data Layer Variable<\/strong>, <strong>JavaScript Variable<\/strong>).<\/li>\n<li>Configure the variable settings and click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h5>B. Create a New Tag<\/h5>\n<ol>\n<li><strong>Navigate to Tags<\/strong>: In the left-hand menu, click <strong>Tags<\/strong>.<\/li>\n<li><strong>Create a New Tag<\/strong>:\n<ul>\n<li>Click <strong>New<\/strong>.<\/li>\n<li>Name your tag (e.g., Custom Dimension Tag).<\/li>\n<li>Click on <strong>Tag Configuration<\/strong> and select <strong>Google Analytics: Universal Analytics<\/strong>.<\/li>\n<li>Select <strong>Track Type<\/strong>: For custom dimensions and metrics, you typically use <strong>Pageview<\/strong> or <strong>Event<\/strong>.<\/li>\n<li>Enter your <strong>Tracking ID<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Custom Dimensions and Metrics<\/strong>:\n<ul>\n<li>In the <strong>Tag Configuration<\/strong> under <strong>More Settings<\/strong>, click <strong>Custom Dimensions<\/strong>.<\/li>\n<li>Click <strong>+ Add Custom Dimension<\/strong>.<\/li>\n<li>Enter the <strong>Index Number<\/strong> you noted earlier and select the variable you created.<\/li>\n<li>For Custom Metrics, click <strong>Custom Metrics<\/strong> and add the index number and corresponding variable.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Triggering<\/strong>:\n<ul>\n<li>Click <strong>Triggering<\/strong> and choose when the tag should be fired (e.g., All Pages, specific events).<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save the Tag<\/strong>: Click <strong>Save<\/strong> to save the tag configuration.<\/li>\n<\/ol>\n<h3>3. Setting Up Triggers<\/h3>\n<ol>\n<li><strong>Navigate to Triggers<\/strong>: In the left-hand menu, click <strong>Triggers<\/strong>.<\/li>\n<li><strong>Create a New Trigger<\/strong>:\n<ul>\n<li>Click <strong>New<\/strong>.<\/li>\n<li>Name your trigger (e.g., User Type Trigger).<\/li>\n<li>Select the trigger type (e.g., Page View, Click, Form Submission).<\/li>\n<li>Define the conditions for the trigger.<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>4. Testing and Publishing<\/h3>\n<h5>A. Preview and Debug<\/h5>\n<ol>\n<li><strong>Enter Preview Mode<\/strong>: In the top right, click <strong>Preview<\/strong> to enter debug mode.<\/li>\n<li><strong>Test Your Setup<\/strong>: Go to your website, perform actions that should trigger your tags, and ensure the custom dimensions and metrics are being sent to Google Analytics.<\/li>\n<li><strong>Check Debug Console<\/strong>: In the GTM debug console, verify that your tags are firing correctly and data is being collected.<\/li>\n<\/ol>\n<h5>B. Publish Your Container<\/h5>\n<ol>\n<li><strong>Exit Preview Mode<\/strong>: Click <strong>Leave Preview<\/strong> in GTM.<\/li>\n<li><strong>Publish Changes<\/strong>: Click <strong>Submit<\/strong> in the top right corner.<\/li>\n<li><strong>Add Version Name and Description<\/strong>: Enter a name and description for this version of your container.<\/li>\n<li><strong>Publish<\/strong>: Click <strong>Publish<\/strong>.<\/li>\n<\/ol>\n<h3>5. Verifying in Google Analytics<\/h3>\n<ol>\n<li><strong>Log in to Google Analytics<\/strong>.<\/li>\n<li><strong>Navigate to Real-Time Reports<\/strong>: Check real-time reports to ensure that custom dimensions and metrics are being recorded.<\/li>\n<li><strong>Custom Reports<\/strong>: Create custom reports to analyze the data collected through custom dimensions and metrics.<\/li>\n<\/ol>\n<p>Setting up and tracking custom dimensions and metrics in Google Tag Manager involves configuring both Google Analytics and GTM. By following these steps, you can tailor your analytics setup to collect data specific to your business needs, providing deeper insights into user behavior and improving your overall data-driven decision-making processes. Regularly test and verify your setup to ensure accurate data collection.\u00a0<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google Tag Manager (GTM) provides a powerful way to manage and deploy analytics and marketing tags on your website without having to modify the codebase&#8230;<\/p>\n","protected":false},"author":7249,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[445114,445113,445115,445116],"class_list":["post-299854","post","type-post","status-publish","format-standard","hentry","category-technology","tag-advanced-it-systems-engineering-certificate","tag-advanced-it-systems-engineering-course","tag-advanced-it-systems-engineering-study","tag-advanced-it-systems-engineering-training"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set up and Track Custom Dimensions and Metrics in Google Tag Manager - SIIT - Tech Guest Posts<\/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:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-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 set up and Track Custom Dimensions and Metrics in Google Tag Manager - SIIT - Tech Guest Posts\" \/>\n<meta property=\"og:description\" content=\"Google Tag Manager (GTM) provides a powerful way to manage and deploy analytics and marketing tags on your website without having to modify the codebase...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"SIIT - Tech Guest Posts\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-04T22:51:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-05T10:33:52+00:00\" \/>\n<meta name=\"author\" content=\"Admin3\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin3\" \/>\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:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/\",\"url\":\"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/\",\"name\":\"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager - SIIT - Tech Guest Posts\",\"isPartOf\":{\"@id\":\"https:\/\/siit.co\/guestposts\/#website\"},\"datePublished\":\"2024-06-04T22:51:50+00:00\",\"dateModified\":\"2024-06-05T10:33:52+00:00\",\"author\":{\"@id\":\"https:\/\/siit.co\/guestposts\/#\/schema\/person\/aca60cd549515e4bea1197ce36456614\"},\"breadcrumb\":{\"@id\":\"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/siit.co\/guestposts\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/siit.co\/guestposts\/#website\",\"url\":\"https:\/\/siit.co\/guestposts\/\",\"name\":\"SIIT - Tech Guest Posts\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/siit.co\/guestposts\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/siit.co\/guestposts\/#\/schema\/person\/aca60cd549515e4bea1197ce36456614\",\"name\":\"Admin3\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/siit.co\/guestposts\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/134a35d0ba44995c21d33e78ab015cfc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/134a35d0ba44995c21d33e78ab015cfc?s=96&d=mm&r=g\",\"caption\":\"Admin3\"},\"url\":\"https:\/\/siit.co\/guestposts\/author\/adeyemoemmanuel001\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager - SIIT - Tech Guest Posts","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:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager - SIIT - Tech Guest Posts","og_description":"Google Tag Manager (GTM) provides a powerful way to manage and deploy analytics and marketing tags on your website without having to modify the codebase...","og_url":"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/","og_site_name":"SIIT - Tech Guest Posts","article_published_time":"2024-06-04T22:51:50+00:00","article_modified_time":"2024-06-05T10:33:52+00:00","author":"Admin3","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin3","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/","url":"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/","name":"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager - SIIT - Tech Guest Posts","isPartOf":{"@id":"https:\/\/siit.co\/guestposts\/#website"},"datePublished":"2024-06-04T22:51:50+00:00","dateModified":"2024-06-05T10:33:52+00:00","author":{"@id":"https:\/\/siit.co\/guestposts\/#\/schema\/person\/aca60cd549515e4bea1197ce36456614"},"breadcrumb":{"@id":"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/siit.co\/guestposts\/how-to-set-up-and-track-custom-dimensions-and-metrics-in-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/siit.co\/guestposts\/"},{"@type":"ListItem","position":2,"name":"How to set up and Track Custom Dimensions and Metrics in Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/siit.co\/guestposts\/#website","url":"https:\/\/siit.co\/guestposts\/","name":"SIIT - Tech Guest Posts","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/siit.co\/guestposts\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/siit.co\/guestposts\/#\/schema\/person\/aca60cd549515e4bea1197ce36456614","name":"Admin3","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/siit.co\/guestposts\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/134a35d0ba44995c21d33e78ab015cfc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/134a35d0ba44995c21d33e78ab015cfc?s=96&d=mm&r=g","caption":"Admin3"},"url":"https:\/\/siit.co\/guestposts\/author\/adeyemoemmanuel001\/"}]}},"_links":{"self":[{"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/posts\/299854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/users\/7249"}],"replies":[{"embeddable":true,"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/comments?post=299854"}],"version-history":[{"count":0,"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/posts\/299854\/revisions"}],"wp:attachment":[{"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/media?parent=299854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/categories?post=299854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siit.co\/guestposts\/wp-json\/wp\/v2\/tags?post=299854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}