{"id":10075,"date":"2024-10-18T12:33:34","date_gmt":"2024-10-18T12:33:34","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10075"},"modified":"2024-10-18T12:33:34","modified_gmt":"2024-10-18T12:33:34","slug":"how-to-track-button-clicks-with-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/","title":{"rendered":"How to track button clicks with Google Tag Manager"},"content":{"rendered":"<p>Tracking button clicks with <strong>Google Tag Manager (GTM)<\/strong> allows you to gather valuable insights about user interactions with your website, such as which buttons are being clicked and how often. This data can be crucial for understanding user behavior, optimizing your site&#8217;s design, and improving conversions. Here\u2019s a step-by-step guide to tracking button clicks using 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-track-button-clicks-with-google-tag-manager\/#1_Set_Up_Google_Tag_Manager_on_Your_Website\" title=\"1. Set Up Google Tag Manager on Your Website\">1. Set Up Google Tag Manager on Your Website<\/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-track-button-clicks-with-google-tag-manager\/#2_Enable_Built-in_Click_Variables\" title=\"2. Enable Built-in Click Variables\">2. Enable Built-in Click Variables<\/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-track-button-clicks-with-google-tag-manager\/#3_Create_a_Trigger_for_Button_Clicks\" title=\"3. Create a Trigger for Button Clicks\">3. Create a Trigger for Button Clicks<\/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-track-button-clicks-with-google-tag-manager\/#4_Create_a_Tag_for_Button_Click_Tracking\" title=\"4. Create a Tag for Button Click Tracking\">4. Create a Tag for Button Click Tracking<\/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-track-button-clicks-with-google-tag-manager\/#For_Google_Analytics_GA4_Users\" title=\"For Google Analytics (GA4) Users:\">For Google Analytics (GA4) Users:<\/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-track-button-clicks-with-google-tag-manager\/#For_Google_Analytics_Universal_Analytics_Users\" title=\"For Google Analytics (Universal Analytics) Users:\">For Google Analytics (Universal Analytics) Users:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#5_Test_Your_Setup\" title=\"5. Test Your Setup\">5. Test Your Setup<\/a><\/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-track-button-clicks-with-google-tag-manager\/#6_Publish_Your_Changes\" title=\"6. Publish Your Changes\">6. Publish Your Changes<\/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-track-button-clicks-with-google-tag-manager\/#7_View_Button_Clicks_in_Google_Analytics\" title=\"7. View Button Clicks in Google Analytics\">7. View Button Clicks in Google Analytics<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#For_GA4\" title=\"For GA4:\">For GA4:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#For_Universal_Analytics\" title=\"For Universal Analytics:\">For Universal Analytics:<\/a><\/li><\/ul><\/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-track-button-clicks-with-google-tag-manager\/#8_Advanced_Tracking_Options\" title=\"8. Advanced Tracking Options\">8. Advanced Tracking Options<\/a><\/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-track-button-clicks-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_on_Your_Website\"><\/span>1. <strong>Set Up Google Tag Manager on Your Website<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before you start tracking button clicks, ensure that Google Tag Manager is properly installed on your website. If you haven\u2019t done so yet, follow these steps:<\/p>\n<ul>\n<li><strong>Sign in to GTM<\/strong>: Go to <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noopener\">Google Tag Manager<\/a> and log in with your Google account.<\/li>\n<li><strong>Create a container<\/strong>: If you haven\u2019t created one, follow the instructions to create a container for your website. GTM will provide two code snippets (one for the <code>&lt;head&gt;<\/code> and one for the <code>&lt;body&gt;<\/code> of your HTML).<\/li>\n<li><strong>Add GTM code<\/strong>: Insert the GTM container code into your website. This code allows GTM to manage the tags and triggers for your site.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"2_Enable_Built-in_Click_Variables\"><\/span>2. <strong>Enable Built-in Click Variables<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To track button clicks, you\u2019ll need to enable some built-in variables in GTM that will capture the relevant information about the clicked elements.<\/p>\n<ul>\n<li><strong>Go to GTM<\/strong>: Open your GTM container.<\/li>\n<li><strong>Navigate to Variables<\/strong>: On the left-hand side of the screen, click on <strong>Variables<\/strong>.<\/li>\n<li><strong>Configure Built-in Variables<\/strong>: Click on <strong>Configure<\/strong> (located in the Built-In Variables section).<\/li>\n<li><strong>Select Click Variables<\/strong>: In the list, scroll down to the <strong>Clicks<\/strong> section and check the following variables:\n<ul>\n<li>Click Element<\/li>\n<li>Click Classes<\/li>\n<li>Click ID<\/li>\n<li>Click Target<\/li>\n<li>Click URL<\/li>\n<li>Click Text<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>These variables will capture the attributes of the buttons users click on, such as the button&#8217;s text, ID, or class.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Create_a_Trigger_for_Button_Clicks\"><\/span>3. <strong>Create a Trigger for Button Clicks<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, you need to create a trigger that tells GTM to listen for button click events.<\/p>\n<ol>\n<li><strong>Go to Triggers<\/strong>: In GTM, navigate to the <strong>Triggers<\/strong> section in the left-hand menu.<\/li>\n<li><strong>Create a New Trigger<\/strong>: Click <strong>New<\/strong> to create a new trigger.<\/li>\n<li><strong>Trigger Configuration<\/strong>:\n<ul>\n<li>Name your trigger something descriptive, like &#8220;Button Click Trigger.&#8221;<\/li>\n<li>Click on <strong>Trigger Configuration<\/strong> and select <strong>Click<\/strong> \u2192 <strong>All Elements<\/strong> (this will allow you to track clicks on all elements, but you can refine this later).<\/li>\n<\/ul>\n<\/li>\n<li><strong>Trigger Type<\/strong>: In the configuration screen, select <strong>Some Clicks<\/strong> (this allows you to specify which clicks to track).<\/li>\n<li><strong>Define Conditions<\/strong>: Set up conditions to track only button clicks. You can use different attributes like the button&#8217;s class, ID, or text, depending on how the button is defined on your site. Common options are:\n<ul>\n<li><strong>Click Classes<\/strong> contains &#8220;btn&#8221; (assuming your button class has &#8220;btn&#8221; or another consistent class name).<\/li>\n<li><strong>Click ID<\/strong> equals &#8220;submit-button&#8221; (if your button has a specific ID).<\/li>\n<li><strong>Click Text<\/strong> equals &#8220;Submit&#8221; (if the button\u2019s text is &#8220;Submit&#8221;).<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save<\/strong>: Once you\u2019ve set up the conditions, click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"4_Create_a_Tag_for_Button_Click_Tracking\"><\/span>4. <strong>Create a Tag for Button Click Tracking<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now that you\u2019ve created a trigger, you need to create a tag that will send the data to Google Analytics or another analytics tool.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"For_Google_Analytics_GA4_Users\"><\/span>For Google Analytics (GA4) Users:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Create a New Tag<\/strong>: Go to <strong>Tags<\/strong> and click <strong>New<\/strong>.<\/li>\n<li><strong>Tag Configuration<\/strong>: Click <strong>Tag Configuration<\/strong> and select <strong>Google Analytics: GA4 Event<\/strong>.<\/li>\n<li><strong>Set Up the Tag<\/strong>:\n<ul>\n<li><strong>Measurement ID<\/strong>: Enter your <strong>Google Analytics 4 Measurement ID<\/strong> (found in your Google Analytics account under Admin \u2192 Property \u2192 Data Streams).<\/li>\n<li><strong>Event Name<\/strong>: Name the event something descriptive like \u201cbutton_click.\u201d<\/li>\n<\/ul>\n<\/li>\n<li><strong>Event Parameters<\/strong>: Add parameters to send additional information about the button click:\n<ul>\n<li><strong>Parameter Name<\/strong>: \u201cbutton_text\u201d and set the value to <strong>{{Click Text}}<\/strong>.<\/li>\n<li><strong>Parameter Name<\/strong>: \u201cbutton_id\u201d and set the value to <strong>{{Click ID}}<\/strong>.<\/li>\n<li><strong>Parameter Name<\/strong>: \u201cbutton_classes\u201d and set the value to <strong>{{Click Classes}}<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Trigger<\/strong>: Attach the button click trigger you created earlier to this tag.<\/li>\n<li><strong>Save<\/strong>: Save your tag.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"For_Google_Analytics_Universal_Analytics_Users\"><\/span>For Google Analytics (Universal Analytics) Users:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Create a New Tag<\/strong>: Go to <strong>Tags<\/strong> and click <strong>New<\/strong>.<\/li>\n<li><strong>Tag Configuration<\/strong>: Select <strong>Google Analytics: Universal Analytics<\/strong>.<\/li>\n<li><strong>Track Type<\/strong>: Choose <strong>Event<\/strong> as the track type.<\/li>\n<li><strong>Event Tracking Parameters<\/strong>:\n<ul>\n<li><strong>Category<\/strong>: &#8220;Button Click.&#8221;<\/li>\n<li><strong>Action<\/strong>: &#8220;Click.&#8221;<\/li>\n<li><strong>Label<\/strong>: Use <strong>{{Click Text}}<\/strong>, <strong>{{Click ID}}<\/strong>, or another variable to provide more information about the button.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Google Analytics Settings<\/strong>: Add your <strong>Tracking ID<\/strong>.<\/li>\n<li><strong>Trigger<\/strong>: Assign the <strong>Button Click Trigger<\/strong> you created.<\/li>\n<li><strong>Save<\/strong>: Save your tag.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"5_Test_Your_Setup\"><\/span>5. <strong>Test Your Setup<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before publishing the tag, test it to ensure it&#8217;s working correctly.<\/p>\n<ol>\n<li><strong>Preview Mode<\/strong>: In GTM, click the <strong>Preview<\/strong> button at the top-right of the screen.<\/li>\n<li><strong>Open Your Website<\/strong>: This will open a new tab where you can enter your website URL and connect GTM in preview mode.<\/li>\n<li><strong>Test the Button Click<\/strong>: Click the button you want to track. The GTM Debugger window should show the click event, and under <strong>Tags Fired<\/strong>, you should see your button click tag.<\/li>\n<li><strong>Check Variables<\/strong>: In the GTM preview window, check the values being sent, such as the button&#8217;s text, ID, or class, to ensure they are captured correctly.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"6_Publish_Your_Changes\"><\/span>6. <strong>Publish Your Changes<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once you&#8217;ve confirmed that your button click tag is working properly, you can publish it live.<\/p>\n<ol>\n<li>Exit preview mode.<\/li>\n<li>Click <strong>Submit<\/strong> in the GTM dashboard.<\/li>\n<li>Provide a name for the version (e.g., &#8220;Button Click Tracking&#8221;).<\/li>\n<li>Click <strong>Publish<\/strong>.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"7_View_Button_Clicks_in_Google_Analytics\"><\/span>7. <strong>View Button Clicks in Google Analytics<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once the tag is live, you can view the button click data in Google Analytics.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"For_GA4\"><\/span>For GA4:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li>Go to <strong>Google Analytics<\/strong>.<\/li>\n<li>Navigate to <strong>Reports<\/strong> \u2192 <strong>Engagement<\/strong> \u2192 <strong>Events<\/strong>.<\/li>\n<li>Look for your custom event (e.g., \u201cbutton_click\u201d) to see how often it was triggered.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"For_Universal_Analytics\"><\/span>For Universal Analytics:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li>Go to <strong>Google Analytics<\/strong>.<\/li>\n<li>Navigate to <strong>Behavior<\/strong> \u2192 <strong>Events<\/strong> \u2192 <strong>Overview<\/strong>.<\/li>\n<li>Look for your event category (e.g., &#8220;Button Click&#8221;) to see the click data.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"8_Advanced_Tracking_Options\"><\/span>8. <strong>Advanced Tracking Options<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can also set up more advanced configurations, such as:<\/p>\n<ul>\n<li><strong>Tracking Multiple Buttons<\/strong>: Use different triggers or conditions (e.g., based on button text or ID) to track multiple buttons.<\/li>\n<li><strong>Tracking Form Submissions<\/strong>: If a button is part of a form, you may want to track successful form submissions instead of just clicks.<\/li>\n<li><strong>Custom Event Reporting<\/strong>: In GA4, you can create custom reports or dashboards based on specific button interactions.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>By following this guide, you\u2019ll be able to track button clicks on your website using Google Tag Manager and analyze user interactions in Google Analytics. This data will help you gain insights into how users engage with your website, allowing you to optimize your design and improve conversion rates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tracking button clicks with Google Tag Manager (GTM) allows you to gather valuable insights about user interactions with your website, such as which buttons are&#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-10075","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 track button clicks 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-track-button-clicks-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 track button clicks with Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Tracking button clicks with Google Tag Manager (GTM) allows you to gather valuable insights about user interactions with your website, such as which buttons are...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-18T12:33:34+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-track-button-clicks-with-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/\",\"name\":\"How to track button clicks with Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-10-18T12:33:34+00:00\",\"dateModified\":\"2024-10-18T12:33:34+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to track button clicks 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 track button clicks 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-track-button-clicks-with-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to track button clicks with Google Tag Manager - CEOweb Ltd. Blog","og_description":"Tracking button clicks with Google Tag Manager (GTM) allows you to gather valuable insights about user interactions with your website, such as which buttons are...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-10-18T12:33:34+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-track-button-clicks-with-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/","name":"How to track button clicks with Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-10-18T12:33:34+00:00","dateModified":"2024-10-18T12:33:34+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-track-button-clicks-with-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to track button clicks 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\/10075","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=10075"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10075\/revisions"}],"predecessor-version":[{"id":10076,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10075\/revisions\/10076"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}