How to Track Clicks with Google Analytics 4

Cody Schneider10 min read

Tracking what users click on your website tells you what they care about most. Google Analytics 4 gives you the tools to monitor these interactions, but getting it set up isn't always obvious. This article will show you how to track clicks in GA4, from the automatic tracking that’s already built-in to setting up custom events for the specific buttons and links that matter to your business.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Bother Tracking Clicks?

Every click is a tiny signal of user intent. Are people clicking "Add to Cart" but not finishing their purchase? Are they downloading your case studies? Is your main "Get a Demo" call-to-action getting any attention? Tracking these specific clicks moves you beyond high-level metrics like pageviews and provides clear, actionable data about user engagement and conversion pathways.

By monitoring clicks, you can:

  • Identify which calls-to-action (CTAs) are most effective.
  • Understand how users navigate through your site and funnels.
  • Pinpoint drop-off points in your user journey.
  • Validate website design changes by seeing if they encourage the desired clicks.
  • Attribute specific on-site actions to your marketing campaigns.

Ultimately, click tracking helps you understand what's working, what's not, and where to focus your efforts to improve the user experience and drive more conversions.

GA4 and Enhanced Measurement: The Clicks You Already Track

Coming from Universal Analytics, you might be surprised to learn that GA4 tracks some clicks automatically right out of the box. This feature is called Enhanced Measurement, and it uses GA4's event-based model to capture common user interactions without you needing to touch any code.

Two of these automatic events are directly related to clicks:

  • Outbound clicks: This event, named click, fires anytime a user clicks a link that takes them away from your current website domain. It’s incredibly useful for tracking engagement with partner sites, social media profiles, or third-party affiliate links.
  • File downloads: This event, named file_download, fires when a user clicks a link that leads to a file download (like a PDF, DOCX, XLSX, or ZIP file). This helps you measure engagement with lead magnets, datasheets, or e-books.

Enhanced Measurement is enabled by default in most GA4 setups. To check if it’s active for your property, follow these simple steps:

  1. Navigate to the Admin section of GA4 (the gear icon in the bottom-left).
  2. Under the Property column, click on Data Streams and select your web data stream.
  3. Under Events, you will see a section for Enhanced Measurement. Make sure the toggle is on.
  4. You can click the gear icon in this section to see a list of all automatic measurements and enable or disable specific ones, like Outbound clicks or File downloads.

If it's on, you're already collecting this data! You can find it in your reports under Reports > Engagement > Events.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Tracking Custom Clicks with Custom Events

Enhanced Measurement is great, but it doesn't cover the most important clicks: interactions with elements within your own website. This includes clicks on your primary navigation, "Add to Cart" buttons, form submissions, video play buttons, or specific "Schedule a Demo" CTAs. These are high-value actions you need to track.

To do this, you’ll need to set up a custom event. We’ll cover two primary methods for this: the simple way using the GA4 interface and the more powerful way using Google Tag Manager (GTM).

Method 1: Using the GA4 "Create Event" Tool

The "Create Event" feature inside the GA4 admin panel allows you to create new events based on existing events that are already being collected. It's a great option if you don't use Google Tag Manager and need to track a click that goes to a unique URL, like a "thank you" or confirmation page.

Let's say you want to track when someone clicks the final "Submit" button on your contact form, which then redirects them to www.yourwebsite.com/thank-you.

Step-by-Step Guide:

  1. Go to Admin > Data display > Events and click the Create event button. Then click "Create" again.
  2. In the Custom event name field, give your new event a clear, descriptive name. Google recommends using snake_case (all lowercase with underscores), so something like contact_form_submit is perfect.
  3. Now, you need to define the matching conditions that will trigger this new event. This tells GA4 which existing event to look for. Since Universal Analytics is gone, pretty much everything is a click, page_view or scroll. Let's start there.
  4. Click Add condition to specify which page view counts.
  5. Leave "Copy parameters from the source event" checked. This ensures your new custom event still includes all the helpful information from the original page_view event. Click Create.

That's it! Now, whenever a page_view event occurs for the "/thank-you" page, GA4 will also create a new, separate event called contact_form_submit. This method is fast and code-free but is limited. It only works if the click leads to a unique page, and it can't distinguish between different buttons on the same page.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Method 2: Using Google Tag Manager (Recommended)

For total flexibility and control, Google Tag Manager is the best tool for the job. It lets you track a click on literally any element on your website - a button, a text link, an image, you name it - by using things like its Click ID or CSS class.

Let's walk through an example of tracking clicks on a "Request a Demo" button that has the CSS class btn-demo-request.

Step 1: Enable Click Variables

First, you need to tell GTM to pay attention to click-related data. In your GTM workspace, go to the Variables section. Under Built-In Variables, click Configure and enable all the variables in the "Clicks" section (like Click Element, Click Classes, Click ID, Click URL, and Click Text). This makes that information available to use in your triggers.

