Skip to content

Track Affiliate Leads and Customers in Salesforce

If affiliate links bring visitors but your CRM cannot show which partners create leads, customers, or revenue, budget decisions become guesswork. A practical fix is to tag every affiliate link consistently, carry those tags through the visit, write them into form submissions, and then report on the resulting Salesforce records by channel, affiliate type, and individual affiliate.

Tag affiliate links with a consistent UTM pattern

Start with a naming convention before links are shared. A workable pattern uses one value to identify the affiliate channel, another to identify the partner category, and another to identify the individual partner. For example, medium can be affiliates, source can be bloggers, podcasters, or YouTubers, and campaign can carry the partner's name. Affiliate platforms such as Tapfiliate or Trackdesk may add these parameters automatically; otherwise, a UTM builder can generate the links for manual distribution. Consistency matters more than cleverness: every partner link should follow the same three-part pattern so later reporting does not require cleanup.

Add hidden fields to website forms

Add hidden fields to the forms visitors use to contact your team or request a quote. The fields needed for this workflow are Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page, and Landing Page Group. Most form builders, including Gravity Forms and Typeform, support hidden fields, although the exact steps vary by builder. Check that each field name in the form matches the field name expected by your Salesforce integration before going live.

Carry the tags from first visit to form submission

When a visitor arrives through a tagged affiliate link, the attribution tool captures the UTM parameters and stores them in the browser. That persistence is important: the visitor may browse several pages, leave, and return before submitting a form. On submission, the tool writes the stored values into the hidden fields. Your form tool then combines those hidden values with the visitor's entered details, such as name and email address, and sends the complete record to Salesforce through your existing route, whether that is a native form-to-Salesforce integration or a connector such as Zapier or Make.

What lands in Salesforce

The values stored in Salesforce depend on the values placed in the UTM parameters. With the pattern above, Channel becomes Affiliates, Channel Drilldown 1 becomes Bloggers, and Channel Drilldown 2 becomes John Smith. The same fields also capture non-affiliate traffic. A visitor from organic Google search, for example, could be recorded as Channel Organic Search, Drilldown 1 Google, Drilldown 2 google.com.au, and Drilldown 3 the keyword used when available. That broader coverage lets affiliate performance be compared with other channels in the same reporting view.

Three reports that make affiliate data useful

Run a Leads by Channel report to see how affiliate volume compares with paid search, organic search, and other sources. Then break customers down by affiliate type to learn whether bloggers, podcasters, YouTubers, or influencers produce the strongest results. Finally, report revenue by individual affiliate so you can identify top performers, recruit more partners like them, and reduce effort spent attracting low performers. Together, these views move the conversation from clicks and visits to customers, revenue, conversion rate, and average deal size.

Illustrative example: connecting affiliates to customers and revenue

William Russell, an insurer serving expats with health and life cover, had an affiliate network of expat bloggers and influencers but could not connect affiliate activity to customers in its CRM. After tagging affiliate links with UTM parameters, the attribution data travelled with each form submission into the CRM. The team could then report customers, revenue, lead-to-customer conversion, and average deal size by affiliate and compare them with channels such as Google Ads and Facebook Ads. Its marketing director described the affiliate program as its most profitable channel after this visibility was available.

Launch checklist

Before launch, confirm that every affiliate link uses the same UTM pattern, that all six hidden fields are present on each form, and that a test submission creates the expected Channel and Drilldown values in Salesforce. Test a return visit as well as a same-session submission, because browser storage is what preserves the tags between visits. After launch, review the three reports monthly: leads by channel for context, customers by affiliate type for recruitment decisions, and revenue by affiliate for investment decisions. {{OWNER_TRIAL_TERMS}}