In order to track clicks on this button via GTM, follow the steps below: Step-1: Navigate to the web page (in Google Chrome browser) which contains the button you want to track via GTM. The value of the ‘id’ attribute must be unique and it must not contain any white space. That’s how Custom Events see the daylight.
I think I could even write a guide about it. IMPORTANT: Trigger the Google Analytics Event on the Custom Event created in the previous step (start-btn) and NOT on all page views.
Without the ID attribute, you can’t easily track clicks on a link via GTM. Password:
I’ve tried hard to come up with some interesting and intriguing introduction for this blog post and I guess I failed. Trigger it for either all page views or for the page where your Riddle is embedded. ", How to track Google Analytics Events via Google Tag Manager, Before you start event tracking set up via GTM, How to track a button click in Google Tag Manager, Tracking clicks on a button which is embedded across a website, How to track link clicks in Google Tag Manager (tracking PDF downloads), How to track outbound link clicks via Google Tag Manager, How to track a form submissions via Google Tag Manager, Form field tracking with Google Tag Manager, Understanding Triggers and Variables in Google Tag Manager, Ecommerce Tracking in Google Analytics – Tutorial, Event Tracking via Google Tag Manager – Tutorial, Event Tracking in Google Analytics – Tutorial, Guide to Google Analytics Store Visits Tracking, Offline Conversion Tracking in Google Analytics – Tutorial, Implementing E-Commerce Tracking via Google Tag Manager, Tracking Virtual Pageviews in Google Tag Manager – Tutorial, YouTube Video tracking via Google Tag Manager, How to Use Keyword Hero to Reveal Not Provided Keywords in Google Analytics, Virtual pageviews in Google Analytics – Tutorial, Google Analytics and YouTube Integration Tutorial, Google Analytics Cross Domain Tracking Explained Like Never Before, Using multiple Google Analytics tracking codes on web pages, The one thing that you don’t know about PayPal.com and the referral exclusion list, Calculated Metrics in Google Analytics – Tutorial, Creating your own Google Analytics Tag Auditing System, Tracking Site Search without Query Parameter in Google Tag Manager, Tracking true referrals in Google Analytics when using PayPal and other payment gateways, Phone Call Tracking in Google Analytics and Beyond, Learn to Track Qualified and Won Leads in Google Analytics, Introduction to Postbacks in Google Analytics, Google Analytics Recurring Revenue and Subscriptions Tracking Tutorial, How to track the impact of cookie consent on website traffic in Google Analytics, Tracking Offline Conversions in Google Ads, Implementing Scroll Tracking via Google Tag Manager, Scroll Tracking via Scroll Depth Trigger in Google Tag Manager, Site Search Tracking In Google Analytics Without Query Parameters, Video Tracking via YouTube Video Trigger In Google Tag Manager, How to Correctly Measure Conversion Date & Time in Google Analytics, Google Analytics Social Tracking – Twitter, Facebook, Google Plus and LinkedIn, Google Analytics Cross Domain Tracking (ga.js), Tracking Twitter and Linkedin Social Interactions in Google Analytics, Creating Content Group in Google Analytics via tracking code using gtag.js, Tracking Site Search in Google Analytics with Query Parameters, Understanding site search tracking in Google Analytics, Creating and Using Site Search Funnel in Google Analytics, Learn to Setup Facebook Pixel Tracking via Google Tag Manager, Setting up & Tracking AMP Pages in Google Analytics, Setting up Sales Funnel across websites in Google Analytics, Regular Expressions (Regex) for Google Analytics & Google Tag Manager – Tutorial, Maths and Stats for Web Analytics and Conversion Optimization, Master the Essentials of Email Marketing Analytics, Attribution Modelling in Google Analytics and Beyond, Attribution Modelling in Google Ads and Facebook.
If you spot a non-standard interaction which cannot be tracked with ready-made tracking solutions (like GTM Recipes), work side-by-side with a developer: Is there anything I missed about Google Tag Manager Custom Event? Follow the steps below to track clicks on all outbound links on your website via Google Tag Manager: Step-1: Create a new trigger with following similar configuration: Trigger Name: Check for clicks on External links. Otherwise you still won't see any data there. Google Tag Manager Custom Event is used for tracking interactions that might take place on your website or mobile app that isn’t handled by standard methods. Create a new variable and choose “Data Layer Variable”. Thanks for the tutorial! Profit. Please help me with this? The only difference is that, when you create the trigger, you set the ‘Page URL’ to . Refresh/enable preview and debug mode. To find your form ID, right-click on the form, select ‘Inspect Element’ (Google Chrome) and look for the ‘ID’ attribute in the