Skip to main content
Salesforce → TikTokIntegration guide

Connecting Salesforce to TikTok Events API

Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Salesforce Lead or Opportunity before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Salesforce to TikTok: work emails rarely match a TikTok account

Work emails rarely match TikTok, so the ttclid matters most: persist it server-side on landing and store it on the Lead, Contact and Opportunity. Send SubmitForm on Lead creation with the pixel's event_id, plus hashed mobile where possible. Treat later stages as lead-quality checks, and keep the TikTok lead ID on leads from TikTok forms.

TikTok's fallback match is hashed email and phone, and B2B leads in Salesforce usually give a work email that has no TikTok account behind it. That makes the ttclid far more important than on Meta or Google. Capture it on the landing page, persist it server-side before the in-app browser loses it, and store it on the Salesforce Lead with matching fields on Contact and Opportunity so lead conversion does not discard it. Ask for a mobile number on the form if your process allows; hashed phone matches where a work email will not.

Send SubmitForm when the Lead is created, with the form's event_id shared with the TikTok pixel. Later stages can be sent from a Flow or Apex callout as custom events when they happen, but a Closed Won months after a TikTok click is far outside any attribution window TikTok uses, so treat those as a check on lead quality, not as optimization signals. Check whether a TikTok connector for Salesforce exists for your edition before building the callout yourself.

If you run TikTok lead generation forms, those leads never touch your site and carry no ttclid. Bring them into Salesforce with the TikTok lead ID kept on the record, so qualified-stage events can be tied back to the form rather than to a hashed work email that will not match.

Salesforce → TikTok · what breaks

Why this join usually fails — Salesforce → TikTok

  1. 01

    The ttclid 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

    The ttclid is lost in the in-app browser

    TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.

  4. 04

    Nothing reconciles afterwards

    TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.

Salesforce → TikTok · the fix

What working looks like — Salesforce → TikTok

  • The ttclid on every opportunity

  • Conversions arriving in TikTok

    Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.

  • Reconciled against the source

Salesforce → TikTok · architecture

How Salesforce and TikTok 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

    TikTok Events API needs a click to match

    TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.

  3. 3

    The identifier is the bridge

    The ttclid, 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

    TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.

Salesforce → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the opportunity

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

  • Deduplicated correctly

    TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.

  • Reconciles with the source

Actually broken

  • The ttclid 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

    TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.

  • Nobody has reconciled it

Salesforce → TikTok · diagnose

Diagnostic order — Salesforce → TikTok

  1. 01

    Count opportunitys carrying the ttclid

  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

    Measure ttclid capture rate on TikTok traffic specifically

    Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.

  5. 05

    Read the match rate, not the success message

    TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.

Salesforce → TikTok · prove

How it gets proven — Salesforce → TikTok

Source of truth

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

  • The ttclid confirmed present on a live opportunity.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • A test lead converted end to end with the identifier confirmed present on the resulting opportunity.

Salesforce → TikTok · free audit

What we check in the free audit

  • Count opportunitys carrying the ttclid
  • Follow one real conversion end to end
  • Convert a test Lead and inspect the resulting Opportunity
  • Measure ttclid capture rate on TikTok traffic 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 → TikTok · when not to buy

When you don't need this — Salesforce → TikTok

  • Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the ttclid.
  • 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 TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.

Salesforce → TikTok · what we deliver

What gets built — Salesforce → TikTok

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

    Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.

  • 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 → TikTok questions, answered

B2B leads usually use work emails, which rarely correspond to TikTok accounts. Store the ttclid on the Lead and carry it through conversion, and collect a mobile number where you can.

Free · 30 min

Get Salesforce and TikTok joined properly

Free30 minutesNo obligation