How to set up goal tracking on a contact form

The Bulletin Analytics

How to set up goal tracking on a contact form

A form that works but isn't tracked as a conversion is invisible in every report that matters, even though it's doing exactly what it was built to do.

By Casey Owens · · 11 min read

A contact form submission is one of the clearest signals a website can produce: a visitor cared enough to type out their information and ask for help. If that action isn't set up as a tracked conversion, it doesn't show up separately from ordinary page views, and its actual value to the business goes unmeasured.

The most dependable way to set it up is to send visitors to a thank-you page after a successful submission, then tell Google Analytics that a visit to that page counts as a key event. This guide walks through that method and the event-based alternative, how to test both, what commonly breaks, and what to do with the numbers once they exist. If you're new to the vocabulary, what is a conversion and how do you track one covers the idea first.

A note on the words

Google Analytics 4, the current version of Google's analytics tool, used to call these things conversions. Google now calls them key events in the main interface, so the older term "goals," from the previous version of Analytics, may show up in older articles and from people who learned the old system. The idea is the same: you pick the visitor actions that matter to the business and mark them so reports can count them. Google changes the menus and wording from time to time, so use the current Help article in the sources if your screen looks different from the steps here.

Decide what counts before you set anything up

Write down the exact action you want to measure. For most service businesses that's "a visitor submits the contact or quote form." Other candidates are a tap on the phone number, a click on a booking link, or a text-message button. Start with one or two. A dozen "important" actions turn every report into noise. Form submissions and calls are the two that usually correspond to real leads, and contact form or phone number: what gets more leads explains why you'll want to track both.

The confirmation page method

The simplest, most reliable setup redirects a visitor to a dedicated "thank you" or confirmation page after a successful form submission, then tracks a visit to that specific page as the conversion. Since that page can only be reached by completing the form, it's a clean, unambiguous signal.

The steps look like this, in general terms:

  1. Create the thank-you page on your site, with a clear address such as /thank-you/. Say thanks, tell the visitor what happens next ("We'll call you within one business day"), and give your phone number in case it's urgent. That's better than a bare message, because it's good service and reduces the chance they submit twice.
  2. Set the form to redirect to that page after a successful submission. Most form tools and website builders have a "confirmation page" or "redirect URL" setting.
  3. In Google Analytics, create an event that fires when the page /thank-you/ is viewed. In GA4, this is usually done under the Events settings with a rule that matches on the page location or path.
  4. Mark that event as a key event so it appears in the conversion reporting.
  5. Keep the thank-you page out of search results, with a "noindex" setting if your platform offers one, so strangers can't land there directly and skew your numbers.

One caution: if people can reach the thank-you page without submitting the form, such as by bookmarking it or by clicking a link in an email, the count will be inflated. That's another reason to keep it unlisted and not link to it from your navigation.

The event-based method

Modern analytics platforms can also track a conversion based on a specific on-page event, like a successful form submission detected by the platform directly, without needing a separate confirmation page. This is more technical to set up correctly but works well for a single-page contact flow.

GA4 has an "enhanced measurement" option that can detect some form interactions automatically. In practice it's often unreliable for forms that submit without reloading the page, and it can record a form start or a failed attempt rather than a successful send. Don't trust it without testing. A tag manager can fire an event when the form tool reports a success, which is cleaner, but it takes more setup. If your form tool offers a built-in analytics integration or a success event, that's usually the most dependable event-based route. Ask whoever built your site what's available before you build something custom.

Which method to pick

  • Use the thank-you page if your form can redirect. It's the easiest to test, the easiest to explain, and it works in every analytics tool, including ones you may switch to later.
  • Use the event method if the form displays a message in place and can't redirect, or if you need to track multiple forms on one page.
  • Don't rely on both counting the same action as two separate key events, or your numbers will double.

Test it before trusting it

After setting up tracking either way, submit a real test form yourself and confirm it shows up in the analytics platform, usually within a day. Skipping this step means potentially running for months on tracking that was silently broken from the start.

You can get faster feedback. GA4 has a Realtime report that shows events as they happen, and a debugging view that shows what's being sent from your own browser. Open one in a separate window, submit the test form, and watch for your event. Also check the thank-you page loads correctly, the form's notification email arrived, and the lead went where it should in whatever system you use to track enquiries. A form that fires the tracking but never delivers the message is a bigger problem than missing data.

Test on a phone too, since most visitors to a trades site are on one. Use cellular data, not just your office Wi-Fi, to see what a customer sees.

