Connecting Salesforce to Awin
Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. Awin is a traditional last-click affiliate network, and last-click is the whole problem: whoever touched the customer most recently takes the commission, which is a structural invitation for voucher-code sites to intercept sales you had already won. The join between them succeeds or fails on one thing: whether the Awin click reference, awc reaches the Salesforce Lead or Opportunity before the conversion happens, because Awin can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Awin on a Salesforce lead funnel: commission the lead or the deal
Awin expects a checkout, so either commission a qualified Lead status or the Closed Won deal, using the 18-character Opportunity ID as order reference. Fill a hidden Web-to-Lead field with awc by script before submit. Dedupe on email, check for existing Contacts with open opportunities and use the dedup flag, and set validation longer than lead disqualification takes.
Awin assumes a checkout with an order reference inside the cookie window; a Salesforce funnel produces a Web-to-Lead submission and a deal weeks later. There are two workable shapes. Commission a qualified lead, posted when the Lead reaches a status your sales team agrees means real, or commission the deal at Closed Won using the 18-character Opportunity ID as the order reference. If you pay on leads, the validation period has to be longer than the time sales takes to disqualify junk, or you approve commissions on spam.
Capture the awc value into a hidden field on the Web-to-Lead form. Web-to-Lead is a plain HTML post, so a script has to fill that field from the URL or cookie before submit. Web-to-Lead also creates a new Lead on every submission unless duplicate handling is configured, so dedupe on email before posting to Awin, or one prospect who submits twice earns a publisher two commissions.
The interception risk here is not voucher codes so much as prospects already in your pipeline. Someone with an open opportunity who clicks a comparison-site link and fills a form again should not be commissioned. Check for an existing Contact with an open opportunity before posting, and use Awin's dedup flag when one exists. A deal reopened inside the validation period gets declined; after that, reconcile manually.
Salesforce → Awin · what breaks
Why this join usually fails — Salesforce → Awin
- 01
The Awin click reference, awc never reaches Salesforce
Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.
- 02
The identifier is lost at lead conversion
This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.
- 03
Voucher-code publishers intercepting sales at the checkout
A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.
- 04
Nothing reconciles afterwards
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
Salesforce → Awin · the fix
What working looks like — Salesforce → Awin
The Awin click reference, awc on every opportunity
Conversions arriving in Awin
The sale appears as pending, publishers see it in their reporting, and it validates after your approval period.
Reconciled against the source
Salesforce → Awin · architecture
How Salesforce and Awin actually connect
- 1
Salesforce holds the truth
The opportunity carries the amount, stage and close date. Because Leads convert into Contacts, Accounts and Opportunities, the identifier must be mapped through the conversion or it is dropped exactly at the moment the record becomes valuable.
- 2
Awin needs a click to match
Awin needs the click reference, a unique order reference, the order value and the commission group. Missing the click reference means the sale is untracked and the publisher will query it.
- 3
The identifier is the bridge
The Awin click reference, awc, captured at the visit and carried into the Salesforce Lead or Opportunity.
- 4
The event source decides reliability
Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.
- 5
Deduplication at the destination
Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.
Salesforce → Awin · normal or broken
Working vs. broken, side by side — Salesforce → Awin
Normal, not a fault
The Awin click reference, awc present on the opportunity
Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change
Deduplicated correctly
Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.
Reconciles with the source
Actually broken
The Awin click reference, awc missing on most records
Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.
Sent from the browser
This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.
Counted twice, or not at all
A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.
Nobody has reconciled it
Salesforce → Awin · diagnose
Diagnostic order — Salesforce → Awin
- 01
Count opportunitys carrying the Awin click reference, awc
- 02
Follow one real conversion end to end
- 03
Convert a test Lead and inspect the resulting Opportunity
If the identifier is not on the Opportunity, the field mapping is missing. This takes five minutes and rules out the most likely cause outright.
- 04
Segment publishers by type and check where the click happened in the journey
Voucher and cashback clicks that occur within seconds of an order are interception, not acquisition. Use the deduplication flag rather than paying for both.
- 05
Read the match rate, not the success message
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
Salesforce → Awin · prove
How it gets proven — Salesforce → Awin
Source of truth
A Salesforce report of Closed Won opportunities for the same window, by close date.
- The Awin click reference, awc confirmed present on a live opportunity.
- Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
- A test lead converted end to end with the identifier confirmed present on the resulting opportunity.
Salesforce → Awin · free audit
What we check in the free audit
- Count opportunitys carrying the Awin click reference, awc
- Follow one real conversion end to end
- Convert a test Lead and inspect the resulting Opportunity
- Segment publishers by type and check where the click happened in the journey
- Read the match rate, not the success message
Checked against
A Salesforce report of Closed Won opportunities for the same window, by close date.
Free30 minutesNo obligation
Salesforce → Awin · when not to buy
When you don't need this — Salesforce → Awin
- Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the Awin click reference, awc.
- If your Salesforce instance is heavily customized and administered by another team, scope their availability before commissioning this — the build is usually blocked on admin access rather than on the tracking work.
- If you run no affiliate programme this is irrelevant. If you do, the commission structure by publisher type will change your economics more than the tracking accuracy will.
Salesforce → Awin · what we deliver
What gets built — Salesforce → Awin
Identifier capture into Salesforce
Custom field on Lead, matching custom field on Contact and Opportunity, and the field mapping configured so conversion carries it across. Verify by converting a test lead and reading the resulting opportunity.
Event source: a Salesforce flow, Apex trigger or scheduled export on StageName change
Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.
Dispatch to Awin
Server-to-server conversion posting from your order system, or the tracking pixel where server posting is not available.
Reversals where they exist
An opportunity moved back out of Closed Won can be retracted, and enterprise pipelines do this often enough to be worth wiring.
Written guarantee
95%+ tracking accuracy
Measured against A Salesforce report of Closed Won opportunities for the same window, by close date.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Salesforce → Awin questions, answered
Store the awc click reference in a hidden field on the Web-to-Lead form and carry it through lead conversion. Post to Awin when the Lead qualifies or the opportunity closes, depending on what you commission.
Closed deals protect you from paying for junk leads but delay publisher payment by your sales cycle. If you pay on leads, set the validation period longer than your qualification time.
Almost always because the Awin click reference, awc never reached the Salesforce Lead or Opportunity. Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable. Measure coverage before debugging the dispatch.
Awin sets the awc parameter on the landing URL and stores it in a cookie for the attribution window. Because attribution is last-click, that cookie being overwritten late in the journey transfers the commission — which is exactly what a voucher-code extension does at the checkout page.
A Salesforce flow, Apex trigger or scheduled export on StageName change. Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
More on Salesforce → Awin
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
- Salesforce → GA4Connecting Salesforce to GA4
RELATED GUIDES
Where Salesforce → Awin fits in the rest of your tracking
- Less Annoying CRM → AwinConnecting Less Annoying CRM to Awin
- Freshsales → AwinConnecting Freshsales to Awin
- Insightly → AwinConnecting Insightly to Awin
- Salesforce → PartnerStackConnecting Salesforce to PartnerStack
- Salesforce → ImpactConnecting Salesforce to Impact.com
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Capsule → AwinConnecting Capsule CRM to Awin
- Nutshell → AwinConnecting Nutshell to Awin
Free · 30 min
Get Salesforce and Awin joined properly
Free30 minutesNo obligation
