createademo
FeaturesEverything in the editorFree Tools30+ tools, no signupChrome ExtensionRecord right in your browser
Pricing
BlogGuides & playbooksHelp CenterDocs & supportAboutWhy we built this
Sign inGet started
Blog/Tutorials
Tutorial

How to Track Button Clicks in Google Analytics 4

Track clicks on a specific button in GA4 — what Enhanced Measurement catches for free, and how to set up a custom click event with Google Tag Manager. A step-by-step walkthrough with an interactive demo.

JM
John M
May 27, 2026 · 2 min read
Tutorials

To track button clicks in Google Analytics 4: GA4's Enhanced Measurement automatically captures outbound link clicks and downloads, but not clicks on ordinary on-page buttons. For a specific button (like "Sign up" or "Add to cart"), set up a custom click event in Google Tag Manager — create a click trigger that matches the button, fire a GA4 event tag, publish, and confirm it in DebugView. Here's the full walkthrough.

A GA4 walkthrough as an interactive demo — click through it yourself instead of reading screenshots.

First: check what's already tracked free

Before building anything, confirm what GA4 captures on its own. In Admin → Data Streams → your web stream → Enhanced measurement, you'll see toggles for outbound clicks, scrolls, file downloads, and more. If your "button" is actually an outbound link or a file download, it may already be tracked — check Reports → Engagement → Events first.

For a normal on-page button, it won't be — so you'll add a custom event.

Step 1: Set up the click trigger in GTM

In Google Tag Manager:

  1. Turn on the built-in Click variables (Variables → Configure → check the Click variables like Click Text, Click ID, Click Classes).
  2. Create a new Trigger → Click – All Elements (or Just Links if it's a link).
  3. Set it to fire on Some Clicks, with a condition that matches your button — e.g. Click ID equals signup-btn or Click Text contains "Sign up".

Step 2: Create the GA4 event tag

  1. New Tag → Google Analytics: GA4 Event.
  2. Select your GA4 configuration / tag.
  3. Set an Event Name like button_click (or something specific, signup_click).
  4. Optionally add event parameters (e.g. button_text) using the click variables.
  5. Attach the trigger from Step 1.

Step 3: Test in Preview and DebugView

Use GTM's Preview mode and open your site, then click the button. In GA4's Admin → DebugView, confirm the event fires in real time with the right name and parameters.

Always verify in DebugView before you publish. It shows events the instant they fire, so you catch a misconfigured trigger immediately instead of waiting a day for reports and wondering why nothing showed up.

Step 4: Publish

In GTM, click Submit to publish the container. The event now fires for real visitors. To make it a conversion, mark it as a key event in GA4.

Step 5: Report on it

After 24–48 hours the event appears in Reports → Engagement → Events, or build a custom report filtered to your event name to track it over time.

Common mistakes

  • Assuming Enhanced Measurement covers it. It catches outbound links and downloads, not on-page buttons.
  • Trigger fires on every click. Use Some Clicks with a specific condition, or you'll log clicks on everything.
  • Forgetting to publish the GTM container. Preview mode works for you but not for visitors until you Submit.

Frequently asked questions

Does GA4 track button clicks automatically?

Only some. GA4's Enhanced Measurement automatically tracks outbound link clicks, file downloads, and a few other interactions — but not clicks on regular on-page buttons (like 'Add to cart' or 'Sign up'). For those you need a custom event, most reliably set up through Google Tag Manager.

Do I need Google Tag Manager to track button clicks in GA4?

It's the most reliable way. GTM lets you create a click trigger for a specific button and send a GA4 event without touching code. You can also send events directly with gtag.js if you can edit the page, or use GA4's own 'Create event' for simple cases — but GTM handles button clicks most cleanly.

How do I see button click data in GA4?

After the event starts firing, open Reports → Engagement → Events, or build a custom exploration filtered to your event name. New events can take 24–48 hours to appear in standard reports, but you can confirm they're firing immediately in Admin → DebugView while testing.

Why aren't my button clicks showing in GA4?

Common causes: Enhanced Measurement doesn't cover on-page buttons (only outbound links/downloads), the GTM trigger doesn't match the button, the tag isn't published, or you're looking too soon. Use DebugView to confirm the event fires in real time before waiting on reports.

Related in Tutorials

How to Create a Custom Report in Google Analytics 4 (Step by Step)
3 min read
How to Filter Out Internal Traffic in Google Analytics 4
2 min read
How to Convert a Video to a GIF
6 min read

Show your product, don't pitch it.

Record an interactive demo in under 30 minutes. Full editor free on every plan. No per-seat fees.

Get started free →
createademo

Create interactive product demos in minutes. No video editing required.

Product

FeaturesPricingHelp CenterBlogFree Tools

Company

AboutContactChrome Extension

Legal

Privacy PolicyTerms of ServiceSecurity

© 2026 createademo. All rights reserved.