Don't forget to test failure cases too

If your form has validation (required fields, spam protection), make sure the tracking only fires on an actual successful submission, not on every attempt, or the conversion numbers will be inflated and unreliable.

Try submitting with a missing required field. Try a bad email address. If the form has a spam check, see what happens when it fails. None of these should produce a key event. Also decide how you'll handle your own test submissions: use a recognizable name like "TEST" so you can remove or ignore them in your records, and think about excluding your own traffic from reports, since your team's visits and tests can distort a small site's numbers.

Common reasons tracking breaks

  • The thank-you page address changed after a site update, and the event rule still points to the old one.
  • The analytics code isn't on the thank-you page, because the page was built with a different template.
  • A plugin or form tool update changed how the form submits.
  • Duplicate tracking, where two tools both report the same submission.
  • Consent banners that block analytics until a visitor accepts, so some real submissions aren't counted. This is normal in some regions and settings; just know that analytics will undercount.
  • Spam submissions counting as conversions. If spam is a problem, add a spam filter and check the numbers against the leads you actually received.

The check that catches most of these is simple: compare the number of key events with the number of form emails you received over the same month. They should be close. If they're far apart, something's wrong, and the emails are the truth.

Track the source of each lead, too

Counting submissions is half of the job. The other half is knowing where they came from. Once the key event exists, Analytics can show which traffic sources, pages and campaigns produced it. For paid ads, use consistent tags on your ad links so you can tell campaigns apart; UTM parameters: a beginner's guide explains how. For phone calls, form tracking alone won't capture them, so look at call tracking: how to know what brought the call.

You can also add a simple question to the form: "How did you hear about us?" It's imperfect, but it catches referrals and offline sources that Analytics can't see, and it's a useful cross-check.

Why this connects to everything else

Once form submissions are a tracked conversion, every other report (which pages drive the most conversions, which traffic source converts best) becomes meaningful instead of just showing raw visit counts. See Google Analytics for small business: the reports that actually matter. It also means you can judge changes to the site, like a new headline or a shorter form, by whether more people contact you, rather than by how the page looks. And if you advertise, it's the foundation for tracking ROI on paid ads without a marketing degree.

Be realistic about sample sizes. A small business site might get a handful of submissions a month, which is too few to draw firm conclusions from a week of data. Look at trends over a few months, and treat any single month's change with caution.

What the numbers can't tell you

A tracked form submission is a lead, not a sale. Some are spam, some are wrong numbers, some are people asking about services you don't offer. Keep your own record of which leads became jobs, even if it's a simple note beside each submission. Over time that tells you which sources send people who actually hire you, which matters more than raw submission counts. A source that sends fewer leads but more jobs is the better source.

What this means for your business

This week, do three things. Check whether your form sends visitors to a thank-you page; if not, set that up. Make sure your analytics counts a visit to that page as a key event. Then submit a test and confirm it appears. Add a monthly check where you compare the analytics count to the leads you actually received. Once that's working, add click-to-call tracking and you'll have a real picture of how visitors turn into contacts.

Questions

Does this work the same way for a click-to-call link?

The setup is different (tracking a link click rather than a page visit or form event) but the underlying goal is the same: capturing a high-intent action as a measurable conversion.

What if my form is built into a third-party tool, not the website itself?

Most third-party form tools offer some form of integration with common analytics platforms, though the setup steps vary by provider and are worth checking directly.

How do I know if my current tracking is already broken?

Submit a test form and check the analytics platform the same day. If nothing shows up, that's your answer, and it's worth checking sooner rather than after months of blind data.

Do I need Google Tag Manager to do this?

Not for the thank-you page method, which can be done inside Google Analytics alone if the analytics code is on your site. Tag Manager helps with event-based tracking and with multiple actions, but it's an extra tool to learn and maintain. Start simple.

Why does Analytics show fewer conversions than I received?

Common reasons are visitors who decline tracking, ad blockers, delays in reporting and tracking that breaks on some devices. A modest gap is normal. A large gap suggests a setup problem, so test it again.

Can I track a form that's embedded from another website?

Sometimes. If the form lives inside an embedded frame from another provider, your analytics may not see what happens inside it. Look for a redirect option after submission, or for an integration that sends a success event to your site. Ask the form provider what they support.

Should I mark every page view as a key event?

No. A key event should be an action that signals a real lead or sale. Marking ordinary pages as key events makes your conversion reports meaningless. Keep the list short and meaningful.

Sources

Want a site that launches with answers already written?

Start a project