{"id":10669,"date":"2024-11-18T21:24:02","date_gmt":"2024-11-18T21:24:02","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10669"},"modified":"2024-11-18T21:24:02","modified_gmt":"2024-11-18T21:24:02","slug":"how-to-set-up-and-track-custom-events-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/","title":{"rendered":"How to set up and track custom events in Google Tag Manager"},"content":{"rendered":"<p>Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy marketing tags (snippets of code) on your website without needing to modify the code directly. One of the most useful features of GTM is its ability to set up and track custom events. Custom events can help you track user interactions on your site, such as clicks, form submissions, video views, or other user actions that aren&#8217;t covered by the standard events in Google Analytics.<\/p>\n<p>In this guide, we&#8217;ll go over how to set up and track custom events in Google Tag Manager, step by step.<\/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-events-in-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-and-track-custom-events-in-google-tag-manager\/#2_Understanding_Custom_Events\" title=\"2. Understanding Custom Events\">2. Understanding Custom Events<\/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-events-in-google-tag-manager\/#3_Creating_Custom_Events_in_Google_Tag_Manager\" title=\"3. Creating Custom Events in Google Tag Manager\">3. Creating Custom Events in 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-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/#Step_1_Set_Up_the_Trigger\" title=\"Step 1: Set Up the Trigger\">Step 1: Set Up the Trigger<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/#Step_2_Set_Up_the_Tag\" title=\"Step 2: Set Up the Tag\">Step 2: Set Up the Tag<\/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-set-up-and-track-custom-events-in-google-tag-manager\/#Step_3_Testing_Your_Setup\" title=\"Step 3: Testing Your Setup\">Step 3: Testing Your Setup<\/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-events-in-google-tag-manager\/#Step_4_Publish_Your_Changes\" title=\"Step 4: Publish Your Changes\">Step 4: Publish Your Changes<\/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-events-in-google-tag-manager\/#4_Using_Google_Analytics_to_Track_Custom_Events\" title=\"4. Using Google Analytics to Track Custom Events\">4. Using Google Analytics to Track Custom Events<\/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-events-in-google-tag-manager\/#5_Advanced_Custom_Events_JavaScript_and_Data_Layer\" title=\"5. Advanced Custom Events (JavaScript and Data Layer)\">5. Advanced Custom Events (JavaScript and Data Layer)<\/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-events-in-google-tag-manager\/#6_Best_Practices_for_Tracking_Custom_Events\" title=\"6. Best Practices for Tracking Custom Events\">6. Best Practices for Tracking Custom Events<\/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-events-in-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. <strong>Set Up Google Tag Manager<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before diving into custom events, you need to make sure that Google Tag Manager is correctly installed on your website.<\/p>\n<ol>\n<li><strong>Create a GTM Account<\/strong>: If you don&#8217;t have one already, go to the <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noopener\">Google Tag Manager<\/a> website and create a new account. After signing in, you&#8217;ll be prompted to create a new container for your website. A container holds all the tags, triggers, and variables associated with your website.<\/li>\n<li><strong>Install GTM on Your Website<\/strong>: After creating your container, GTM will provide you with a code snippet. This snippet should be added to your website\u2019s HTML, typically in the <code>&lt;head&gt;<\/code> and <code>&lt;body&gt;<\/code> sections of each page. This enables GTM to fire tags on your website.<\/li>\n<li><strong>Verify the Installation<\/strong>: You can verify that GTM is properly installed by using the &#8220;Preview&#8221; mode within GTM. This allows you to see which tags are firing in real time as you interact with your website.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"2_Understanding_Custom_Events\"><\/span>2. <strong>Understanding Custom Events<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Custom events in GTM allow you to track specific actions or interactions on your website that don&#8217;t have predefined triggers in Google Analytics. Examples of custom events include:<\/p>\n<ul>\n<li>Button clicks (e.g., &#8220;Download Now&#8221; or &#8220;Sign Up&#8221;)<\/li>\n<li>Form submissions<\/li>\n<li>Video plays or video completions<\/li>\n<li>Scroll depth tracking<\/li>\n<li>Custom JavaScript actions<\/li>\n<\/ul>\n<p>These actions can be tracked by setting up custom triggers that will fire specific tags when a certain condition is met.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Creating_Custom_Events_in_Google_Tag_Manager\"><\/span>3. <strong>Creating Custom Events in Google Tag Manager<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Set_Up_the_Trigger\"><\/span>Step 1: Set Up the Trigger<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>A trigger defines when a tag should fire. For custom events, the trigger will listen for a specific action, like a click or form submission. Here\u2019s how to set up a custom event trigger:<\/p>\n<ol>\n<li><strong>Log into Google Tag Manager<\/strong> and select the container for your website.<\/li>\n<li><strong>Go to Triggers<\/strong> on the left sidebar.<\/li>\n<li><strong>Click on &#8220;New&#8221;<\/strong> to create a new trigger.<\/li>\n<li><strong>Choose a Trigger Type<\/strong>. For a custom event, select the trigger type based on the action you want to track:\n<ul>\n<li><strong>Click Trigger<\/strong>: To track clicks on specific elements like buttons or links.<\/li>\n<li><strong>Form Submission Trigger<\/strong>: To track form submissions.<\/li>\n<li><strong>Custom Event Trigger<\/strong>: For tracking JavaScript events or custom actions that don&#8217;t fit into other categories.<\/li>\n<\/ul>\n<p>For example, to track a button click, you would choose the &#8220;Click &#8211; All Elements&#8221; trigger.<\/li>\n<li><strong>Configure the Trigger<\/strong>: Customize the trigger to target specific elements. For example:\n<ul>\n<li><strong>Click Trigger<\/strong>: You can specify the CSS class, ID, or other attributes of the button that you want to track. This ensures that only specific clicks are tracked.<\/li>\n<li><strong>Form Trigger<\/strong>: Specify the form&#8217;s ID or class if you want to track a particular form submission.<\/li>\n<\/ul>\n<p>For a custom event, you\u2019ll need to define the event name. For instance, if you\u2019re tracking a form submission, you can set a custom event name such as <code>formSubmitted<\/code>.<\/li>\n<li><strong>Save the Trigger<\/strong>.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Set_Up_the_Tag\"><\/span>Step 2: Set Up the Tag<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>A tag in GTM defines what action is taken when a trigger is fired. In this case, the tag could be a Google Analytics event tag or a custom HTML tag.<\/p>\n<ol>\n<li><strong>Go to Tags<\/strong> in GTM.<\/li>\n<li><strong>Click on &#8220;New&#8221;<\/strong> to create a new tag.<\/li>\n<li><strong>Choose Tag Type<\/strong>: Select the type of tag you want to use. If you&#8217;re sending data to Google Analytics, choose &#8220;Google Analytics: Universal Analytics&#8221; as the tag type. If you are tracking events in Google Analytics, select \u201cEvent\u201d under the tag configuration.<\/li>\n<li><strong>Configure the Tag<\/strong>: Enter the event category, action, and label that will be sent to Google Analytics when the trigger is fired. For example:\n<ul>\n<li><strong>Event Category<\/strong>: &#8220;Button Click&#8221;<\/li>\n<li><strong>Event Action<\/strong>: &#8220;Download Button&#8221;<\/li>\n<li><strong>Event Label<\/strong>: &#8220;PDF Download&#8221;<\/li>\n<\/ul>\n<\/li>\n<li><strong>Link the Tag to Your Trigger<\/strong>: Under the \u201cTriggering\u201d section, select the custom event trigger you created earlier. This ensures that the tag will fire whenever the defined custom event is triggered.<\/li>\n<li><strong>Save the Tag<\/strong>.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_3_Testing_Your_Setup\"><\/span>Step 3: Testing Your Setup<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Before deploying your changes to your website, you should test the custom event tracking setup to ensure everything is working as expected.<\/p>\n<ol>\n<li><strong>Enable Preview Mode<\/strong>: In GTM, click the \u201cPreview\u201d button in the top right corner. This allows you to test the tags in real time.<\/li>\n<li><strong>Test the Custom Event<\/strong>: Navigate to your website and perform the action that should trigger the custom event (e.g., clicking the button or submitting the form).<\/li>\n<li><strong>Check the GTM Debug Panel<\/strong>: The GTM preview mode will show you which tags are firing. If your custom event trigger works correctly, you\u2019ll see that the relevant tag is firing when the custom event is triggered.<\/li>\n<li><strong>Use Google Tag Assistant (Optional)<\/strong>: You can also use the <a target=\"_new\" rel=\"noopener\">Google Tag Assistant Chrome Extension<\/a> to check if the Google Analytics tag is sending the right information to GA.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_4_Publish_Your_Changes\"><\/span>Step 4: Publish Your Changes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Once you\u2019re confident that your custom events are being tracked correctly, it\u2019s time to publish the changes:<\/p>\n<ol>\n<li><strong>Go back to GTM<\/strong> and click on the \u201cSubmit\u201d button in the top right.<\/li>\n<li><strong>Create a Version Name and Description<\/strong> for the new setup. This helps keep track of changes made in GTM.<\/li>\n<li><strong>Publish the Changes<\/strong>.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"4_Using_Google_Analytics_to_Track_Custom_Events\"><\/span>4. <strong>Using Google Analytics to Track Custom Events<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>After setting up custom event tags in GTM, you\u2019ll want to verify that your events are appearing in Google Analytics.<\/p>\n<ol>\n<li><strong>Log into Google Analytics<\/strong> and go to your property.<\/li>\n<li><strong>Navigate to Behavior &gt; Events &gt; Overview<\/strong>. Here, you\u2019ll see the event category, action, and label you defined earlier in GTM.\n<p>If you configured everything correctly, you should see the events being tracked, such as clicks on a specific button or form submissions.<\/li>\n<li><strong>Use Event Data for Reporting<\/strong>: You can use custom events to create custom reports in Google Analytics, analyze user interactions, and optimize your website based on user behavior.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"5_Advanced_Custom_Events_JavaScript_and_Data_Layer\"><\/span>5. <strong>Advanced Custom Events (JavaScript and Data Layer)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Sometimes you may need to track more complex interactions that aren\u2019t easily captured by GTM\u2019s built-in triggers. In this case, you can use JavaScript to push custom events to the GTM data layer.<\/p>\n<ol>\n<li><strong>Push Events to Data Layer<\/strong>: Use the JavaScript <code>dataLayer.push()<\/code> method to send custom data to GTM. For example:\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">javascript<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center select-none py-1\">Copy code<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-javascript\"><span class=\"hljs-variable language_\">window<\/span>.<span class=\"hljs-property\">dataLayer<\/span> = <span class=\"hljs-variable language_\">window<\/span>.<span class=\"hljs-property\">dataLayer<\/span> || [];<br \/>\ndataLayer.<span class=\"hljs-title function_\">push<\/span>({<br \/>\n  <span class=\"hljs-string\">'event'<\/span>: <span class=\"hljs-string\">'formSubmitted'<\/span>,<br \/>\n  <span class=\"hljs-string\">'formName'<\/span>: <span class=\"hljs-string\">'Contact Us'<\/span><br \/>\n});<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li><strong>Create a Custom Event Trigger for Data Layer Events<\/strong>: In GTM, you can create a trigger that listens for this custom event, using the &#8220;Custom Event&#8221; trigger type. Set the event name as <code>formSubmitted<\/code> (the name you used in the dataLayer).<\/li>\n<\/ol>\n<p>By combining custom events with the data layer, you can track more complex user interactions and send them to Google Analytics or other platforms.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Best_Practices_for_Tracking_Custom_Events\"><\/span>6. <strong>Best Practices for Tracking Custom Events<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Use Descriptive Names<\/strong>: When naming your events (event category, action, label), ensure they are descriptive and easy to understand. This will help when analyzing data in Google Analytics.<\/li>\n<li><strong>Keep It Organized<\/strong>: Set up naming conventions for events to keep your tracking system organized.<\/li>\n<li><strong>Test, Test, Test<\/strong>: Always thoroughly test your custom events to ensure they are firing correctly before publishing changes.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Tracking custom events with Google Tag Manager is a powerful way to understand how users interact with your website. By following these steps to set up triggers, tags, and custom events, you can monitor user behavior and gain valuable insights into which actions on your site are driving conversions and engagement. With a well-structured custom event tracking setup, you can make data-driven decisions that help improve your website\u2019s performance and user experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy marketing tags (snippets of code) on your website without needing&#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-10669","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 events 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-events-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 events in Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy marketing tags (snippets of code) on your website without needing...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-18T21:24:02+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=\"6 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-and-track-custom-events-in-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/\",\"name\":\"How to set up and track custom events in Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-11-18T21:24:02+00:00\",\"dateModified\":\"2024-11-18T21:24:02+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-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 and track custom events 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 events 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-events-in-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to set up and track custom events in Google Tag Manager - CEOweb Ltd. Blog","og_description":"Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy marketing tags (snippets of code) on your website without needing...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-11-18T21:24:02+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/","name":"How to set up and track custom events in Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-11-18T21:24:02+00:00","dateModified":"2024-11-18T21:24:02+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-track-custom-events-in-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 and track custom events 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\/10669","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=10669"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10669\/revisions"}],"predecessor-version":[{"id":10670,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10669\/revisions\/10670"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}