How to Track Custom Button Clicks in GA4 on Blogger (Without Google Tag Manager)
Standard GA4 setup is great for tracking overall page views, but it falls short when you need to know whether someone took a valuable action, like clicking a "Start My Free Course" button or submitting a lead form. To truly measure your blog's success and optimize for Google Ads, you need to track these specific conversions, now called Key Events in GA4 . In this guide, I will show you exactly how to track custom button clicks on your Blogger site using a simple HTML snippet. No complex external tools or additional containers like Google Tag Manager are required. Step 1: Prepare the Tracking Command In Google Analytics 4, every action needs a specific "ping" to tell the system that it happened. For lead generation (like signing up for a course or a newsletter), the standard event name is generate_lead . Here is the exact code snippet you will need to add to your button: HTML onclick="gtag('event', 'generate_lead', {'form_name': ...