Skip to main content
SendGrid → TikTokIntegration guide

Connecting SendGrid to TikTok Events API

SendGrid carries both transactional and marketing mail through one account, which is convenient operationally and the source of the measurement problem: only one of those two streams has anything to do with acquisition. 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 SendGrid send 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

SendGrid to TikTok: subscribers who lose the ttclid

The ttclid lives in TikTok's in-app browser, so store it on the subscriber at signup, as a SendGrid Marketing Campaigns custom field or in your customer table, and attach it to the later order when the email matches. Send CompletePayment with that ttclid plus hashed email. Send signups from your own form handler, not SendGrid's Event Webhook.

TikTok clicks open your site in the in-app browser, where the ttclid and _ttp cookie live. When that visitor signs up for email and later buys from a SendGrid campaign, they arrive through their phone's mail app or default browser, where neither exists. The order then has only what checkout collected, plus anything you stored at signup.

So store the ttclid on the subscriber at signup, as a custom field on the SendGrid Marketing Campaigns contact or in your own customer table, and attach it to the later order when the email matches. Send CompletePayment with that ttclid plus hashed email; whether TikTok credits the sale then depends on your attribution window, not on the email.

Do not use SendGrid's signup confirmation as a TikTok conversion unless signups are what you are buying. A double opt-in confirmation clicked in a mail app fires no pixel, and an event triggered from SendGrid's Event Webhook would carry no ttclid. Send the signup from your own form handler, where the ttclid is still on the request.

SendGrid → TikTok · what breaks

Why this join usually fails — SendGrid → TikTok

  1. 01

    The ttclid never reaches SendGrid

    Marketing clicks land with tracking parameters; transactional clicks generally do not, and both arrive on the same domain.

  2. 02

    Receipt clicks credited to email marketing

    A customer clicking through their own order confirmation to check delivery is not an email marketing conversion. Untagged transactional traffic pooled with marketing makes the channel look far better than it is.

  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.

SendGrid → TikTok · the fix

What working looks like — SendGrid → TikTok

  • The ttclid on every message

  • Conversions arriving in TikTok

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

  • Reconciled against the source

SendGrid → TikTok · architecture

How SendGrid and TikTok actually connect

  1. 1

    SendGrid holds the truth

    A receipt and a promotional campaign are both an email in the same account. Only the campaign can plausibly have caused a purchase, and only if the purchase carries the campaign's identifier.

  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 SendGrid send.

  4. 4

    The event source decides reliability

    Send orders with the marketing campaign attributed where a tagged click preceded them.

  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.

SendGrid → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the message

  • Sent from your order system

  • 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

    Marketing clicks land with tracking parameters; transactional clicks generally do not, and both arrive on the same domain.

  • Sent from the browser

    A customer clicking through their own order confirmation to check delivery is not an email marketing conversion. Untagged transactional traffic pooled with marketing makes the channel look far better than it is.

  • 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

SendGrid → TikTok · diagnose

Diagnostic order — SendGrid → TikTok

  1. 01

    Count messages carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether transactional links carry campaign parameters

    If they do, every receipt click is being credited to email and the channel's reported performance is inflated.

  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.

SendGrid → TikTok · prove

How it gets proven — SendGrid → TikTok

Source of truth

Your order system, with marketing sends distinguished from transactional ones.

  • The ttclid confirmed present on a live message.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • Orders from tagged marketing clicks reconciled against imported conversions, with transactional traffic excluded.

SendGrid → TikTok · free audit

What we check in the free audit

  • Count messages carrying the ttclid
  • Follow one real conversion end to end
  • Check whether transactional links carry campaign parameters
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Your order system, with marketing sends distinguished from transactional ones.

Get my free conversion tracking audit

Free30 minutesNo obligation

SendGrid → TikTok · when not to buy

When you don't need this — SendGrid → TikTok

  • Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the ttclid.
  • If you send only transactional mail, there is no marketing channel here to measure.
  • 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.

SendGrid → TikTok · what we deliver

What gets built — SendGrid → TikTok

  • Identifier capture into SendGrid

    Tag marketing links explicitly and attribute purchases from those; treat transactional traffic as returning customers, not as a channel.

  • Event source: your order system

    Send orders with the marketing campaign attributed where a tagged click preceded them.

  • 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

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, with marketing sends distinguished from transactional ones.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SendGrid → TikTok questions, answered

Save the ttclid on the contact at signup, then send the later purchase to TikTok with it and the hashed email. TikTok applies its own attribution window to decide whether it counts.

Free · 30 min

Get SendGrid and TikTok joined properly

Free30 minutesNo obligation