Skip to main content
Refersion → TikTokIntegration guide

Connecting Refersion to TikTok Events API

Refersion runs affiliate and influencer programmes on Shopify stores, which puts a commission-earning third party directly alongside your paid media on the same orders. 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 Refersion conversion 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

Refersion and TikTok: Spark Ads on affiliate creators' videos

Before boosting an affiliate's post as a TikTok Spark Ad, agree whether their code earns commission on paid reach, or issue a separate non-commissioned code. Send CompletePayment from the Shopify order with a written precedence rule between ttclid and the Refersion parameter, and value net of commission. Do not duplicate Shopify's TikTok channel events.

TikTok is where Refersion programs and paid media collide most directly. Spark Ads boost a creator's existing organic post, and that creator is very often an affiliate whose code is in the caption or the video itself. Viewers of the boosted post use the code, Refersion pays commission, and TikTok claims the order. Before boosting an affiliate's post, agree whether their code earns commission on paid reach, or give the creator a separate non-commissioned code for the boosted version.

View-through makes it worse. Check your TikTok attribution settings; if they include view-through, TikTok claims orders from people who only watched the ad and then bought with any code. A shopper who saw the Spark Ad, scrolled on, and later typed the creator's code is credited to TikTok and to the affiliate, with neither report mentioning the other. Counting Shopify orders that are both TikTok-attributed and affiliate-coded is the number to bring to the creator conversation.

Send CompletePayment from the Shopify order with a written precedence rule between the stored ttclid and the Refersion parameter, and value net of commission for affiliate-coded orders. If Shopify's TikTok channel already sends Events API data, add your own events only as a replacement, with matching event_ids, not as a second stream.

Refersion → TikTok · what breaks

Why this join usually fails — Refersion → TikTok

  1. 01

    The ttclid never reaches Refersion

    Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.

  2. 02

    Influencer codes claiming paid traffic's orders

    A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.

  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.

Refersion → TikTok · the fix

What working looks like — Refersion → 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

Refersion → TikTok · architecture

How Refersion and TikTok actually connect

  1. 1

    Refersion holds the truth

    An affiliate order costs you a commission on top of whatever the ad click cost. If both systems claim it, the order is being paid for twice and neither report mentions the other.

  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 Refersion conversion.

  4. 4

    The event source decides reliability

    Send orders net of affiliate commission, with the affiliate-sourced share marked.

  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.

Refersion → TikTok · normal or broken

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

Normal, not a fault

  • The ttclid present on the conversion

  • Sent from the store order record with Refersion attribution attached

  • 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

    Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.

  • Sent from the browser

    A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.

  • 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

Refersion → TikTok · diagnose

Diagnostic order — Refersion → TikTok

  1. 01

    Count conversions carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Count orders appearing in both paid conversions and Refersion

    The overlap is the double payment. One query, rarely run.

  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.

Refersion → TikTok · prove

How it gets proven — Refersion → TikTok

Source of truth

Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.

  • The ttclid confirmed present on a live conversion.
  • Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
  • Non-affiliate orders reconciled against imported conversions, with the overlap measured and stated.

Refersion → TikTok · free audit

What we check in the free audit

  • Count conversions carrying the ttclid
  • Follow one real conversion end to end
  • Count orders appearing in both paid conversions and Refersion
  • Measure ttclid capture rate on TikTok traffic specifically
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Refersion → TikTok · when not to buy

When you don't need this — Refersion → TikTok

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the ttclid.
  • No affiliate programme means no conflict and this reduces to an ordinary store integration.
  • 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.

Refersion → TikTok · what we deliver

What gets built — Refersion → TikTok

  • Identifier capture into Refersion

    Set an explicit precedence rule between affiliate and paid parameters rather than letting last-write-wins decide, and record both on the order.

  • Event source: the store order record with Refersion attribution attached

    Send orders net of affiliate commission, with the affiliate-sourced share marked.

  • 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 should claw back the commission.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Refersion → TikTok questions, answered

If viewers use the creator's code or link, yes, unless you agree otherwise. Settle commission on boosted posts before running them.

Free · 30 min

Get Refersion and TikTok joined properly

Free30 minutesNo obligation