Connecting Friendbuy to Salesforce
Friendbuy runs customer-to-customer referral, which means the acquisition was produced by an existing customer and paid for with a reward on both sides. 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 Friendbuy referral 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
Friendbuy to Salesforce: referral source on the Contact, not a Lead
Most Friendbuy stores need no Salesforce integration. Where sales teams exist, write the referral flag and advocate onto the friend's Contact by email, set LeadSource to a reserved referral value, and optionally use a referral Campaign with CampaignMembers. Check duplicate rules for existing Leads, and record reward cost on the Opportunity or order so revenue reports net.
Friendbuy is built for stores, and most stores using it do not run their customers through Salesforce. Where it fits is a business that sells online but also has accounts or a sales team, such as wholesale, subscriptions with high-touch onboarding, or B2B buyers who also refer peers. There, the useful write is the referral relationship itself: which Contact referred which, and what both rewards cost.
Write the referral flag and the advocate to the friend's Contact as custom fields, keyed on email, and set LeadSource to a value your org reserves for referrals rather than letting a stored paid identifier decide it. If your team uses Campaigns, a referral-program Campaign with CampaignMember records for advocates and friends gives you Salesforce's own reporting without extra objects. Check your org's duplicate rules first, because a friend who already exists as a Lead from a paid form is the common case.
Reward cost belongs on the Opportunity or order record as a cost field, so referral-sourced revenue can be reported net. If no one in sales will act on referral data, the sane minimal setup is no Salesforce integration; keep the referral analysis in your store data or warehouse.
Friendbuy → Salesforce · what breaks
Why this join usually fails — Friendbuy → Salesforce
- 01
The Lead or Contact identity never reaches Friendbuy
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
- 02
Word of mouth billed to the ad account
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
- 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.
- 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.
Friendbuy → Salesforce · the fix
What working looks like — Friendbuy → Salesforce
The Lead or Contact identity on every referral
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
Friendbuy → Salesforce · architecture
How Friendbuy and Salesforce actually connect
- 1
Friendbuy holds the truth
A double-sided referral costs you two discounts to acquire one customer. That is a real and known acquisition cost, and it sits nowhere near the ad account that will otherwise claim the sale.
- 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
The identifier is the bridge
The Lead or Contact identity, captured at the visit and carried into the Friendbuy referral.
- 4
The event source decides reliability
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
- 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.
Friendbuy → Salesforce · normal or broken
Working vs. broken, side by side — Friendbuy → Salesforce
Normal, not a fault
The Lead or Contact identity present on the referral
Sent from your order feed with referral attribution
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
Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier.
Sent from the browser
The better your referral programme performs, the worse your paid reporting gets — a genuinely perverse outcome caused entirely by last-write-wins identifier storage that nobody consciously chose.
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
Friendbuy → Salesforce · diagnose
Diagnostic order — Friendbuy → Salesforce
- 01
Count referrals carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Check precedence between referral and paid parameters
Whichever wins decides who gets credit, and almost nobody has decided it deliberately.
- 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.
- 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.
Friendbuy → Salesforce · prove
How it gets proven — Friendbuy → Salesforce
Source of truth
Orders flagged by whether a referral produced them, with both reward costs recorded.
- The Lead or Contact identity confirmed present on a live referral.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- Non-referral orders reconciled against imported conversions, with referral volume and reward cost reported separately.
Friendbuy → Salesforce · free audit
What we check in the free audit
- Count referrals carrying the Lead or Contact identity
- Follow one real conversion end to end
- Check precedence between referral and paid parameters
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Orders flagged by whether a referral produced them, with both reward costs recorded.
Free30 minutesNo obligation
Friendbuy → Salesforce · when not to buy
When you don't need this — Friendbuy → Salesforce
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the Lead or Contact identity.
- No referral programme means no conflict and this is 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.
Friendbuy → Salesforce · what we deliver
What gets built — Friendbuy → Salesforce
Identifier capture into Friendbuy
Apply an explicit precedence rule between referral and paid parameters and record both on the order.
Event source: your order feed with referral attribution
Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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 reclaim rewards.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by whether a referral produced them, with both reward costs recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Friendbuy → Salesforce questions, answered
Write the referral flag and the advocate's identity to the friend's Contact as custom fields keyed on email, and use a dedicated LeadSource value or a referral-program Campaign.
Usually not unless a sales or account team uses it. For a pure online store, referral analysis belongs in store or warehouse data.
Almost always because the Lead or Contact identity never reached the Friendbuy referral. Referral links route through Friendbuy and land on your store with their own parameters, potentially overwriting a stored paid identifier. Measure coverage before debugging the dispatch.
Salesforce resolves on its own record identity — a Lead, a Contact, or an Account — rather than on a click identifier. What you are doing here is attaching marketing context to a record so the pipeline carries it, which means the click identifier arrives as a custom field value rather than as a matching key. The hazard is duplicates: two Leads for one person means two records with half the history each.
Your order feed with referral attribution. Send orders net of both referral rewards, with referral-sourced orders marked and held out of paid conversion imports.
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.
More on Friendbuy → Salesforce
- Friendbuy → Marketing CloudConnecting Friendbuy to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where Friendbuy → Salesforce fits in the rest of your tracking
- Talkable → SalesforceConnecting Talkable to Salesforce
- ReferralCandy → SalesforceConnecting ReferralCandy to Salesforce
- Extole → SalesforceConnecting Extole to Salesforce
- Friendbuy → MarketoConnecting Friendbuy to Marketo
- Friendbuy → HubSpotConnecting Friendbuy to HubSpot
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
Free · 30 min
Get Friendbuy and Salesforce joined properly
Free30 minutesNo obligation
