Skip to content

Track affiliate leads in Gravity Forms

Affiliate links can bring visitors, but without attribution attached to each form submission you cannot tell which partner produced a lead, a customer or revenue. This guide shows a practical setup: tag affiliate links, store the tags in the browser, write them into hidden Gravity Forms fields, and report on performance by channel, affiliate type and individual affiliate.

Why affiliate attribution matters

Affiliate programs are useful for reaching potential customers, yet lead volume alone does not show which partners work. If affiliate identifiers travel with the form submission, each record can be traced back to the referring partner. The workflow below separates three jobs: tagging the link, carrying the tags through the visit, and storing them on the submission.

Four-step setup

  1. Tag every affiliate link with UTM parameters. Use a consistent convention so reporting stays clean: medium for the program, source for the affiliate category, and campaign for the individual partner. For example, medium=affiliates, source=bloggers, campaign=john-smith. Platforms such as Trackdesk or Rewardful may add UTMs automatically, and a UTM builder with affiliate templates can help create links consistently.
  2. Add hidden fields to each Gravity Form for Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group.
  3. Let the attribution tool store the UTMs in the visitor's browser on arrival. That storage means the values can persist during browsing and after a later return visit.
  4. On submission, the tool writes the extracted affiliate details into the hidden fields, and Gravity Forms saves them alongside name, email and other answers.

Pre-launch checklist

Checklist before launch: confirm every affiliate link uses the same UTM convention; confirm all six hidden fields exist on every relevant form; submit a test form from an affiliate link and verify the hidden values appear in the entry; test a return visit to confirm browser storage; and confirm the destination system maps each hidden field correctly. A common failure is tagging links but omitting a hidden field, so the data never reaches the submission record.

Using the captured data

Send captured values to a CRM to report leads, customers and revenue by partner. Or export to a spreadsheet through a Gravity Forms add-on or Zapier, then chart the data or connect it to Looker Studio or Power BI. If you work from email, add the affiliate fields to lead notifications so the origin is visible without opening a CRM. Beyond affiliates, the same setup can capture paid search, paid social, organic social and organic search, plus landing page URL and group, giving a complete channel picture.

Three reports to run first

Leads by Channel compares affiliate volume with paid search, paid social and SEO to guide resource allocation. Customers by Affiliate Type breaks results down by bloggers, YouTubers, podcasters and influencers, so recruitment can focus on the strongest category. Revenue by Affiliate segments customers and revenue by the individual partner, helping you invest more in high performers and less in low performers. Together these views answer how many customers come from bloggers versus podcasters, revenue per affiliate, lead-to-customer conversion, and average deal size versus paid channels.

Gravity Forms hidden fields for affiliate attribution
Hidden fieldWhat it recordsReporting use
ChannelBroad source channelLeads by channel
Channel Drilldown 1First-level detail, e.g. affiliate categoryCustomers by affiliate type
Channel Drilldown 2Second-level detailSegmentation within a channel
Channel Drilldown 3Third-level detail, e.g. individual affiliateRevenue by affiliate
Landing PageFull landing page URLContent performance
Landing Page GroupPage group, e.g. /blogContent performance by section

Field names are as listed in the source workflow; confirm exact labels in your form before publishing setup instructions.

Frequently asked questions

How do I capture affiliate data in Gravity Forms?

Add UTM parameters to each affiliate link, add hidden fields for channel, drilldowns, landing page and landing page group to the form, let the attribution tool store the UTMs in the browser and write them into those fields at submission, then send the captured values to your CRM, spreadsheet or email notification.

Will affiliate data survive browsing and a return visit?

Yes. Because the UTM values are stored in the browser, they can persist while the visitor browses and if they leave and return later, so the first-visit affiliate details are still available when the form is completed.

What reports can I run after capturing affiliate data?

Useful reports include leads by channel, customers by affiliate type, and revenue by individual affiliate. Those views help compare affiliates with paid search, paid social, organic search and organic social, and show which affiliate types and people produce customers and revenue.

Where can the captured affiliate data go?

Send the values to a CRM such as Salesforce, HubSpot or Pipedrive, export them to a spreadsheet via a Gravity Forms add-on or Zapier for charts in tools like Looker Studio or Power BI, or include them in email notifications if you handle leads by email.