How to Track Clicks Using Google Tag Manager (GTM)

#GTM Tutorial

#Google Tag Manager

When it comes to making data-driven decisions, tracking user interactions on your website is essential. One of the most powerful and flexible ways to do this is by using Google Tag Manager (GTM), especially when combined with Google Analytics 4 (GA4).

In this blog, I’ll walk you through exactly how to track a click event (like “Forgot Your Password”) using GTM and why it matters for your business or web project.

🧠 Why Click Tracking Matters

Let’s face it — if you’re not measuring what your users are clicking on, you’re flying blind.

Whether you're running a SaaS platform, an eCommerce site, or a lead generation funnel, knowing what users interact with tells you:

  • Which CTAs are converting
  • Where drop-offs happen
  • How users flow through your site
  • Where improvements can be made

Simple example? Tracking how many people clicked on a “Forgot Your Password?” link. This one metric can tell you a lot about usability and user engagement.

🎯 Step 1: Understand the Measurement ID

Before we set up tracking, you’ll need your Measurement ID from GA4. This ID connects your GTM with Google Analytics so the events you're sending can be recorded properly.

Here’s how to find it:

  • Go to your GA4 Property
  • Navigate to Admin > Data Streams
  • Copy the Measurement ID from your website stream

🧱 Step 2: Create a Constant Variable in GTM

To avoid copy-pasting your Measurement ID repeatedly, create a Constant Variable in GTM:

  • Go to Variables > New
  • Choose Variable Type: Constant
  • Name it Measurement ID
  • Paste your ID

This step makes your tags cleaner and easier to maintain.

🔗 Step 3: Create a Trigger for “Forgot Password” Click

Next, create a trigger that will fire when someone clicks on a specific link (in this case, “Forgot Your Password”):

  • Go to Triggers > New
  • Choose Click – Just Links
  • Use Click Classes or Click URL as the condition
  • Match it to the class or link path of your "Forgot Password?" element

Tip: Use Inspect Element in your browser to identify these selectors.

🏷️ Step 4: Set Up the Tag

Now let’s build the actual tag:

  • Go to Tags > New
  • Choose GA4 Event Tag
  • Use the variable {{Measurement ID}} for your ID
  • Name the event something like forgot_password_click
  • Link the trigger you created earlier

Save it. Boom — your event tag is ready!

🔍 Step 5: Preview & Test

Use GTM Preview Mode to test your new tag:

  • Click on the “Forgot Password” link on your site
  • Check the Tag Assistant to confirm the tag fired
  • Open Google Analytics > Real-Time to see the event appear

💡 Pro Tip: Use consistent naming for your events. Clean naming = clean reports.

📈 Bonus: Why This Matters for Funnels

This is just the beginning of your tracking journey. You can repeat this process for:

  • Login button clicks
  • Register clicks
  • CTA buttons
  • Page scrolls
  • Form submissions

Tracking these micro-events helps you build a full funnel view of how users behave and where you lose them. This insight lets you optimize conversions without guessing.

🚀 Ready to Track Smarter?

If you’re feeling a bit overwhelmed or want help customizing your GTM setup — I’ve got you.

👉 Schedule a FREE consultation with me, and let’s get your tags firing, data flowing, and conversions growing.

Whether you need help with GTM, Facebook Pixel, server-side tracking, or building your full data funnel — we’ll make sure your setup is smart, scalable, and set up for success.

Let’s make your tracking work for you — not against you.

Himanshu Batra

Himanshu Batra

Himanshu Batra is the founder and lead writer at Gurulabs, where they share deep insights into digital marketing.