Skip to main content
Salesforce → AmplitudeIntegration guide

Connecting Salesforce to Amplitude

Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Salesforce Lead or Opportunity before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Salesforce deals in Amplitude: join accounts to product usage

Map the Salesforce Contact to the Amplitude user ID your product already sends, and the Account to a group if your plan allows. Send Closed Won from a flow or scheduled job with Amount in revenue fields, the Opportunity ID as insert_id and the close date as event time. Convert multi-currency amounts before sending.

For a SaaS company, the reason to send Salesforce data into Amplitude is to see which product behavior precedes a closed deal. The join is two-level: the Salesforce Contact must map to the Amplitude user ID your product already sends, and the Salesforce Account to an account-level group, if your Amplitude plan includes account or group analytics. Without that user ID match, Closed Won lands on a new user with no product history.

Send Closed Won as an event from a Salesforce flow or a scheduled job, with Amount in Amplitude's revenue fields and the Opportunity ID as insert_id. Use the close date as the event time, and expect reps to edit close dates after the fact; decide whether a later edit sends a correction or is ignored. Check whether Amplitude offers a Salesforce integration in your plan before writing your own sync.

In multi-currency Salesforce orgs, convert Amount to one currency before it reaches Amplitude, because revenue charts will add mixed currencies without any warning. Trial accounts that never touch sales will not appear in Salesforce at all, which is fine; the analysis is about deals that did.

Salesforce → Amplitude · what breaks

Why this join usually fails — Salesforce → Amplitude

  1. 01

    The user ID and device ID pair 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.

  2. 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.

  3. 03

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Salesforce → Amplitude · the fix

What working looks like — Salesforce → Amplitude

  • The user ID and device ID pair on every opportunity

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Salesforce → Amplitude · architecture

How Salesforce and Amplitude actually connect

  1. 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. 2

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, captured at the visit and carried into the Salesforce Lead or Opportunity.

  4. 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. 5

    Deduplication at the destination

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Salesforce → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair present on the opportunity

  • Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Salesforce → Amplitude · diagnose

Diagnostic order — Salesforce → Amplitude

  1. 01

    Count opportunitys carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Salesforce → Amplitude · prove

How it gets proven — Salesforce → Amplitude

Source of truth

A Salesforce report of Closed Won opportunities for the same window, by close date.

  • The user ID and device ID pair confirmed present on a live opportunity.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • A test lead converted end to end with the identifier confirmed present on the resulting opportunity.

Salesforce → Amplitude · free audit

What we check in the free audit

  • Count opportunitys carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Convert a test Lead and inspect the resulting Opportunity
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

A Salesforce report of Closed Won opportunities for the same window, by close date.

Get my free conversion tracking audit

Free30 minutesNo obligation

Salesforce → Amplitude · when not to buy

When you don't need this — Salesforce → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the user ID and device ID pair.
  • 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 nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Salesforce → Amplitude · what we deliver

What gets built — Salesforce → Amplitude

  • 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 Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Salesforce → Amplitude questions, answered

Store the Amplitude user ID, or your product's user ID, on the Salesforce Contact, and send Opportunity events with that ID. Map the Account to an Amplitude group if your plan includes group analytics.

Free · 30 min

Get Salesforce and Amplitude joined properly

Free30 minutesNo obligation