Skip to main content
LiveChat → SalesforceIntegration guide

Connecting LiveChat to Salesforce

LiveChat is agent-operated chat for mid-market companies, and its built-in goal tracking makes it unusually easy to create a conversion action that measures agent activity instead of revenue. 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 LiveChat goal 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

LiveChat to Salesforce: stop agents creating duplicate Leads

Pick one writer so agents and the LiveChat integration don't create duplicate Salesforce Leads: match email against Leads and Contacts first. Land click identifiers and first-touch values from widget session variables in custom fields mapped through lead conversion to the Opportunity. Advertising uploads should read closed-won Opportunities at real amounts, never agent-goal fields. Check validation rules like required Company.

For mid-market sales teams, the Salesforce side of LiveChat is usually the most valuable part, and the most likely to be messy. LiveChat offers a Salesforce integration (check what the current version writes and when) that can create records and attach transcripts. Agents also create Leads by hand mid-chat. Together they produce two Leads for one person, each with half the context.

Decide on one writer. Match on email against existing Leads and Contacts first, and only create a Lead when neither exists. Click identifiers and first-touch campaign values pushed into the widget as session variables should land in custom fields on that one record, and be included in the lead conversion field mapping so they survive into the Opportunity.

Agent-marked goals belong in a field for coaching reports, never in the field the outbound ad uploads read from. The conversion for advertising is the Opportunity reaching closed-won at its real amount, and cancelled deals should move to a closed-lost or reversal stage so later uploads can retract them. Check validation rules too: a rule requiring Company will silently block chat-created Leads where nobody asked for it.

LiveChat → Salesforce · what breaks

Why this join usually fails — LiveChat → Salesforce

  1. 01

    The Lead or Contact identity never reaches LiveChat

    The chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open.

  2. 02

    Agent-reported sales as a bidding signal

    Agents mark goals inconsistently, under time pressure, and sometimes according to how they are compensated. That is a reasonable management metric and a terrible thing to hand an automated bidding algorithm.

  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.

LiveChat → Salesforce · the fix

What working looks like — LiveChat → Salesforce

  • The Lead or Contact identity on every goal

  • 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

LiveChat → Salesforce · architecture

How LiveChat and Salesforce actually connect

  1. 1

    LiveChat holds the truth

    LiveChat's own goal and sales-tracking features are agent-reported. They are useful for coaching and unsuitable as an advertising conversion source, because a human decides whether they fire.

  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 LiveChat goal.

  4. 4

    The event source decides reliability

    Send the settled commercial outcome, not the agent-marked goal.

  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.

LiveChat → Salesforce · normal or broken

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

Normal, not a fault

  • The Lead or Contact identity present on the goal

  • Sent from your order or CRM record

  • 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

    The chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open.

  • Sent from the browser

    Agents mark goals inconsistently, under time pressure, and sometimes according to how they are compensated. That is a reasonable management metric and a terrible thing to hand an automated bidding algorithm.

  • 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

LiveChat → Salesforce · diagnose

Diagnostic order — LiveChat → Salesforce

  1. 01

    Count goals carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare agent-marked goals against settled revenue

    The gap is usually wide enough to settle the argument about which one should be the conversion.

  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.

LiveChat → Salesforce · prove

How it gets proven — LiveChat → Salesforce

Source of truth

Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.

  • The Lead or Contact identity confirmed present on a live goal.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Settled orders reconciled against imported conversions; agent-marked goals excluded.

LiveChat → Salesforce · free audit

What we check in the free audit

  • Count goals carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Compare agent-marked goals against settled revenue
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.

Get my free conversion tracking audit

Free30 minutesNo obligation

LiveChat → Salesforce · when not to buy

When you don't need this — LiveChat → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred goals and count how many carry the Lead or Contact identity.
  • If LiveChat is purely a support channel, no integration is warranted.
  • 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.

LiveChat → Salesforce · what we deliver

What gets built — LiveChat → Salesforce

  • Identifier capture into LiveChat

    Push the identifier in as a custom variable at load. Expect multi-session conversations, and persist against the customer rather than the session.

  • Event source: your order or CRM record

    Send the settled commercial outcome, not the agent-marked goal.

  • 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 cancelled deals reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LiveChat → Salesforce questions, answered

Usually because both the integration and agents create records without matching on email first. Pick one writer and check existing Leads and Contacts before creating anything.

Free · 30 min

Get LiveChat and Salesforce joined properly

Free30 minutesNo obligation