Skip to content
Lead Tracking

UTM Tracking for WordPress Contact Forms — A Complete Guide

Roger McSaveney 26 February 2026 · 6 min read

UTM parameters are the simplest way to track which marketing campaigns send visitors to your website. Add a few tags to your campaign URLs and Google Analytics shows you exactly which ads, emails, and social posts drive traffic.

But there’s a gap. UTM parameters tell you which campaigns bring visitors — they don’t tell you which campaigns bring leads. When someone fills out your contact form, you see their name and message but not the UTM data from their visit. The tracking stops at the form.

This guide shows you how to capture UTM parameters and attach them to every WordPress form submission automatically — so you know exactly which campaign generated each lead.

Just want the solution? TrueConversion automatically captures UTM parameters and attaches them to form submissions from 9 WordPress form plugins. Free, no code required.

What Are UTM Parameters?

UTM (Urchin Tracking Module) parameters are tags added to the end of a URL. They tell analytics tools where a visitor came from, which campaign brought them, and what medium was used. There are five standard UTM parameters:

  • utm_source — the platform or website (e.g., google, facebook, newsletter)
  • utm_medium — the marketing medium (e.g., cpc, email, social)
  • utm_campaign — the specific campaign name (e.g., spring-sale, plumbers-auckland)
  • utm_term — the keyword (mainly used for paid search)
  • utm_content — used to differentiate between variations (e.g., blue-button vs red-button)

A typical campaign URL looks like this:

https://yoursite.com/services?utm_source=google&utm_medium=cpc&utm_campaign=plumbers-auckland

When someone clicks this URL, Google Analytics records the source, medium, and campaign. You can see aggregate data — how many visitors came from each campaign, which campaigns have the best bounce rates, and so on.

The Problem: UTM Data Doesn’t Reach Your Forms

Here’s where most marketers hit a wall. UTM parameters live in the URL of the landing page. When the visitor navigates to your contact page (a different URL), the UTM parameters are gone. When they submit the form, your form plugin captures the form fields — name, email, message — but not the UTM data.

You end up with two disconnected sets of data:

  1. Google Analytics knows that 200 visitors came from your Google Ads campaign, but can’t tell you which ones submitted a form
  2. Your form plugin knows that John Smith submitted a quote request, but can’t tell you which campaign sent him

The only way to bridge this gap is to capture the UTM parameters when the visitor lands, store them through their browsing session, and inject them into the form submission when they fill out the form.

How UTM Tracking for Forms Works

The technical process requires three components:

1. Capture on landing. JavaScript reads the UTM parameters from the URL when the visitor first arrives. This happens on the landing page, before the visitor navigates anywhere else.

2. Session storage. The captured UTM data is stored in a cookie or localStorage so it persists as the visitor browses your site. When they navigate from your landing page to your contact page, the data comes with them.

3. Form injection. When the visitor submits a form, the stored UTM data is attached to the submission — either through hidden form fields or server-side processing. Your form plugin’s notification email or dashboard now includes the campaign source.

Building this manually requires custom JavaScript for capture and storage, plus PHP code to hook into your specific form plugin’s submission process. Each form plugin has a different hook and data structure, so the server-side code varies for each plugin.

The Easy Way: TrueConversion

TrueConversion handles all three steps automatically for 9 popular WordPress form plugins. Install it, enable your form plugins, and UTM tracking is active. No code, no hidden fields to add manually, no per-form configuration.

Here’s what TrueConversion captures for every form submission:

  • All five UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content)
  • Ad platform click IDs (gclid for Google Ads, fbclid for Facebook, msclkid for Microsoft Ads, and more)
  • The landing page URL
  • The referring website
  • A human-readable traffic source label (e.g., “Google Ads”, “Organic Search”, “Meta Ads”)

Every submission appears in the TrueConversion dashboard with a colour-coded traffic source badge and full UTM details. You can also export everything as a CSV for your own reporting.

Setup in Three Steps

  1. Download TrueConversion (free) and install it on your WordPress site
  2. Run through the setup wizard — enable your form plugins (Contact Form 7, WPForms, Gravity Forms, Elementor Pro Forms, etc.)
  3. That’s it — UTM tracking is now active on all your forms

See the setup documentation for a detailed walkthrough.

Free forever. Full UTM tracking, all 9 form plugins, dashboard, CSV export — no credit card required.

Supported WordPress Form Plugins

TrueConversion works automatically with these form plugins — no per-form configuration needed:

  1. Contact Form 7
  2. WPForms (Free and Pro)
  3. Gravity Forms
  4. Ninja Forms
  5. Formidable Forms
  6. Fluent Forms
  7. Elementor Pro Forms
  8. Forminator
  9. Jetpack Forms

If you use a custom HTML form, you can add the [tc_fields] shortcode inside your <form> tags to inject hidden UTM tracking fields automatically.

Beyond UTM Tracking: Send Conversions to Google Ads

UTM tracking tells you where your leads come from. But TrueConversion goes further — working alongside your Google Tag Manager conversion tracking or independently, it also lets you send real conversions back to Google Ads (available on the Pro plan). When you mark a genuine enquiry as a conversion, it’s uploaded to Google Ads automatically. Google then optimises your campaigns to find more customers like the ones that actually matter.

With enhanced conversions enabled, the match accuracy improves even further. This combination — knowing where leads come from AND feeding real conversions back to Google — gives small businesses the same lead attribution capabilities that enterprise companies pay thousands of dollars for.

Download TrueConversion — Free UTM Tracking for WordPress Forms

See exactly which campaign, ad, or traffic source generated each form submission. Free forever, works with 9 form plugins, no code required.

Frequently Asked Questions

Do I need to add hidden fields to each form?

No. TrueConversion hooks into your form plugin’s submission process automatically. You don’t need to modify your forms at all. Just install the plugin and enable your form plugins in settings.

Does it work if the visitor navigates to a different page before submitting the form?

Yes. TrueConversion stores UTM data in a cookie and localStorage when the visitor first lands on your site. The data persists through the entire browsing session, regardless of how many pages they visit before submitting a form.

What if I use multiple form plugins on the same site?

TrueConversion supports all 9 form plugins simultaneously. If you use WPForms on some pages and Contact Form 7 on others, both are tracked. You can see which form plugin handled each submission in the dashboard.


Roger McSaveney

← Back to Articles

Comments

No comments yet. Be the first to share your thoughts!

Leave a comment