Skip to content

Track Affiliate Leads and Customers in HubSpot

Affiliate programs often generate visits that are easy to count but hard to connect to pipeline. The fix is to preserve the affiliate identifiers from the landing URL, carry them through the visitor journey, and store them on the lead record when a form is completed. Once that happens, HubSpot reporting can compare affiliates with each other and with other channels.

Tag every affiliate link the same way

Start with a consistent tagging convention before any links go out. Set utm_medium to affiliates so every affiliate visit is grouped as one channel. Set utm_source to the affiliate category, for example bloggers, podcasters, YouTubers or social media influencers. Set utm_campaign to the individual affiliate name, such as John Smith. A link built on that pattern might read: yoursite.com/page?utm_medium=affiliates&utm_source=bloggers&utm_campaign=john-smith. Affiliate platforms such as Trackdesk or Rewardful can add these parameters automatically; otherwise a UTM builder with affiliate templates makes manual creation more consistent. The key decision is consistency: every affiliate link must use the same three levels, or later drilldown reporting will fragment.

Add hidden fields to lead forms

Next, prepare the forms that turn visits into leads, such as Contact Us or Request a Quote. Add hidden fields for Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group. HubSpot Forms, Gravity Forms and Typeform all support hidden fields, though the exact steps differ by builder. These fields are the bridge: they give the attribution tool somewhere to write the values it captured, and they give HubSpot structured fields to report on instead of free-text notes.

Carry the values from landing to submission

When a visitor arrives from a tagged link, the attribution tool reads the UTM parameters from the URL and stores them in the browser. That storage matters because the visitor may browse several pages, leave, and return later; the parameters are still available at form submission. On submission, the tool writes the stored values into the hidden fields. The form tool then sends those values with the visitor's name and email address. HubSpot forms place them on the contact record directly, while third-party builders need their native HubSpot integration or a tool such as Zapier to forward them.

Know what lands on the contact record

With the tagging example above, HubSpot receives Channel = Affiliates, Channel Drilldown 1 = Bloggers and Channel Drilldown 2 = John Smith. The same setup also captures non-affiliate sources. An organic Google search, for instance, can populate Channel = Organic Search, Channel Drilldown 1 = Google, Channel Drilldown 2 = the Google domain used, and Channel Drilldown 3 = the keyword when available. That broader capture is what makes channel comparison possible: affiliates are no longer reported in isolation from paid search, paid social, organic search and organic social.

Run three reports to judge performance

Three reports cover most affiliate decisions. Leads by Channel shows affiliate volume alongside paid search, SEO and other sources, which helps decide where to invest next. Customers by Affiliate Type breaks new customers down by bloggers, YouTubers, podcasters and influencers, revealing which categories actually close. Revenue by Affiliate ranks individual affiliates by the revenue they brought in, making top performers visible and informing who to recruit more of. Together they move the conversation from clicks to leads, customers and revenue.

Use the data and launch checklist

Once affiliate data is stored in HubSpot, useful questions become answerable: how many customers come from bloggers versus podcasters, how much revenue each affiliate generates, what the lead-to-customer conversion rate is, and how affiliate deal size compares with Google or Facebook Ads. Use this checklist before launch: confirm the UTM convention, confirm all affiliate links follow it, add the six hidden fields to every lead form, test a tagged visit through to a contact record, and build the three reports above. For commercial terms such as trial length, pricing and setup time, check the current plan details on the signup page before committing.

Frequently asked questions

Why is affiliate attribution in HubSpot different from Google Analytics?

Website analytics can show affiliate-driven visits, but it does not by itself connect those visits to a named lead or customer in HubSpot. Capturing the UTM values on the contact record closes that gap, so reporting can start from the lead rather than the session.

What UTM structure works best for affiliates?

Use utm_medium to mark the affiliate channel, utm_source to record the affiliate type such as bloggers, podcasters or YouTubers, and utm_campaign to identify the individual affiliate. That three-level structure maps cleanly to Channel and the two drilldown fields.

Which hidden fields should the form contain?

Add Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page and Landing Page Group as hidden fields. The attribution tool then populates them from the stored UTM values when the form is submitted.

Does the data reach HubSpot automatically?

With HubSpot forms, submitted values appear on the contact record automatically. With a third-party form builder, use its native HubSpot integration or an integration tool such as Zapier to pass the same fields through.