Track Lead Source in Contact Form 7: Hidden Fields and Reports
Knowing which campaigns, searches and pages produce form submissions helps you decide where to invest more effort. This guide explains how to capture that context in Contact Form 7, what the main fields mean, and which reports make the data useful.
Why lead source matters
A form submission on its own usually tells you who contacted you and what they asked, but not how they found you. Without that context, it is hard to compare paid search, paid social, organic search and other sources, or to know which campaigns and pages deserve more budget and content effort.
The approach below adds source context at submission time. A tracking snippet records where a visitor came from, hidden form fields receive that information, and the completed submission carries it into WordPress, email notifications, a CRM or a spreadsheet.
Set up hidden fields in three steps
Use this sequence as a setup checklist:
- Install the tracking snippet on the website so visits can be attributed before a form is submitted.
- Add hidden fields to each Contact Form 7 form that should capture source data.
- Submit a test form and confirm the hidden values are present in the captured submission.
- Decide where the data should go next: WordPress entries, notification email, CRM or spreadsheet.
- Run the reports below once enough submissions have been collected.
The hidden fields described in the guide are Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3 and Channel Drilldown 4. Channel gives the broad category. Each drilldown adds a further level of detail, so a record can move from a general source to a specific network, campaign, domain or keyword.
How the data flows into a submission
After the snippet is installed, it tracks where visitors came from, including paid and organic sources. When a visitor submits a form, the tracking tool writes the relevant source information into the hidden fields added earlier. Contact Form 7 then captures those values with the rest of the submission.
That separation matters for troubleshooting. If a submission has no source values, check first whether the snippet is present on the page, then whether the hidden fields are included in that particular form, and finally whether the test submission was made after both changes were in place.
Where to use the captured data
Once captured, the same values can be used in several places:
- WordPress dashboard: a form-entries plugin can list submissions together with the source fields passed through the form.
- Notification emails: source fields can be included in the emails Contact Form 7 sends.
- CRM: third-party plugins can send the values to systems such as Salesforce, Zoho CRM, Pipedrive or HubSpot.
- Spreadsheet: plugins can send the values to a spreadsheet for detailed reporting.
Choose one primary destination first, verify that the fields arrive correctly, and only then add additional destinations. That keeps field mappings easier to check.
What channel and landing page data looks like
Channel data covers both paid and organic arrivals and can also show what content brought the visitor to the site.
For a paid search example, a visitor who clicks a Google Ads link and submits a form might be recorded as Channel: Paid Search, Channel Drilldown 1: Google, Channel Drilldown 2: the campaign name, and Channel Drilldown 3: the keyword used. The exact drilldown values depend on the UTM parameters placed behind the ads.
For an organic search example, the same form might instead record Channel: Organic Search, Channel Drilldown 1: Google, Channel Drilldown 2: the Google domain the visitor came from, and Channel Drilldown 3: the keyword used to find the site, if available.
Landing page data adds another layer. It can capture the initial landing page, such as a specific blog article, and the landing page group, such as the blog section as a whole. That makes it possible to compare lead volume by section and then identify which individual pages generate the most submissions.
Three reports to run first
Three reports are a practical starting point:
- Leads by channel: compare totals across Paid Search, Paid Social, Organic Search and other broad sources to see which categories produce the most leads.
- Leads by Google Ads campaign: compare campaigns to see which ones actually generate form submissions, not just clicks.
- Leads by social network: compare social platforms to see which networks are producing leads and where content effort should focus.
Start with leads by channel for the overall picture, then drill into campaign or network detail when you need to make a budget or content decision.
Wrap up
Contact Form 7 becomes considerably more useful once every submission carries its source context. Install the tracking snippet, add the hidden Channel and drilldown fields to the form, submit a test entry to confirm the values arrive as expected, and then route the data to whichever destination you will actually report from. Before publishing any signup link or trial offer, verify the current tool name and trial terms directly with the provider.
Frequently asked questions
What should I check after adding hidden fields to Contact Form 7?
Add the tracking code to the site, add hidden Channel and Channel Drilldown fields to the form, then check that a test submission contains the expected channel, drilldown and landing page values before routing the data onward.
What is the difference between Channel and Channel Drilldown fields?
Channel shows the broad source, such as Paid Search or Organic Search. The drilldown fields add detail such as the network, campaign, domain or keyword, depending on how the visit arrived and what parameters were present.
Where can captured lead source data be used after submission?
Captured submissions can be reviewed in WordPress, added to notification emails, or sent through plugins to a CRM or spreadsheet for reporting.