Google Analytics 4
intermediate
5 min read2 steps616 views

How to Track Button Clicks in GA4

Track button clicks in GA4 using either Enhanced Measurement (limited, automatic) or custom events via Google Tag Manager (recommended for specific buttons). In GTM, create a Click trigger targeting your button (by Click ID, Click Classes, or Click Text), then create a GA4 Event tag that sends a cus

Events & Conversionstrack button clicks ga4

Quick Summary

Track button clicks in GA4 using either Enhanced Measurement (limited, automatic) or custom events via Google Tag Manager (recommended for specific buttons). In GTM, create a Click trigger targeting your button (by Click ID, Click Classes, or Click Text), then create a GA4 Event tag that sends a custom event when the trigger fires. Name your event descriptively (e.g., 'cta_click', 'get_quote_click').

Process Flow

Interactive diagram — drag to pan, scroll to zoom

Step-by-Step Guide

Follow these 2 steps to complete this guide

1

Method 1: Enhanced Measurement

GA4's Enhanced Measurement automatically tracks outbound link clicks and file downloads. It does not track internal button clicks (like CTA buttons or form submits) automatically. For those, use GTM.
2

Method 2: GTM (Recommended)

Enable Click variables in GTM: Variables > Configure > enable Click Element, Click Classes, Click ID, Click Text, Click URL. Create a Click trigger: Triggers > New > Click - All Elements (or Just Links for link buttons). Add conditions to target your specific button. Create a GA4 Event tag: Tags > New > GA4 Event > enter your Measurement ID and event name. Add event parameters for context. Test in GTM Preview Mode, then publish.

Was this guide helpful?

Your feedback helps us improve our guides