Step 2: Find Your Button’s Identifier

How will GTM know which button is the "Request a Demo" button? You need to find a unique identifier for it. Right-click on your button and choose Inspect. This will open your browser’s developer tools. Look for a unique id or class for that button. In our example, the button looks like this in the HTML: <a href="/demo" class="btn btn-demo-request">Request a Demo</a>. The class btn-demo-request is a great unique identifier to use.

Step 3: Create a Trigger

The trigger tells GTM when to fire your tracking tag.

  1. Go to the Triggers section and click New.
  2. Give your trigger a name, like "Click - Demo Request Button".
  3. Click on Trigger Configuration and choose Just Links under the Click section (or 'All Elements' if your button is not a standard <a>,).
  4. Select Some Link Clicks.
  5. Set the trigger condition to fire when Click Classes contains btn-demo-request. Click Save.

Step 4: Create the GA4 Event Tag

The tag is what actually sends the data to GA4 when the trigger fires.

  1. Go to the Tags section and click New.
  2. Name your tag, something like "GA4 Event - Demo Request Click".
  3. For Tag Configuration, choose Google Analytics: GA4 Event.
  4. Select your base GA4 Configuration Tag from the dropdown list.
  5. In the Event Name field, enter a name that will appear in your GA4 reports, like request_demo_click.
  6. Under Event Parameters, you can add more context. This is what makes GTM so powerful. Click Add Parameter. A good practice is to capture the text of the button that was clicked. Set the Parameter Name to link_text, and for the Value, click the variable icon (+) and select {{Click Text}}. This will dynamically capture the text on the button when it's clicked.

You can see how this becomes powerful since you can start measuring every button click with one or two events, instead of building out hundreds. You might create an additional event called menu_click with a click_text value based on the name of your menu item ({{Click Text}}), but you wouldn't necessarily need another trigger for 'menu_click'. Your trigger could have multiple conditions for firing (or btn-menu-request).

  1. Under Triggering, select the "Click - Demo Request Button" trigger you created in the step above.
  2. Click Save.

Step 5: Test and Publish

Never skip testing! The last two steps are testing and publishing. GTM's Preview mode is key here. As soon as you complete tracking setup you'll publish your changes. This is standard in most software deployments. Google has even provided preview deployments which you access directly.

  1. Click the Preview button in the top right of GTM to test your changes. This will also allow you the chance to debug anything wrong with your setup. The tag may not fire for a number of reasons and preview testing allows you troubleshoot that process live. For simple click tests, though, our basic recipe above has you covered. Just remember which unique IDs you use to fire new events.
  2. Once your tests are completed then you'll need to publish these changes. To do so, navigate back to GTM, and hit submit near where you previously previewed your tags in the last step. Voila, after a few minutes, you are now collecting more accurate actionable conversion data to run your business.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Finding Your Click Data in GA4

Once you’ve set up your custom events, you’ll naturally want to see the data. Keep in mind that it can take 24-48 hours for new event data to be fully processed and appear in standard reports.

  • For quick verification: Head to Reports > Realtime. Within minutes of clicking your tracked button, you should see your new custom event (e.g., request_demo_click) appear in the Event count by Event name card.
  • For historical data: The primary place to view your event data is under Reports > Engagement > Events. This report lists all events. You can click on your custom event name to get a more detailed view.

Using Event Parameters in Reports

Remember that link_text parameter we added in GTM? To use it for analysis in GA4 Explorations, you need to register it as a custom dimension.

  1. Go to Admin > Data display > Custom definitions.
  2. Under the Custom dimensions tab, click Create custom dimensions.
  3. Give it a Dimension name, like "Link Text". Set the Scope to "Event".
  4. Add a Description, such as "The text of a clicked link".
  5. For the Event parameter field, enter the exact name you used in GTM: link_text.
  6. Click Save.

Once registered (which can take up to 48 hours), you can now use "Link Text" as a dimension in your custom reports and explorations to segment your data - for instance, creating a report to see how many button_click events happen for each different value of link_text.

Final Thoughts

Tracking clicks is fundamental to understanding user behavior in GA4. While Enhanced Measurement provides a great baseline for outbound and file clicks, setting up custom events via Google Tag Manager unleashes the real power of analytics, letting you measure the exact interactions that lead to conversions.

All this setup work is valuable, but analyzing event data from Google Analytics and cross-referencing it with performance from your ad platforms, CRM, and sales tools remains a huge manual effort. At Graphed, we simplify this entirely. We connect directly to your Google Analytics account - and dozens of other tools like Shopify, Facebook Ads, and Salesforce - and automatically consolidate your data. Instead of building complex reports, you can just ask questions in plain English, like "which blog posts drive the most request_demo_click events?" and get an instant dashboard built for you. See how easy it can be with Graphed.

Related Articles