Skip to main content
CJ → TikTokIntegration guide

Connecting CJ Affiliate to TikTok Events API

CJ operates at enterprise scale with sophisticated commissioning rules, which means the same publisher can be paid differently by product, by customer status or by placement — and getting those inputs wrong pays real money incorrectly. 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 CJ transaction 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

CJ Affiliate and TikTok: creators who are paid twice for one sale

Capture the ttclid server-side on your site's first page, then send CompletePayment to the TikTok Events API from the order record with hashed email and phone, order number as event_id, value net of CJ Affiliate commission where credited, and the customer-status flag. Store both identifiers to catch creators paid by ads and bio links.

Some brands pay TikTok creators through a CJ link in their bio while also running those creators' videos as paid TikTok ads. A viewer who watches the paid ad and later taps the bio link produces an order with a ttclid from the ad and a CJ click from the publisher link, and both TikTok and CJ will credit it. Store both identifiers on the order so you can measure that overlap instead of paying for it twice without knowing. Organic bio-link clicks carry no ttclid at all, so those orders belong to CJ, not to the Events API.

CJ links redirect through CJ's click domains before reaching your store, and inside TikTok's in-app browser that hop is one more place for storage to be lost. Capture the ttclid server-side on the first page of your own site, then send CompletePayment from the order record with hashed email and phone as the fallback, the order number as event_id, and value net of CJ commission where CJ is credited.

Pass the customer-status flag with the event too. CJ's new-customer rate depends on it, a TikTok campaign meant to find new buyers should be judged on the same flag, and when it is wrong in one place it is usually wrong in the other. Refunds reverse the CJ commission but cannot be removed from TikTok's results, so reconcile them from the order record.

CJ → TikTok · what breaks

Why this join usually fails — CJ → TikTok

  1. 01

    The ttclid never reaches CJ

    The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.

  2. 02

    Commissioning rules fed the wrong inputs

    A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.

  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.

CJ → TikTok · the fix

What working looks like — CJ → TikTok

  • The ttclid on every conversion

  • Conversions arriving in TikTok

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

  • Reconciled against the source

    CJ Affiliate's own records are the reference, not either dashboard.

CJ → TikTok · architecture

How CJ and TikTok actually connect

  1. 1

    CJ Affiliate holds the truth

    Rules commonly commission new customers differently from returning ones. If your order does not carry customer status correctly, publishers are paid the wrong rate systematically and neither side notices for months.

  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 CJ transaction.

  4. 4

    The event source decides reliability

    Send orders net of commission, carrying the fields the commissioning rules depend on.

  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.

CJ → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the conversion

    Visible on the record itself in CJ Affiliate, not merely captured somewhere on the site.

  • Sent from your order record with CJ attribution

  • 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

    TikTok's count and CJ Affiliate's records agree within a few percent over a closed window.

Actually broken

  • The ttclid missing on most records

    The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.

  • Sent from the browser

    A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.

  • 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

    The dashboard shows a number and no one has compared it to CJ Affiliate.

CJ → TikTok · diagnose

Diagnostic order — CJ → TikTok

  1. 01

    Count conversions carrying the ttclid

  2. 02

    Follow one real conversion end to end

    From the ad click through CJ and into TikTok.

  3. 03

    Verify that new-versus-returning status reaches CJ correctly

    Sample recent transactions and compare against your own customer records. Mismatches are money.

  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.

CJ → TikTok · prove

How it gets proven — CJ → TikTok

Against CJ Affiliate's own records, not against either platform's dashboard.

Source of truth

Orders flagged by publisher, with the commissioning inputs recorded on the order.

  • The ttclid confirmed present on a live conversion.
  • A real conversion followed from click through CJ to TikTok.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • Transactions reconciled per order with commissioning inputs verified against your own customer data.

CJ → TikTok · free audit

What we check in the free audit

  • Count conversions carrying the ttclid
  • Follow one real conversion end to end
  • Verify that new-versus-returning status reaches CJ correctly
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Orders flagged by publisher, with the commissioning inputs recorded on the order.

Get my free conversion tracking audit

Free30 minutesNo obligation

CJ → TikTok · when not to buy

When you don't need this — CJ → TikTok

  • If TikTok already reports conversions that reconcile against CJ Affiliate's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the ttclid.
  • Simple flat-rate programmes have no commissioning inputs to get wrong.
  • 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.

CJ → TikTok · what we deliver

What gets built — CJ → TikTok

  • Identifier capture into CJ

    Capture the identifier and the customer status on the order, and verify both across every checkout path you operate.

  • Event source: your order record with CJ attribution

    Send orders net of commission, carrying the fields the commissioning rules depend on.

  • 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 and reverse the commission.

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by publisher, with the commissioning inputs recorded on the order.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CJ → TikTok questions, answered

Both systems will claim it if the buyer clicked the paid ad and the creator's CJ link. Storing the ttclid and the CJ identifier on the order shows how often that happens, so you can set commission or bids accordingly.

Free · 30 min

Get CJ and TikTok joined properly

Free30 minutesNo obligation