Skip to main content
Refersion → SalesforceIntegration guide

Connecting Refersion to Salesforce

Refersion runs affiliate and influencer programmes on Shopify stores, which puts a commission-earning third party directly alongside your paid media on the same orders. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the Refersion conversion before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Refersion to Salesforce: Only for Partner Programs Run in a CRM

Do not sync individual Refersion consumer orders into Salesforce. If a partnerships team manages affiliates there, store the Refersion affiliate ID in a custom field on the Contact or Account, never matching on email, and write monthly rollups of orders, revenue, commission, refunds and paid overlap. For wholesale referral programs, send the affiliate ID at Lead creation.

Individual consumer orders do not belong in Salesforce, and syncing every Refersion conversion there would create a record per shopper and burn API capacity for nothing. This pair makes sense in one situation: a brand whose partnerships team recruits and manages affiliates and influencers as Contacts or Accounts in Salesforce, with contracts, tiers and payment terms tracked there.

In that case, the join key is the Refersion affiliate ID stored in a custom field on the Contact or Account. Do not match on email; affiliates change payout addresses, and the email Refersion pays is often not the one the partner manager emails. Write monthly rollups per affiliate, such as attributed orders, revenue, commission, refunds and the share that overlapped with paid traffic, to custom fields or a custom object.

Wholesale or sales-rep referral programs are the other fit, where a Refersion-tracked referral becomes an Opportunity. There the referral needs to reach Salesforce at Lead creation with the affiliate ID, not after the order, or the rep never sees it. If there is no partner team working in Salesforce, skip this integration and keep Refersion's reports as the record.

Refersion → Salesforce · what breaks

Why this join usually fails — Refersion → Salesforce

  1. 01

    The Lead or Contact identity never reaches Refersion

    Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.

  2. 02

    Influencer codes claiming paid traffic's orders

    A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.

  3. 03

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Refersion → Salesforce · the fix

What working looks like — Refersion → Salesforce

  • The Lead or Contact identity on every conversion

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

Refersion → Salesforce · architecture

How Refersion and Salesforce actually connect

  1. 1

    Refersion holds the truth

    An affiliate order costs you a commission on top of whatever the ad click cost. If both systems claim it, the order is being paid for twice and neither report mentions the other.

  2. 2

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, captured at the visit and carried into the Refersion conversion.

  4. 4

    The event source decides reliability

    Send orders net of affiliate commission, with the affiliate-sourced share marked.

  5. 5

    Deduplication at the destination

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

Refersion → Salesforce · normal or broken

Working vs. broken, side by side — Refersion → Salesforce

Normal, not a fault

  • The Lead or Contact identity present on the conversion

  • Sent from the store order record with Refersion attribution attached

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The Lead or Contact identity missing on most records

    Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.

  • Sent from the browser

    A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.

  • Counted twice, or not at all

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

Refersion → Salesforce · diagnose

Diagnostic order — Refersion → Salesforce

  1. 01

    Count conversions carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Count orders appearing in both paid conversions and Refersion

    The overlap is the double payment. One query, rarely run.

  4. 04

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Refersion → Salesforce · prove

How it gets proven — Refersion → Salesforce

Source of truth

Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.

  • The Lead or Contact identity confirmed present on a live conversion.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Non-affiliate orders reconciled against imported conversions, with the overlap measured and stated.

Refersion → Salesforce · free audit

What we check in the free audit

  • Count conversions carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Count orders appearing in both paid conversions and Refersion
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Refersion → Salesforce · when not to buy

When you don't need this — Refersion → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the Lead or Contact identity.
  • No affiliate programme means no conflict and this reduces to an ordinary store integration.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

Refersion → Salesforce · what we deliver

What gets built — Refersion → Salesforce

  • Identifier capture into Refersion

    Set an explicit precedence rule between affiliate and paid parameters rather than letting last-write-wins decide, and record both on the order.

  • Event source: the store order record with Refersion attribution attached

    Send orders net of affiliate commission, with the affiliate-sourced share marked.

  • Dispatch to Salesforce

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • Reversals where they exist

    Refunds reverse and should claw back the commission.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Refersion → Salesforce questions, answered

Only as rollups per affiliate, and only if your partnerships team manages affiliates in Salesforce. Individual consumer orders would create a record per shopper.

Free · 30 min

Get Refersion and Salesforce joined properly

Free30 minutesNo obligation