How to Track UTM Parameters in Contact Form 7
Follow 5 easy steps for setting up Contact Form 7 UTM tracking…
In this article

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.
1. Add UTM Parameters to Your Links

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

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.
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.

More Resources:
- How to Track UTM Parameters in WPForms
- How to Track UTM Parameters in Forminator Forms
- How to Track UTM Parameters in Formidable Forms
4. Add Hidden Fields to Your Forms (Optional)

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:
channelattribution_sourcemediumattribution_campaignattribution_attribution_termlandingpagelandingpagefolderlastseen
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_channelfirst_sourcefirst_mediumfirst_campaignfirst_termfirst_landingpagefirst_landingpagefolder- firstseen
5. UTM Parameters Are Passed for Each Contact Form 7 Submission

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: