Capture Marketing Channel Attribution in Contact Form 7
Contact Form 7 collects the message, but it does not know which ad, campaign or landing page brought the visitor there.
This guide explains how to add hidden fields to a Contact Form 7 form so marketing attribution data travels with each submission, and how that data reaches a CRM or email platform afterward.
How the attribution flow works
The flow has three stages. First, hidden fields are added to the Contact Form 7 form so there is somewhere for attribution values to land. Second, an attribution layer monitors which marketing channel the visitor arrived from and writes the matching values into those hidden fields. Third, when the visitor submits the form, the values are passed into the connected CRM or other tool, such as analytics or email marketing software. The form itself does not need to change for the visitor; the fields stay hidden and the submission carries the context.
Step 1: Add hidden fields to the Contact Form 7 form
In the Contact Form 7 form editor, add hidden fields that correspond to the attribution values you want to receive. These fields are not shown to the visitor; they exist so the attribution layer has named slots to fill. Plan the field list before you build the CRM mapping, because the names you choose here are the names that will appear in the submission and in the downstream tool. A practical starting set covers channel, campaign name, ad name, landing page URL and landing page category. Add more only when a downstream report actually needs them.
Step 2: Let the attribution layer fill the fields
The hidden fields are empty slots until something populates them. The attribution layer watches the visitor's arrival channel and, before the form is sent, places the matching values into those slots. Because the write happens ahead of submission, the visitor never types into these fields and never sees them. If a slot stays empty, the usual cause is a name mismatch between the hidden field and what the layer expects, or the layer not running on that page.
Step 3: Pass the data to your CRM or other tools
Submitting the form is the handoff point. The values already sitting in the hidden fields travel with the submission into whatever destination is connected — a CRM record, an analytics property, or an email marketing list. The destination stores them next to the lead, which is what lets you group and compare leads by source later instead of relying on memory or manual tagging.
What data is captured
Two groups of data are captured. Channel data answers where the lead came from — Paid Search, Paid Social, Organic Search and similar categories — and each channel carries its own extra detail. A Paid Search lead, for example, can also carry the campaign, ad group and keyword. Landing page data answers where the lead first landed: the first page they saw on your site, plus that page's category. The source's own example is a URL such as olmo.com/blog/how-to-licence-music, with the page category recorded as Blog. Channel tells you which effort earned the visit; landing page tells you which content received it.
Where the data can go
Attribution values only become useful once they reach the tool where you actually report. Contact Form 7 submissions that carry channel and landing-page data can be routed into a CRM or an email marketing platform, keeping the lead record and the campaign record connected. Which destinations are supported depends on the attribution tool you choose, so review its current integration list before you build field mappings. In a CRM, these values support reporting on which channels and content generate the most leads, customers and revenue. In an email platform, the same values help identify which channels and content produce the most subscribers and support more targeted campaigns.
A worked example
Suppose a visitor clicks a Paid Search ad, lands on olmo.com/blog/how-to-licence-music, and then submits a Contact Form 7 form. The hidden fields would carry the channel (Paid Search), the campaign, ad group and keyword from the ad URL, the landing page URL, and the page category (Blog). If the form is connected to a CRM, those values arrive on the new lead record. A report can then group leads by channel and by landing page category without anyone manually tagging the submission.
Checklist before you connect a CRM
Use this checklist to avoid the most common setup gaps:
- Confirm the hidden field names in Contact Form 7 match the field names your attribution layer expects.
- Decide which downstream tool receives each value, and map fields in that tool before testing.
- Verify that the attribution layer is active on the pages where the form appears.
- Submit a test entry from a known campaign URL and confirm the values appear in the submission and in the destination tool.
- Check that the landing page URL and page category are both being captured, not just the channel.
- Keep the hidden field list short enough that the CRM mapping stays readable.
Empty field vs. missing mapping
Two different failures look similar in a CRM. An empty hidden field usually means the attribution layer did not write a value before submission — for example, the field name did not match, or the layer was not active on that page. A field that arrives with a value in the form submission but is blank in the CRM usually means the downstream field mapping is missing or pointing at the wrong property. Check the form submission record first, then check the CRM mapping. That order separates a capture problem from a delivery problem.
Getting started
The attribution approach described here can be evaluated on a free starting basis, with paid tiers available once you outgrow it. Exact pricing and any trial terms are set by the provider, so confirm them on the current pricing page before you commit. As a planning exercise, note the monthly budget you would accept, the trial period you would need to validate the setup, and the point at which the tool would have to prove its value against those numbers.
Frequently asked questions
Do visitors see the hidden fields in Contact Form 7?
No. The fields are hidden in the form, so visitors fill in the visible fields only. The attribution values are written into the hidden fields before the form is submitted.
What is the difference between channel data and landing page data?
Channel data describes where the lead came from, such as Paid Search or Organic Search, and can include campaign, ad group and keyword detail. Landing page data records the first page the lead saw on your site and the category of that page, such as Blog.
Can Contact Form 7 attribution data go to more than one tool?
The attribution data can be passed into a CRM and into other tools such as analytics or email marketing software. Which destinations are supported depends on the attribution tool you use, so check its current integration list before you build the mapping.
Why is an attribution field blank in my CRM?
First check the form submission record. If the value is present there but missing in the CRM, the downstream field mapping is the likely cause. If the value is missing from the submission itself, the hidden field name or the attribution layer's activity on that page is the likely cause.