Connecting Swell to Salesforce
Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell order 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
Swell into Salesforce: subscribers as accounts, not opportunities
Don't create a Salesforce Opportunity for every Swell order. Upsert Swell accounts onto Contacts keyed on the Swell account ID as an external ID, store subscriptions on a custom object keyed on subscription ID, and write first-touch click identifiers once. Use Opportunities only for negotiated wholesale deals, closing when the first Swell order arrives.
Salesforce models revenue as Opportunities that move through stages, and a Swell order or subscription renewal is not that. Creating an Opportunity for every order makes the pipeline meaningless within a month. The pair is worth building when Salesforce is where customer service, wholesale or B2B accounts are managed, and the team needs to see a customer's Swell orders and subscription status next to their cases or account history.
Upsert the Swell account onto a Contact (or Person Account) keyed on the Swell account ID as an external ID, and store subscriptions on a custom object keyed on the Swell subscription ID, updated rather than recreated when status changes. Write the first-touch click identifiers from the Swell account metadata onto the Contact once, so a renewal never overwrites the acquisition source. Check whether a maintained Swell-to-Salesforce connector exists before writing your own.
Opportunities do belong in one case: wholesale or bulk buyers who negotiate before ordering through Swell. There, the Opportunity is the negotiation, and the first Swell order is the moment it closes. Keep that flow separate from direct-to-consumer orders so marketing reports do not mix the two.
Swell → Salesforce · what breaks
Why this join usually fails — Swell → Salesforce
- 01
The Lead or Contact identity never reaches Swell
Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.
- 02
Renewals indistinguishable from new orders
In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.
- 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.
Swell → Salesforce · the fix
What working looks like — Swell → Salesforce
The Lead or Contact identity on every order
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
Swell → Salesforce · architecture
How Swell and Salesforce actually connect
- 1
Swell holds the truth
A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.
- 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 Swell order.
- 4
The event source decides reliability
Send one-off orders and first subscription payments. Renewals belong in a retention figure.
- 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.
Swell → Salesforce · normal or broken
Working vs. broken, side by side — Swell → Salesforce
Normal, not a fault
The Lead or Contact identity present on the order
Sent from the Swell order and subscription webhooks
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
Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.
Sent from the browser
In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.
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
Swell → Salesforce · diagnose
Diagnostic order — Swell → Salesforce
- 01
Count orders carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Compare monthly conversion count against new customer count
If conversions exceed new customers, renewals are being counted as acquisition.
- 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.
Swell → Salesforce · prove
How it gets proven — Swell → Salesforce
Source of truth
Swell orders and subscriptions by date, held apart from each other.
- The Lead or Contact identity confirmed present on a live order.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- First payments reconciled against imported conversions, with renewals reported separately.
Swell → Salesforce · free audit
What we check in the free audit
- Count orders carrying the Lead or Contact identity
- Follow one real conversion end to end
- Compare monthly conversion count against new customer count
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Swell orders and subscriptions by date, held apart from each other.
Free30 minutesNo obligation
Swell → Salesforce · when not to buy
When you don't need this — Swell → Salesforce
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Lead or Contact identity.
- A store selling only one-off products does not have the renewal problem.
- 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.
Swell → Salesforce · what we deliver
What gets built — Swell → Salesforce
Identifier capture into Swell
Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.
Event source: the Swell order and subscription webhooks
Send one-off orders and first subscription payments. Renewals belong in a retention figure.
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 and cancellations inside the first period reverse.
Written guarantee
95%+ tracking accuracy
Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Swell → Salesforce questions, answered
No. Store orders and subscriptions as related records on the Contact. Reserve Opportunities for negotiated wholesale or B2B deals.
Write the click identifiers from the first visit onto the Contact once, and never update them from renewal orders.
Almost always because the Lead or Contact identity never reached the Swell order. Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved. 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.
The Swell order and subscription webhooks. Send one-off orders and first subscription payments. Renewals belong in a retention figure.
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 Swell → Salesforce
- Swell → Marketing CloudConnecting Swell to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where Swell → Salesforce fits in the rest of your tracking
- BigCommerce → SalesforceConnecting BigCommerce to Salesforce
- Gumroad → SalesforceConnecting Gumroad to Salesforce
- WooCommerce Subscriptions → SalesforceConnecting WooCommerce Subscriptions to Salesforce
- Swell → HubSpotConnecting Swell to HubSpot
- Swell → 6senseConnecting Swell to 6sense
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- Braintree → SalesforceConnecting Braintree to Salesforce
- PrestaShop → SalesforceConnecting PrestaShop to Salesforce
Free · 30 min
Get Swell and Salesforce joined properly
Free30 minutesNo obligation
