Skip to content
SourceLoop

How to Track UTM Parameters in Contact Form 7

Follow 5 easy steps for setting up Contact Form 7 UTM tracking…

In this article
  1. 5 Easy Steps to Track UTM Parameters in Contact Form 7
  2. 1. Add UTM Parameters to Your Links
  3. 2. Install SourceLoop on Your Website
  4. 3. SourceLoop.ai Automatically Captures UTM Data
  5. 4. Add Hidden Fields to Your Forms (Optional)
  6. 5. UTM Parameters Are Passed for Each Contact Form 7 Submission
contact form 7 UTM tracking

Do you know the exact source of each lead form submission you’re receiving from Contact Form 7?

Is Meta Ads driving more leads, or is it LinkedIn Ads? Or maybe people are discovering your website organically?

If you don’t know, you’re not leveraging UTM (Urchin Tracking Module) effectively.

In this blog, we’ll learn how to use UTM parameters and a simple tool called SourceLoop.ai for contact form 7 UTM tracking and understanding where each lead and customer comes from.

Let’s get started…

5 Easy Steps to Track UTM Parameters in Contact Form 7

Follow these five simple steps, and you’ll be able to start tracking UTM parameters in Contact Form 7 in just five minutes.

What is UTM Parameter

The first step is to add UTM parameters to all your marketing campaigns, including Meta Ads, Google Ads, LinkedIn Ads, newsletters, etc.

To get even more data, make sure you add UTM parameters to any link you share on the internet—whether it’s in a cold email or a social media post. This ensures you’re not missing the source of any user visiting your website.

Here’s what a link with UTM parameters looks like:

https://website.com?utm_source=paid_social&utm_medium=Facebook&utm_campaign=spring_sales

Resources:

2. Install SourceLoop on Your Website

SourceLoop-Lead-Source-UTM-Tracking-Software

Next, sign up for SourceLoop.ai and add a two-line tracking code to your website.

SourceLoop.ai ensures that when a user lands on your website with UTM parameters (or even without them), it captures the UTM data, organizes it in an easy-to-understand format, and passes it along with form submissions.

This ensures that lead attribution is never missed. Even if a user visits your website multiple times and navigates through different pages, SourceLoop.ai captures and stores their first visit and last visit details—then includes them in the form submission.

Try SourceLoop.ai for Free

3. SourceLoop.ai Automatically Captures UTM Data

Now, whenever a user visits your website, SourceLoop.ai automatically captures their visit data and stores it in first-party browser cookies. (Unlike Google or Meta’s third-party cookies, this makes you GDPR-compliant.)

Example:

Let’s say Airbnb is using SourceLoop.ai and a user searches for “Hotels in London” and clicks on an Airbnb Google Ad.

SourceLoop.ai will capture and organize the user’s visit information like this:

  • Channel = Paid Search
  • Source = Google
  • Medium = Hotel Campaign
  • Campaign = Hotels in London
  • Landing Page = www.airbnb.com/hotels/london-united-kingdom
  • Landing Page Folder = hotels
  • Last Seen = Oct 29, 2025

If a user visits your site multiple times within a year through different marketing campaigns, SourceLoop.ai logs each visit’s UTM and page data.

When they submit the form, it retrieves and displays the user’s full attribution data on the Lead Manager page inside SourceLoop.

sourceloop lead journey and attribution software

More Resources:

4. Add Hidden Fields to Your Forms (Optional)

hidden fields in contact form 7

If you also want to capture UTM data directly within your form submissions, you can do that by adding hidden fields to your form.

These fields won’t be visible to visitors but will store tracking data that tools like SourceLoop.ai pass along with each form submission.

To add a hidden field in Contact Form 7, simply add this line at the end of your form:

[hidden channel default:[channel]]

Similarly, you can add more hidden fields based on how much information you want to track.

SourceLoop.ai captures the following fields:

  • channel
  • attribution_source
  • attribution_medium
  • attribution_campaign
  • attribution_term
  • landingpage
  • landingpagefolder
  • lastseen

If you want to track first-visit data (in case users have visited your site multiple times in the last 365 days), you can also track:

  • first_channel
  • first_source
  • first_medium
  • first_campaign
  • first_term
  • first_landingpage
  • first_landingpagefolder
  • firstseen

5. UTM Parameters Are Passed for Each Contact Form 7 Submission

contact form submission with utm parameters

Now, whenever a user fills out your Contact Form 7, SourceLoop.ai finds the hidden fields and passes the UTM information before they click the submit button.

With this data, you can:

  • View lead source details directly in your email
  • Set up automation with Zapier or Make.com
  • Sync lead data with CRM tools like HubSpot, Salesforce, etc.
  • Create reports & chart to understand the ROI of each marketing effort.

More Resources:

Share this post

Post on X Share on LinkedIn

Keep reading

All posts

Track every conversion to its true source

Capture and send full attribution data from every signup, lead, booking, and sale to your CRM and ad platforms, so you know exactly what's driving revenue.

Without SourceLoop

Untagged

Kayden Floyd

kayden@abc.com

  • SourceUnknown
  • MediumUnknown
  • CampaignUnknown
  • Landing pageUnknown
Journey
No touchpoints captured

With SourceLoop

Auto-tagged

Kayden Floyd

kayden@abc.com · Acme Co.

  • Channel Paid Social
  • CampaignFree_demo
  • Landing page/pricing
Journey
Synced to HubSpot Google Ads Meta