Track affiliate leads in Formstack with UTM hidden fields
Website analytics can show affiliate-driven visits, but not which affiliate produced a lead or customer. This guide explains how UTM-tagged affiliate links, hidden form fields and stored attribution data combine so every Formstack submission carries its affiliate source with it.
Why visit data alone is not enough
Analytics tools count visits driven by affiliates, yet they do not connect those visits to the leads and customers created afterwards. The fix is to carry affiliate identifiers forward from the landing visit into the form submission itself, so the lead record — not just the session — shows its origin.
Step 1: Tag affiliate links consistently
Give every affiliate a distinct link. A consistent pattern makes reporting possible: use the medium to mark the affiliate channel, the source to mark the affiliate type (for example bloggers, podcasters or YouTubers), and the campaign to name the individual affiliate. Platforms such as Trackdesk and Rewardful can generate tagged links, and a UTM builder can do the same manually. Keep the naming consistent across all affiliates, otherwise reports will fragment.
Step 2: Add hidden fields to Formstack forms
Add hidden fields to each Formstack form for Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group. Hidden fields are not filled in by the visitor; they are populated programmatically and submitted alongside visible answers such as name, email and phone. Use the same field names on every form so data merges cleanly in Formstack, your CRM and spreadsheets.
Step 3: Let stored UTMs fill the hidden fields
When a visitor arrives through a tagged affiliate link, the attribution tool stores the UTM values. If the visitor browses, leaves and returns, or submits later, those stored values are written into the hidden fields at the moment of submission. This persistence is the key difference from simply reading UTMs on the landing page: the affiliate credit survives the journey to conversion.
Step 4: Capture and use the data in Formstack
On submission, Formstack receives the visitor's visible answers together with the hidden affiliate and landing-page values. You can inspect them in the Submissions Dashboard, add them to email notifications so each new lead shows its source immediately, pass them to a CRM for conversion and revenue reporting, or send them to Google Sheets and connect a dashboard tool such as Looker Studio.
What else the same setup captures
Beyond affiliates, the same fields capture Paid Search, Paid Social, Organic Search, Organic Social and other channels, plus the exact landing page URL and its group (for example /blog). That means one setup answers both affiliate questions and broader channel questions, and reveals which content attracts leads. Checklist before launch: every affiliate link tagged, hidden fields present on every form, field names identical across forms, a test submission from a tagged link verified in Formstack, and the CRM or spreadsheet mapping checked end to end.
| Report | Group by | Question it answers |
|---|---|---|
| Leads by Channel | Channel | How affiliate leads compare with Paid Search, SEO and other channels |
| Customers by Affiliate Type | Affiliate type (bloggers, podcasters, YouTubers, etc.) | Which affiliate types produce the most customers |
| Revenue by Affiliate | Individual affiliate | Which affiliates generate the most new customers and revenue, and who needs support |
Example reports described in the source; actual metrics depend on CRM data joined after capture.
| Hidden field | Purpose |
|---|---|
| Channel | Broad source channel, e.g. affiliates |
| Channel Drilldown 1 | Affiliate type |
| Channel Drilldown 2 | Sub-type or additional drilldown |
| Channel Drilldown 3 | Further drilldown |
| Landing Page | Exact landing page URL |
| Landing Page Group | Landing page group, e.g. /blog |
Field list as specified in the source; confirm exact field names in your Formstack account before implementation.
Frequently asked questions
How do I know which affiliate generated a Formstack lead?
Tag each affiliate link with UTM parameters that encode channel, affiliate type and individual affiliate, add matching hidden fields to the form, and let an attribution tool write the stored UTM values into those fields at submission. The values then travel with the lead into Formstack and onward to a CRM or spreadsheet.
What if a visitor browses first and submits later?
Yes. The attribution data is stored on the first visit, so browsing before submitting — or leaving and returning later — does not lose the affiliate information recorded at arrival.
Where can the captured affiliate data go after Formstack?
You can view it in the Formstack Submissions Dashboard, include it in email notifications, send it to a CRM such as Salesforce, HubSpot, Pipedrive or Zoho CRM, or export it to Google Sheets for charting and dashboard tools.
Does this only track affiliates?
The same setup also records other channels, including Paid Search, Paid Social, Organic Search and Organic Social, plus the landing page and landing page group. That lets you compare affiliate performance against non-affiliate channels and see which content attracts leads.