Get in Touch

112 Capitol Trail, Suite A 361, Newark, Delaware 19711

Phone

+1 917 7958958

Email

info@mkhllc.com

Follow us

Request a quote

Blog Post

Goal tracking

How to Set Up Goal Tracking in Google Analytics

If you don’t know what success looks like, you can’t measure it.

That’s why goal tracking in Google Analytics is essential—especially if you care about what your visitors do, not just how many show up. Whether you’re trying to track form submissions, purchases, or button clicks, goal tracking gives you the visibility to optimize based on real outcomes.

In this guide, I’ll show you exactly how I set up goal tracking in both Google Analytics 4 (GA4) and the legacy Universal Analytics (for reference, if you’re migrating). We’ll focus on what matters most: clear event tracking, conversion setup, and avoiding common errors.

What you’ll learn:

  • The difference between goals and conversions
  • Why goal tracking still matters—even with GA4
  • How to set up goal tracking step-by-step
  • What types of actions to track
  • How to test your setup before going live
  • Tips to keep your goal tracking useful, not messy

Let’s get started.

What Is Goal Tracking in Google Analytics?

Goal tracking

In Universal Analytics, “Goals” were predefined actions like reaching a thank-you page or spending a certain time on site.

In Google Analytics 4, everything is built around events—and goals are now called conversions. They do the same thing, but the setup is different.

Here’s the simple breakdown:

PlatformGoal TypeSetup Method
UADestination, duration, eventAdmin → Goals
GA4Event-basedAdmin → Events → Mark as Conversion

So when we talk about “goal tracking,” we’re really talking about defining the user actions that indicate success—then using analytics to monitor and optimize for them.

Why Goal Tracking Still Matters

Without goals (or conversions), all you get is vanity data:

  • Bounce rate
  • Session time
  • Traffic sources
  • Page views

Nice to look at, but not actionable.

With proper goal tracking, you can:

  • Measure performance across channels
  • Attribute leads or sales to the right campaigns
  • Spot drop-offs in your funnel
  • Build smarter retargeting audiences
  • Prove ROI with data that actually matters

Want to take it further? Learn how I use goal data to measure ROI.

Step-by-Step: Set Up Goal Tracking in Google Analytics 4

Step 1: Identify Your Key Actions

Start with actions that move the business forward. Examples:

  • Form submissions
  • Purchases
  • Trial sign-ups
  • Button clicks
  • Page views on thank-you or confirmation pages

If you’re not sure what to pick, this guide helps clarify.

Step 2: Install GA4 with Google Tag Manager (if not already)

If GA4 isn’t installed:

  • Set up a GA4 property
  • Add the GA4 configuration tag in GTM
  • Set the trigger to “All Pages”
  • Publish the container
  • Test using GA4 DebugView or Tag Assistant

Already set? Great—let’s create your events.

Step 3: Create Events for Your Goals

How to Set Up Goal Tracking in Google Analytics

There are a few options:

Option 1: Use Built-In Events

GA4 tracks some events automatically (like page_view, scroll, file_download).

Option 2: Use Enhanced Measurement

You can toggle this on to capture outbound link clicks, video views, and more—without extra code.

Option 3: Create Custom Events (Recommended for goal tracking)

Use GTM to set up a tag that fires when a specific action happens, like a form submission or button click.

Example:

  • Trigger: Thank-you page view
  • Tag: GA4 Event tag
  • Event name: form_submit

Once tested, publish the tag.

Step 4: Mark Your Event as a Conversion

Now go to GA4:

  • Admin → Events
  • Find your custom event (form_submit)
  • Toggle “Mark as conversion” to ON

From that point on, every time this event fires, it counts as a conversion.

You can view these in:

  • Reports → Engagement → Conversions
  • Explore tab for deeper analysis

Need help creating proper events? I break it down here.

Bonus: Legacy Universal Analytics Setup (If You’re Migrating)

Still using UA (hopefully not for long)? Here’s the older way:

  • Go to Admin → View → Goals → New Goal
  • Choose a goal type (Destination, Duration, Pages/Screens per session, or Event)
  • Set up your trigger (e.g., URL equals /thank-you)
  • Assign a value (optional)
  • Save and verify

Universal Analytics stopped collecting new data after July 1, 2023, but it’s still useful to compare setups during a GA4 transition.

What Should You Track as a Goal?

Here’s what I recommend for most setups:

For eCommerce:

  • purchase (macro)
  • add_to_cart, begin_checkout (micro)

For Lead Gen:

  • form_submit
  • click_to_call
  • schedule_demo

For SaaS or B2B:

  • trial_signup
  • booked_meeting
  • content_download

Start with 1–3 key events and expand as needed. Too many goals = noisy data.

See how I structure goal hierarchies here.

How to Test Goal Tracking

Don’t skip this. If your goal isn’t firing, you’re not tracking anything.

Here’s how I test:

  • GTM Preview Mode: Make sure the tag fires when the action happens
  • GA4 DebugView: Confirm the event is showing up
  • Events Report: Check for the correct event name
  • Conversions Report: Make sure it’s marked and logging data

Test on desktop and mobile. And always use real user paths—not shortcuts—to confirm setup.

Goal Tracking Tips from Real Campaigns

Tracking of goal

  • Use clear, lowercase event names (form_submit, not FormSubmission2023)
  • Set realistic conversion values if you want to calculate ROI
  • Avoid using page views as your only goal unless it’s a thank-you or confirmation page
  • Review goal data weekly—not just after a campaign ends
  • Track both micro and macro goals for full funnel insights

And if your data’s not showing up? Start troubleshooting here.

Final Thoughts

Goal tracking isn’t just a box to check—it’s the foundation for every smart marketing decision you’ll make.

With GA4, you get flexibility. But with flexibility comes responsibility. You need to define what matters, track it clearly, and check it regularly.

Start with one goal this week. Set up the event, test it, and watch the data come in. Then add more as you go.Need a full guide to setting up events and conversions across platforms? It’s all here.