{"id":8145,"date":"2024-07-03T00:04:01","date_gmt":"2024-07-03T00:04:01","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=8145"},"modified":"2024-07-03T00:04:01","modified_gmt":"2024-07-03T00:04:01","slug":"how-to-set-up-event-tracking-with-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/","title":{"rendered":"How to set up event tracking with Google Tag Manager"},"content":{"rendered":"<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=\"3029f7f6-5c97-4af1-aaff-1a671980635b\">\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 dark\">\n<p>Setting up event tracking with Google Tag Manager (GTM) allows you to monitor specific interactions on your website, such as button clicks, form submissions, video plays, and downloads. This helps you gather valuable data about user behavior and engagement. Here\u2019s a step-by-step guide to setting up event tracking 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-event-tracking-with-google-tag-manager\/#1_Set_Up_Google_Tag_Manager\" title=\"1. Set Up Google Tag Manager\">1. 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-2\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/#2_Create_a_Google_Analytics_Tag_if_not_already_set_up\" title=\"2. Create a Google Analytics Tag (if not already set up)\">2. Create a Google Analytics Tag (if not already set up)<\/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-event-tracking-with-google-tag-manager\/#3_Configure_Event_Tracking_in_Google_Tag_Manager\" title=\"3. Configure Event Tracking in Google Tag Manager\">3. Configure Event Tracking 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-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/#Best_Practices_for_Event_Tracking\" title=\"Best Practices for Event Tracking\">Best Practices for Event Tracking<\/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-event-tracking-with-google-tag-manager\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1_Set_Up_Google_Tag_Manager\"><\/span>1. Set Up Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Sign in to Google Tag Manager<\/strong>:\n<ul>\n<li>Go to <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noreferrer noopener\">Google Tag Manager<\/a> and sign in with your Google account.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Tag Manager Container<\/strong>:\n<ul>\n<li>Click on &#8220;Create Account&#8221; and follow the prompts to create a new GTM container for your website.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Install Google Tag Manager Container<\/strong>:\n<ul>\n<li>Copy the provided GTM container snippet and paste it into every page of your website immediately after the opening <code>&lt;body&gt;<\/code> tag.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"2_Create_a_Google_Analytics_Tag_if_not_already_set_up\"><\/span>2. Create a Google Analytics Tag (if not already set up)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Set Up Google Analytics<\/strong>:\n<ul>\n<li>Ensure you have a Google Analytics property set up for your website. Obtain your Google Analytics Tracking ID (e.g., UA-XXXXXX).<\/li>\n<li>Create a new Universal Analytics tag in GTM if you haven\u2019t already:\n<ul>\n<li>Click on &#8220;Tags&#8221; in the left-hand menu of GTM.<\/li>\n<li>Click &#8220;New&#8221; to create a new tag.<\/li>\n<li>Choose &#8220;Google Analytics: Universal Analytics&#8221; as the tag type.<\/li>\n<li>Enter your Tracking ID and configure settings as needed (e.g., Track Type: Page View).<\/li>\n<li>Save the tag.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"3_Configure_Event_Tracking_in_Google_Tag_Manager\"><\/span>3. Configure Event Tracking in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Create a New Tag for Event Tracking<\/strong>:\n<ul>\n<li>Click on &#8220;Tags&#8221; in GTM and then click &#8220;New&#8221; to create a new tag.<\/li>\n<li>Name your tag (e.g., Button Click Event).<\/li>\n<li>Choose &#8220;Tag Configuration&#8221; and select &#8220;Universal Analytics&#8221; as the tag type.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure Tag Settings<\/strong>:\n<ul>\n<li>Choose &#8220;Event&#8221; as the Track Type.<\/li>\n<li>Fill out the Event Tracking Parameters:\n<ul>\n<li><strong>Category<\/strong>: Typically used to group events (e.g., Videos, Downloads).<\/li>\n<li><strong>Action<\/strong>: Describes the type of interaction or event (e.g., Play, Submit, Click).<\/li>\n<li><strong>Label<\/strong> (optional): Provides additional information about the event (e.g., specific button ID or name).<\/li>\n<li><strong>Value<\/strong> (optional): Numeric value associated with the event (e.g., monetary value of a transaction).<\/li>\n<\/ul>\n<\/li>\n<li>Set the Google Analytics Settings Variable to your existing Google Analytics tag (created in step 2).<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Triggers for Event Tracking<\/strong>:\n<ul>\n<li>Click on &#8220;Triggering&#8221; under Tag Configuration.<\/li>\n<li>Click &#8220;New&#8221; to create a new trigger.<\/li>\n<li>Choose the trigger type that matches the event you want to track (e.g., Click, Form Submission, Video Play).<\/li>\n<li>Configure trigger conditions (e.g., Click ID, Click Classes, Form ID) to specify when the event should fire.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Test Your Tag<\/strong>:\n<ul>\n<li>Use GTM\u2019s preview mode to test your tag implementation:\n<ul>\n<li>Click &#8220;Preview&#8221; in GTM.<\/li>\n<li>Navigate to your website and perform the action that triggers the event (e.g., click a button).<\/li>\n<li>In GTM, click on &#8220;Debug&#8221; to see if your tag fires correctly and sends data to Google Analytics.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>Publish Your Container<\/strong>:\n<ul>\n<li>After testing, click &#8220;Submit&#8221; in GTM to publish your changes to your live site.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Best_Practices_for_Event_Tracking\"><\/span>Best Practices for Event Tracking<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Consistent Naming Convention<\/strong>: Use a consistent naming convention for categories, actions, and labels to maintain clarity and organization.<\/li>\n<li><strong>Set Up Goals in Google Analytics<\/strong>: Link event tracking with goals in Google Analytics to measure conversions and track specific user interactions.<\/li>\n<li><strong>Regular Monitoring<\/strong>: Periodically review event data in Google Analytics to identify trends and insights that can inform your marketing strategies.<\/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 event tracking with Google Tag Manager enables you to capture detailed insights into user interactions on your website. By following these steps and best practices, you can effectively implement event tracking, improve your understanding of user behavior, and make informed decisions to optimize your website performance and user experience.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"mt-1 flex gap-3 empty:hidden juice:-ml-3\">\n<div class=\"items-center justify-start rounded-xl p-1 flex\">\n<div class=\"flex items-center\"><button class=\"rounded-lg text-token-text-secondary hover:bg-token-main-surface-secondary\"><\/button><button class=\"rounded-lg text-token-text-secondary hover:bg-token-main-surface-secondary\"><\/button><\/p>\n<div class=\"flex\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Setting up event tracking with Google Tag Manager (GTM) allows you to monitor specific interactions on your website, such as button clicks, form submissions, video&#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-8145","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 event tracking with 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-event-tracking-with-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 event tracking with Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Setting up event tracking with Google Tag Manager (GTM) allows you to monitor specific interactions on your website, such as button clicks, form submissions, video...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-03T00:04:01+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=\"3 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-set-up-event-tracking-with-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/\",\"name\":\"How to set up event tracking with Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-07-03T00:04:01+00:00\",\"dateModified\":\"2024-07-03T00:04:01+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up event tracking with 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 event tracking with 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-event-tracking-with-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to set up event tracking with Google Tag Manager - CEOweb Ltd. Blog","og_description":"Setting up event tracking with Google Tag Manager (GTM) allows you to monitor specific interactions on your website, such as button clicks, form submissions, video...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-07-03T00:04:01+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/","name":"How to set up event tracking with Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-07-03T00:04:01+00:00","dateModified":"2024-07-03T00:04:01+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-event-tracking-with-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up event tracking with 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\/8145","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=8145"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/8145\/revisions"}],"predecessor-version":[{"id":8146,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/8145\/revisions\/8146"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=8145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=8145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=8145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}