Key facts
  • Deduplication keys: TikTok deduplicates events sharing identical pixel_code, event name (CompletePayment), and event_id within 48 hours.
  • Identifier pair: Persist both ttclid (from landing query parameter) and _ttp (TikTok first-party browser cookie) into Shopify cart attributes for server checkout webhooks.
  • Common overlap: Running Shopify's native TikTok Sales Channel Maximum Data Sharing alongside an sGTM or Elevar TikTok Events API tag double-counts purchases unless deduplicated with identical event_id.
  • Schema update: TikTok Events API v2 uses 'CompletePayment' with contents array, value, currency, and SHA-256 user object.

Root-Cause & Verification Diagnostic Table

Match the exact symptom observed in your ad account or CRM against the verification check and verified production fix below:

Root-Cause & Verification Diagnostic Table
Observed Symptom Root Cause Verification Check Verified Production Fix
TikTok Ads Manager shows 1.8x to 2x CompletePayment events vs. Shopify Native Shopify TikTok channel and custom sGTM Events API both sending CompletePayment with different event_ids TikTok Events Manager -> Test Events -> inspect Browser + Server event_id strings Keep strictly one server Events API emitter and share deterministic 'tt_order_' + checkout.order.id with browser pixel
TikTok Events Manager flags low 'ttclid' or '_ttp' coverage on server purchases Checkout Extensibility sandbox or multi-page browsing drops ?ttclid before checkout_completed Inspect cart attributes and TikTok Events API payload for context.ad.callback (ttclid) and user.ttp Capture ?ttclid and _ttp cookie on landing via first-party script/Worker and pass into Shopify cart attributes
Server CompletePayment fires with $0 value or missing content_id Line-item SKU mapped instead of TikTok Catalog product/variant ID Compare TikTok Catalog item ID format vs. contents[].content_id in Events Manager Align content_id strictly to Shopify Product ID or Variant ID matching your TikTok Catalog feed
TikTok Pixel helper shows no CompletePayment on Shop Pay orders Shop Pay bypasses legacy storefront thank-you scripts Run a $1 Shop Pay test checkout and check TikTok Test Events Use Shopify Customer Events checkout_completed + server Events API webhook backup

Step-by-Step Production Fix Checklist

Execute these steps in order and verify every conversion path in test mode before pushing to live paid traffic:

  1. Audit active TikTok emitters across Shopify Sales Channels (TikTok app), Customer Events Custom Pixels, and GTM/sGTM containers so only one server pipeline fires CompletePayment.
  2. Generate one deterministic event_id (e.g., 'tt_' + checkout.order.id) and pass it identically to both ttq.track('CompletePayment', ..., { event_id }) and TikTok Events API.
  3. Capture ?ttclid from landing URLs and the _ttp cookie on the storefront, persisting both into a 30-day first-party cookie and Shopify cart attributes.
  4. Hash trimmed lowercase email and E.164 phone (including +country code for TikTok SHA-256 spec) and attach shopper IP + User-Agent.
  5. Verify contents[].content_id matches your TikTok Shop / Catalog product IDs so Dynamic Product Ads match cleanly.
  6. Confirm green 'Deduplicated' status in TikTok Events Manager -> Test Events across standard card and Shop Pay checkouts.

Reference Implementation & Verification Pattern

// TikTok Events API v2 CompletePayment payload (Cloudflare Worker / sGTM)
const tiktokEvent = {
  event_source: "web",
  event_source_id: env.TIKTOK_PIXEL_CODE,
  data: [{
    event: "CompletePayment",
    event_time: Math.floor(Date.now() / 1000),
    event_id: "tt_" + String(order.id), // Must match browser ttq event_id identically
    user: {
      ttclid: attrs._ar_ttclid || undefined,
      ttp: attrs._ar_ttp || undefined,
      email: sha256Hex(order.email.trim().toLowerCase()),
      phone: order.phoneE164 ? sha256Hex(order.phoneE164) : undefined,
      ip: attrs._ar_client_ip || undefined,
      user_agent: attrs._ar_client_ua || undefined
    },
    properties: {
      currency: order.currency || "USD",
      value: Number(order.subtotalPrice),
      contents: order.lineItems.map((i) => ({
        content_id: String(i.productId),
        content_type: "product",
        quantity: i.quantity,
        price: Number(i.price)
      }))
    }
  }]
};

Want us to trace 10 real paid clicks end-to-end across your live funnel before editing production? Book our $1,000 Forensic Tracking Audit (3 business days, read-only access, 100% credited toward any sprint) or test your landing page right now in the Free Funnel Leak Inspector.

Frequently Asked Questions

Does TikTok Events API require a leading plus sign on E.164 phone numbers before SHA-256 hashing?
Yes. Unlike Meta CAPI (which strips the + sign), TikTok Events API documentation specifies standard E.164 format including the leading + and country code (e.g., +14155550192) before SHA-256 hashing.
Why does TikTok report fewer conversions than Shopify after upgrading to Checkout Extensibility?
Legacy Additional Scripts stop firing on Checkout Extensibility thank-you pages. Moving browser tracking into a Customer Events Custom Pixel paired with server-side Events API restores full coverage.
Can AttributionRepair fix Meta CAPI, GA4, Google Ads, and TikTok Events API in one sprint?
Yes. Our $12,500 Multi-Platform sGTM + Revenue Architecture sprint unifies Google Ads Data Manager API, Meta CAPI, TikTok Events API, and GA4 on one client-owned first-party pipeline.