- 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:
| 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:
- 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.
- 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.
- 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.
- Hash trimmed lowercase email and E.164 phone (including +country code for TikTok SHA-256 spec) and attach shopper IP + User-Agent.
- Verify contents[].content_id matches your TikTok Shop / Catalog product IDs so Dynamic Product Ads match cleanly.
- 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.
Related Fixes, Tools & Primary Documentation
- Fix Shopify Meta CAPI Duplicate Purchases
- Fix Shopify Checkout Extensibility Broken Pixels
- Shopify Plus Server-Side Tracking Architecture
- How to Fix Shopify Meta CAPI Duplicate Purchase Events
- How to Fix GA4 & Elevar Checkout Attribution Drops
- How to Fix HubSpot to Google Ads Offline Conversions Showing Zero
- Primary docs: TikTok Events API Event Deduplication Specification
- Primary docs: Shopify Web Pixels API Standard Events
- Primary docs: Stape TikTok Events API Server-Side Guide