Skip to content

Track Affiliate Leads in Contact Form 7

Visitor counts alone do not show whether an affiliate program produces enquiries, customers, or revenue. Capturing attribution data on every Contact Form 7 submission closes that gap: each lead record can show which affiliate referred the person, what type of affiliate they were, and which page they landed on.

Why form-level attribution matters

Affiliate links can drive traffic that analytics records, yet the enquiry that follows may arrive through a form with no record of who sent the visitor. Adding attribution fields to the form solves that disconnect. When a submission is stored, the affiliate details travel with the name, email address, and message the lead entered, so follow-up and reporting start from a complete record rather than a guess.

Four-step setup

Work through these four steps in order. Skipping the first step leaves nothing to capture, and skipping the second leaves nowhere for the data to land.

  1. Tag every affiliate link with UTM parameters.
  2. Add hidden fields to each Contact Form 7 form.
  3. Let the attribution tool write the stored UTM values into those fields when the form is completed.
  4. Read the values from the submission record, CRM, spreadsheet, or notification.

Checklist before launch: every affiliate has a unique link, naming is consistent across affiliates, hidden fields are present on every form you want to measure, and a test submission shows the expected values.

Step 1: Tag affiliate links consistently

Give each affiliate a link that encodes three things: that the traffic is affiliate traffic, what kind of affiliate it is, and which affiliate it is. A consistent pattern makes later grouping reliable.

Example pattern: utm_medium=affiliates, utm_source=bloggers, utm_campaign=john-smith. Here the medium identifies the programme, the source identifies the affiliate type, and the campaign identifies the individual. Swap in your own type labels, such as podcasters, YouTubers, or influencers, and your own affiliate names, keeping the same positions every time. Affiliate platforms can add these parameters automatically, and a UTM builder with affiliate templates can help create the links.

Step 2: Add hidden fields to the form

Add these hidden fields to your forms:

  • Channel
  • Channel Drilldown 1
  • Channel Drilldown 2
  • Channel Drilldown 3
  • Landing Page
  • Landing Page Group

The channel fields break down where the lead came from, while the landing page fields record the entry URL and its group, such as a blog section. Contact Form 7 supports hidden fields directly, so no visible change is needed for visitors.

Steps 3 and 4: Store, write, and capture

When a visitor arrives through a tagged affiliate link, the attribution tool stores the UTM parameters in the browser. That storage matters because people rarely submit on their first page view: they may browse several pages, leave, and return later, and the original affiliate parameters are still available at submission time. On form completion, the tool extracts the affiliate details from those stored parameters and writes them into the hidden fields added in Step 2. Contact Form 7 then captures those field values together with the lead's own details.

Where to use the captured data

Once submissions carry attribution data, choose the destination that matches how you work:

  • WordPress dashboard: a submission-storage plugin such as Flamingo shows the affiliate data beside each submission in the admin area.
  • CRM: send the fields to a CRM such as Salesforce, HubSpot, or Pipedrive, then report on leads, conversions to paying customers, and revenue by affiliate.
  • Spreadsheet: export through a Contact Form 7 add-on or a tool such as Zapier, then chart the results or connect a reporting tool such as Looker Studio or Microsoft Power BI.
  • Email notifications: include the fields in lead emails if you work without a CRM, so the origin of each enquiry is visible at a glance.

Beyond affiliates: full channel and landing page view

A good attribution setup records more than affiliate traffic. The same fields can also capture paid search, paid social, organic search, and organic social, giving a complete picture of lead origin. Landing page capture adds a content dimension: the entry URL and its group show which parts of the site generate leads and customers. Together, these fields let you compare the affiliate programme against every other channel on the same basis.

Three reports to run

Three reports cover most affiliate decisions once the captured fields reach a CRM or reporting tool. Each one answers a different question, so run them together rather than in isolation. A worked example makes the shape clear: suppose a month's submissions split across affiliates, paid search, paid social, organic search, and organic social, and each lead record carries its channel and affiliate details. The reports below then read from that same dataset; substitute your own figures when you run them on real submissions. The figures here are illustrative only, not measured results from any programme, and the reports are described as a methodology rather than as outputs produced by this page. The three reports are: Leads by channel: count leads from affiliates alongside paid search, paid social, organic search, and organic social to see how the programme compares with other strategies. Customers by affiliate type: break new customers down by bloggers, YouTubers, podcasters, and influencers to find which type performs best and recruit more of that type. Revenue by affiliate: list customers and revenue per individual affiliate to see who contributes most and where to focus support and budget. A useful way to read the results is to ask which channel produces the most customers rather than the most visits, and which affiliate type converts best relative to the volume it sends. If one type brings many leads but few customers, the recruitment effort may be better spent elsewhere. If a single affiliate accounts for a large share of revenue, that relationship deserves attention and support. To adapt the method to your own data, export the captured fields from your form storage or CRM, group by channel and by affiliate, and compare lead counts with customer counts and revenue over the same period. Keep the period consistent across reports so the comparisons remain meaningful.

Wrap up

Tag links, add the six hidden fields, verify with a test submission, and route the data to the destination you actually use. With that in place, every Contact Form 7 lead carries its affiliate origin, and programme decisions can be based on customers and revenue rather than visits alone. If you are evaluating an attribution tool for this job, check that it stores first-visit UTM parameters in the browser, writes them into the hidden fields at submission, and can pass the values on to your CRM or reporting setup. Confirm the current plan terms, trial length, and setup requirements directly with the provider before committing, since these details can change and should not be assumed from a guide. A short test submission is the simplest way to confirm the whole chain works before you rely on the data.

Frequently asked questions

What is the basic workflow for capturing affiliate data in Contact Form 7?

Add UTM parameters to each affiliate link, add the six hidden fields to the form, let the attribution tool store the first-visit UTMs in the browser and write them into those fields at submission, then read the captured values in WordPress, a CRM, a spreadsheet, or email notifications.

Which hidden fields are needed?

Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page, and Landing Page Group. Together they carry the channel breakdown and the entry page information through to the submission record.

What if a visitor browses before submitting, or returns later?

Because the UTMs are stored in the visitor's browser, the original affiliate parameters can still be passed through when the person browses first and submits later, or leaves and returns.

What reports become possible once the data is captured?

Use the captured fields to compare leads by channel, customers by affiliate type, and revenue by individual affiliate. That separates affiliate performance from paid search, paid social, organic search, and organic social, and shows which affiliate types and people produce customers rather than only visits.